Skip to main content
Glama

create_image

Create or transform an image using AirGallery's core multi-modal image pipeline (powers the Create page). Accepts up to 5 reference images plus a custom prompt and/or style preset, and supports multiple image models. Every model accepts reference images except recraft-v4.1, recraft-v4.1-flash (text only; images are rejected and refunded). Returns { image }. Cost depends on the model, in credits: nano-banana-2 3, nano-banana-pro 6, nano-banana-2-lite 2, nano-banana 3, gpt-image-2.6-flare 8, gpt-image-2.6-sunburst 8, gpt-image-2.5-flare 8, gpt-image-2.5-sunburst 8, gpt-image 8, gpt-image-mini 3, flux-3 3, flux-3-klein 1, mai-image-2.6 3, grok-imagine-2 4, seedream-5-pro 2, muse-image 1, minimax-h3 2, recraft-v4.1 2, mai-image-2.7 3, mai-image-2.7-flash 1, seedream-5.5 2, recraft-v4.1-flash 1. Requires 'ai' scope.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoImage model: 'nano-banana-2' (Gemini 3.1 Flash Image, default), 'nano-banana-pro' (Gemini 3 Pro Image), 'nano-banana-2-lite' (Gemini 3.1 Flash-Lite Image, fast and cheap), 'nano-banana' (Gemini 2.5 Flash Image), 'gpt-image-2.6-flare' (OpenAI GPT Image 2.6 Flare, newest, fast), 'gpt-image-2.6-sunburst' (OpenAI GPT Image 2.6 Sunburst, careful edits, about 50s), 'gpt-image-2.5-flare' and 'gpt-image-2.5-sunburst' (OpenAI GPT Image 2.5, previous generation), 'gpt-image' (OpenAI GPT Image 2), 'gpt-image-mini' (OpenAI GPT Image 1 Mini), 'flux-3' (Black Forest Labs FLUX 3), 'flux-3-klein' (FLUX 3 Klein, fast and cheap), 'mai-image-2.7' (Microsoft MAI-Image 2.7, newest, precise edits), 'mai-image-2.7-flash' (MAI-Image 2.7 Flash, faster and cheaper), 'mai-image-2.6' (Microsoft MAI-Image 2.6, previous generation), 'grok-imagine-2' (xAI Grok Imagine Image 2.0), 'seedream-5.5' (ByteDance Seedream 5.5, newest), 'seedream-5-pro' (ByteDance Seedream 5.0 Pro, slower), 'muse-image' (Meta Muse Image 1.0, blends photos), 'minimax-h3' (MiniMax H3 Image, open weights, many references), 'recraft-v4.1' (Recraft V4.1, design and illustration; text only, no reference images), 'recraft-v4.1-flash' (Recraft V4.1 Flash, about 1s; text only, no reference images).
imagesNoOptional: 0–5 reference images, each as a base64 data URI or HTTPS image URL. Omit for pure text-to-image (customPrompt is then required).
presetNoStyle preset applied to the images and/or prompt (default none).
pluginsNoOptional effects (the Create page's Plugins & Effects).
customPromptNoFree-form description of what to create (max 2000 chars). Required when no images are given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / model / description
      Previous value: -"Image model: 'nano-banana-2' (Gemini 3.1 Flash Image, default), 'nano-banana-pro' (Gemini 3 Pro Image), 'nano-banana-2-lite' (Gemini 3.1 Flash-Lite Image, fast and cheap), 'nano-banana' (Gemini 2.5 Flash Image), 'gpt-image-2.6-flare' (OpenAI GPT Image 2.6 Flare, newest, fast), 'gpt-image-2.6-sunburst' (OpenAI GPT Image 2.6 Sunburst, careful edits, about 50s), 'gpt-image-2.5-flare' and 'gpt-image-2.5-sunburst' (OpenAI GPT Image 2.5, previous generation), 'gpt-image' (OpenAI GPT Image 2), 'gpt-image-mini' (OpenAI GPT Image 1 Mini), 'flux-3' (Black Forest Labs FLUX 3), 'flux-3-klein' (FLUX 3 Klein, fastest and cheapest), 'mai-image-2.6' (Microsoft MAI-Image 2.6, precise edits), 'grok-imagine-2' (xAI Grok Imagine Image 2.0), 'seedream-5-pro' (ByteDance Seedream 5.0 Pro, slower), 'muse-image' (Meta Muse Image 1.0, blends photos), 'minimax-h3' (MiniMax H3 Image, open weights, many references), 'recraft-v4.1' (Recraft V4.1, design and illustration; text only, no reference images)."New value: +"Image model: 'nano-banana-2' (Gemini 3.1 Flash Image, default), 'nano-banana-pro' (Gemini 3 Pro Image), 'nano-banana-2-lite' (Gemini 3.1 Flash-Lite Image, fast and cheap), 'nano-banana' (Gemini 2.5 Flash Image), 'gpt-image-2.6-flare' (OpenAI GPT Image 2.6 Flare, newest, fast), 'gpt-image-2.6-sunburst' (OpenAI GPT Image 2.6 Sunburst, careful edits, about 50s), 'gpt-image-2.5-flare' and 'gpt-image-2.5-sunburst' (OpenAI GPT Image 2.5, previous generation), 'gpt-image' (OpenAI GPT Image 2), 'gpt-image-mini' (OpenAI GPT Image 1 Mini), 'flux-3' (Black Forest Labs FLUX 3), 'flux-3-klein' (FLUX 3 Klein, fast and cheap), 'mai-image-2.7' (Microsoft MAI-Image 2.7, newest, precise edits), 'mai-image-2.7-flash' (MAI-Image 2.7 Flash, faster and cheaper), 'mai-image-2.6' (Microsoft MAI-Image 2.6, previous generation), 'grok-imagine-2' (xAI Grok Imagine Image 2.0), 'seedream-5.5' (ByteDance Seedream 5.5, newest), 'seedream-5-pro' (ByteDance Seedream 5.0 Pro, slower), 'muse-image' (Meta Muse Image 1.0, blends photos), 'minimax-h3' (MiniMax H3 Image, open weights, many references), 'recraft-v4.1' (Recraft V4.1, design and illustration; text only, no reference images), 'recraft-v4.1-flash' (Recraft V4.1 Flash, about 1s; text only, no reference images)."
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "nano-banana-2",
      -  "nano-banana-pro",
      -  "nano-banana-2-lite",
      -  "nano-banana",
      -  "gpt-image-2.6-flare",
      -  "gpt-image-2.6-sunburst",
      -  "gpt-image-2.5-flare",
      -  "gpt-image-2.5-sunburst",
      -  "gpt-image",
      -  "gpt-image-mini",
      -  "flux-3",
      -  "flux-3-klein",
      -  "mai-image-2.6",
      -  "grok-imagine-2",
      -  "seedream-5-pro",
      -  "muse-image",
      -  "minimax-h3",
      -  "recraft-v4.1"
      -]New value: +[
      +  "nano-banana-2",
      +  "nano-banana-pro",
      +  "nano-banana-2-lite",
      +  "nano-banana",
      +  "gpt-image-2.6-flare",
      +  "gpt-image-2.6-sunburst",
      +  "gpt-image-2.5-flare",
      +  "gpt-image-2.5-sunburst",
      +  "gpt-image",
      +  "gpt-image-mini",
      +  "flux-3",
      +  "flux-3-klein",
      +  "mai-image-2.6",
      +  "grok-imagine-2",
      +  "seedream-5-pro",
      +  "muse-image",
      +  "minimax-h3",
      +  "recraft-v4.1",
      +  "mai-image-2.7",
      +  "mai-image-2.7-flash",
      +  "seedream-5.5",
      +  "recraft-v4.1-flash"
      +]
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does a solid job: per-model credit costs, the required 'ai' scope, the { image } return shape, the 5-reference-image cap, and the notable refund behavior when images are sent to text-only recraft models. Unexplained are latency expectations, failure/rate-limit behavior, and whether image generation charges on failure — so it stops short of full behavioral coverage for a paid mutation.

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

Conciseness3/5

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

The purpose and constraints are front-loaded, but the 22-model enumeration with inline costs is a long run-on block that largely duplicates the enum labels already in the schema. The cost data earns its place; restating each model's brand name and generation does not, making the description noticeably heavier than needed.

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

Completeness4/5

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

For a 5-parameter generative tool with no output schema, the definition supplies the missing pieces: explicit return shape { image }, scope requirement, cost model, and edge-case behavior for text-only models. Only latency and error/refund-on-failure semantics are absent, which are secondary for a single-call generation tool.

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 the baseline is 3, but the description adds decision-relevant meaning the schema lacks: the credit cost of each model, which effectively answers the tradeoff an agent must make when picking a model. The 5-image cap and text-only recraft constraint are restated but reinforce correct parameter use.

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

Purpose4/5

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

States a specific verb and resource ('Create or transform an image') plus the underlying pipeline ('AirGallery's core multi-modal image pipeline'), which tells an agent this is the general-purpose generator rather than a narrow edit tool. It does not explicitly name siblings such as text_to_image or colorize_image, so differentiation is inferred from the reference-image capability rather than stated.

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

Usage Guidelines3/5

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

Gives useful in-tool guidance: 'Omit for pure text-to-image (customPrompt is then required)' and the exception that recraft-v4.1 variants reject reference images and are refunded. It never says when to prefer this over the specialized siblings (enhance_image, upscale_image, text_to_image), so alternative selection is left to inference.

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