Skip to main content
Glama

Generate Image

generate_image
Destructive

Generate 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

NameRequiredDescriptionDefault
countNoHow 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.
modelNoModel 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)
styleNoA 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.
promptYesImage description
qualityNogpt-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.
resolutionNoOutput 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_creditsNoBudget 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_ratioNoAspect ratio. When omitted, the selected model's own default is used.
output_formatNogpt-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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / model / description
      Previous value: -"Model to use. nano-banana-2 (default, best quality/price), 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)"New value: +"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)"
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "nano-banana-2",
      -  "gpt-image-2.5",
      -  "gpt-image-2.6",
      -  "seedream-4.5",
      -  "flux-2-pro",
      -  "z-image",
      -  "gpt-image-2"
      -]New value: +[
      +  "nano-banana-2",
      +  "nano-banana-2.1",
      +  "gpt-image-2.5",
      +  "gpt-image-2.6",
      +  "seedream-4.5",
      +  "flux-2-pro",
      +  "z-image",
      +  "gpt-image-2"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / count
      Added value: +{
      +  "description": "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.",
      +  "maximum": 4,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Changed4 schema fields changed
    • changedInput schema / properties / model / description
      Previous value: -"Model to use. nano-banana-2 (default, best quality/price), gpt-image-2.5, seedream-4.5, flux-2-pro, z-image (fastest & cheapest)"New value: +"Model to use. nano-banana-2 (default, best quality/price), 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)"
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "nano-banana-2",
      -  "gpt-image-2.5",
      -  "seedream-4.5",
      -  "flux-2-pro",
      -  "z-image",
      -  "gpt-image-2"
      -]New value: +[
      +  "nano-banana-2",
      +  "gpt-image-2.5",
      +  "gpt-image-2.6",
      +  "seedream-4.5",
      +  "flux-2-pro",
      +  "z-image",
      +  "gpt-image-2"
      +]
    • addedInput schema / properties / output_format
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "png",
      +    "gif"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / quality
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "low",
      +    "medium",
      +    "high"
      +  ],
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / style
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "thumbnail-bold",
      +    "thumbnail-clean",
      +    "thumbnail-cinematic",
      +    "thumbnail-tech",
      +    "book-literary",
      +    "book-thriller",
      +    "book-romance",
      +    "book-fantasy",
      +    "cover-minimal",
      +    "cover-neon",
      +    "cover-vintage",
      +    "cover-portrait",
      +    "poster-movie",
      +    "poster-event",
      +    "poster-retro",
      +    "poster-photo",
      +    "blog-editorial",
      +    "blog-flat",
      +    "blog-photo",
      +    "blog-isometric",
      +    "product-studio",
      +    "product-lifestyle",
      +    "product-marble",
      +    "product-nature"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / resolution / description
      Previous value: -"Output size: 1k, 2k or 4k. Omitted means the model's default (its cheapest size). Larger sizes cost more credits; quote_generation shows the exact price."New value: +"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."
  6. Changed1 schema field changed
    • addedInput schema / properties / resolution
      Added value: +{
      +  "description": "Output size: 1k, 2k or 4k. Omitted means the model's default (its cheapest size). Larger sizes cost more credits; quote_generation shows the exact price.",
      +  "enum": [
      +    "1k",
      +    "2k",
      +    "4k"
      +  ],
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • changedInput schema / properties / model / description
      Previous value: -"Model to use. nano-banana-2 (default, best quality/price), gpt-image-2, seedream-4.5, flux-2-pro, z-image (fastest & cheapest)"New value: +"Model to use. nano-banana-2 (default, best quality/price), gpt-image-2.5, seedream-4.5, flux-2-pro, z-image (fastest & cheapest)"
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "nano-banana-2",
      -  "gpt-image-2",
      -  "seedream-4.5",
      -  "flux-2-pro",
      -  "z-image"
      -]New value: +[
      +  "nano-banana-2",
      +  "gpt-image-2.5",
      +  "seedream-4.5",
      +  "flux-2-pro",
      +  "z-image",
      +  "gpt-image-2"
      +]
  8. Changed1 schema field changed
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "description": "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.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  9. Changed1 schema field changed
    • changedInput schema / properties / aspect_ratio / description
      Previous value: -"Aspect ratio, default 1:1"New value: +"Aspect ratio. When omitted, the selected model's own default is used."
  10. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare destructiveHint=true and openWorldHint=true, so the safety burden is partly carried structurally. The description adds real context beyond them: credit consumption, plan-based concurrency caps on count, cost multipliers for 2k/4k, slower rendering at higher resolution, and the max_credits failure mode where "nothing is started and the reply lists what fits." It stops short of stating plainly that credits are irreversibly spent even on bad results, which is the main remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense and front-loaded, leading with the action and return shape before exceptions. The routing clauses for edit_image and list_styles earn their place, though the description runs long enough that the deferred "For a YouTube thumbnail..." instruction competes with the primary usage statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter generation tool with no output schema, it covers cost, model choice, size, format, budgeting, and sibling routing, and explicitly states what is returned inline. Nothing an agent needs to call it correctly or safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, and the description clearly exceeds it. It explains the prompt/style division of labor ("the prompt then describes only the subject... any words that must appear in it in double quotes"), when resolution and quality are warranted versus not, and the GIF case requires omitting aspect_ratio and resolution.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource ("Generate one or more AI image variations from a text prompt") plus the return shape (inline image plus full-resolution URL). It explicitly distinguishes itself from edit_image and routes cover/poster/product work through list_styles, so an agent can separate it from siblings without inspecting schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names concrete alternatives and the condition selecting each: edit_image "to change an existing image," list_styles first for thumbnails, covers, posters and product photos, and vectorize_image (via schema) for SVG. It also gives when-not guidance for quality and resolution, telling the agent not to pass them for words like "premium" or "professional."

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources