Use when the user provides source material to edit, blend, or use as visual guidance (e.g. "change the background", "combine these into a poster").
// Basic generation
submit_image({
model: "gpt-image-2",
prompt: "a cute orange cat",
name: "Cat",
});
// With quality (gpt-image-2 only)
submit_image({
model: "gpt-image-2",
prompt: "hero poster with bold title",
quality: "high",
name: "Hero Poster",
});
// With reference images — pass project asset ids; backend resolves bytes
submit_image({
model: "gpt-image-2",
prompt: "change background to beach",
referenceAssetIds: ["<assetId>"],
name: "Beach Edit",
});
// Reference-heavy with nano-banana
submit_image({
model: "nano-banana",
prompt: "composite poster",
referenceAssetIds: ["<id1>", "<id2>"],
name: "Composite",
});
// Multiple images
submit_image({
model: "gpt-image-2",
prompt: "product shots",
count: 3,
name: "Product",
});
// MiniMax (optional single subject reference; R2 must be configured for refs)
submit_image({
model: "image-01",
prompt: "matte product bottle on marble, soft studio light",
name: "Bottle still",
promptOptimizer: false,
});
OpenChatCut’s submit_image may return completed pool assets synchronously depending on the provider path. If a jobId is returned, use track_progress; otherwise treat the asset ids in the result as done.
- How do I install image-gen?
- Download src/agent/skills/image-gen/SKILL.md from the publisher, or copy the path and open the repository. PlugMCP lists the skill and does not host the file.
- Where does image-gen live?
- The publisher keeps it at https://github.com/0xsline/OpenChatCut.
- Which agents can use image-gen?
- Claude, Cursor, and Codex can read a SKILL.md you add from the publisher's repository.