Generate Image
generate_imageGenerate one or more AI image variations from a text prompt using Claude Imagine credits. Returns each image inline plus its full-resolution URL. Pass count (1–4, capped by plan concurrency: Free 1, Basic 2, Pro 3, Studio 4) to generate multiple variations in parallel. To change an existing image, use edit_image. For a YouTube thumbnail, book cover, album or podcast cover, poster, blog cover or product photo, call list_styles first and pass one of its ids as style.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many variations to generate in parallel (1–4, default 1). Capped by plan concurrency: Free/credit packs 1, Basic 2, Pro 3, Studio 4. Total cost is count × single-image credits. | |
| model | No | Model to use. nano-banana-2 (default, best quality/price), nano-banana-2.1 (new: sharper text rendering, cleaner layouts and edits), gpt-image-2.5, gpt-image-2.6 (strong text and layout; the only one with quality levels and animated GIF output), seedream-4.5, flux-2-pro, z-image (fastest & cheapest) | |
| style | No | A named look from list_styles, e.g. thumbnail-bold. The prompt then describes only the subject: what is in the picture, and any words that must appear in it in double quotes. The style sets the framing and the aspect ratio; aspect_ratio still overrides it. | |
| prompt | Yes | Image description | |
| quality | No | gpt-image-2.6 only: rendering quality, low (default, cheapest and fastest), medium or high. Pass it only when the person asks for more detail or a higher quality; it raises the price (quote_generation shows it). Other models have no quality setting. | |
| resolution | No | Output size: 1k, 2k or 4k. Leave it out unless the user gave a clear size signal: a pixel size or tier (4K, 2K, high resolution) or a physical output (print, poster, wallpaper, billboard). Words like premium, professional or high quality describe the look, not the size, and are not a reason to pass this. Omitted uses the model's default, its cheapest size; 2k and 4k cost roughly two to three times more credits and take longer. When the user asks for 'sharper' or 'bigger' without a size, quote_generation the options and ask which one. | |
| max_credits | No | Budget cap in credits, when the person stated one. If the exact cost of this call is above it, nothing is started and the reply lists what fits. | |
| aspect_ratio | No | Aspect ratio. When omitted, the selected model's own default is used. | |
| output_format | No | gpt-image-2.6 only: gif makes a short looping animated GIF (9 frames of 512x512, about 1.8 s) from the prompt; describe the motion and that it loops. Leave aspect_ratio and resolution out for a GIF. Omitted or png gives a still image. For an SVG, generate a PNG and call vectorize_image. |