Generate Image
generate_imageGenerate an AI image from a text prompt using Claude Imagine credits. Returns the image inline plus its full-resolution URL. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use. nano-banana-2 (default, best quality/price), gpt-image-2.5, 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 | |
| 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. |