Image gen

From ChatCut-Inc/agent-plugin · View interactive version

Image gen is an AI agent skill from the GitHub repository ChatCut-Inc/agent-plugin. AI image generation and reference-image editing via GPT Image 2.5 Flare/Sunburst, GPT Image 2, and Nano Banana. Use when the user wants to generate or create an image / picture / still through the backend image-generation jobs.

How to use this skill

Skill file

Image Gen

If submit_image is not loaded yet, load it with ToolSearch before calling it, so you use its real parameters instead of guessing.

ChatCut image generation and editing require an active paid Pro subscription and use credits for every model. If submit_image returns FEATURE_NOT_INCLUDED, surface the upgrade requirement; do not retry another ChatCut model to bypass it. Codex native image generation keeps its own host entitlement and is not governed by this ChatCut requirement.

Generate AI images through the backend generation API. Submit-only: creates a generation job and returns a jobId.

After submission, use track_progress tool to check status or wait for completion.

Model Selection

| Model | Strengths | Max refs |

| ------------------------ | --------------------------------------------- | -------- |

| gpt-image-2.5-flare | Default: fast everyday generation and editing | 10 |

| gpt-image-2.5-sunburst | Precision edits and detailed creative work | 10 |

| gpt-image-2 | Previous GPT image model | 10 |

| nano-banana | Strongest reference-image fidelity | 14 |

IMPORTANT: Before generating, READ the model's reference document for params, limits, and prompt tips:

Tool Params

| Param | Values | Default |

| ------------------- | ----------------------------------------------------------------------- | ------- |

| aspectRatio | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9 | 16:9 |

| imageSize | 1K, 2K, 4K | 1K |

| quality | low, medium, high, auto; Image 2.5 also xhigh, max | high |

| background | auto, opaque, transparent (Image 2.5 only; PNG output) | auto |

| referenceAssetIds | Array of project asset ids — backend resolves bytes server-side | — |

| name | Short descriptive asset name shown in the library | — |

| count | Number of images to generate (1–10, each becomes a separate job) | 1 |

Defaults

Ask Before Submit

Reference Images

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").

Run

// Basic generation
submit_image({
  model: "gpt-image-2.5-flare",
  prompt: "a cute orange cat",
  name: "Cat",
});

// With quality (OpenAI models)
submit_image({
  model: "gpt-image-2.5-flare",
  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.5-flare",
  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.5-flare",
  prompt: "product shots",
  count: 3,
  name: "Product",
});

After submission, call track_progress with action=status jobIds=<jobId>. If the current task depends on a non-terminal result, call action=wait and do what its result says: where automatic follow-ups are supported it registers one and you end your turn; otherwise it returns sleep-and-recheck guidance. Neither action blocks.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.