Skip to main content
Glama

generate_image

Creates images from text prompts and supports image-to-image editing across 50 AI models like Flux, Recraft, Ideogram, and SDXL, letting you pick the model matching your visual style.

Instructions

Generate an image from a text prompt. 50 models available including Flux, Recraft, Ideogram, Stable Diffusion, GPT Image, Grok, Nano Banana, SDXL, and more.

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
modelNoModel to use. Options: flux-dev: Flux Dev, flux-pro: Flux Pro, flux-general: Flux General, flux-pro-1.1-ultra: Flux Pro 1.1 Ultra, hunyuan-image: Hunyuan Image, nano-banana: Nano Banana, auraflow: AuraFlow v0.3, flux-2-pro: Flux 2 Pro T2I, flux-2-pro-i2i: Flux 2 Pro I2I, flux-2-pro-t2i-trainer: Flux 2 Pro T2I Trainer, flux-2-pro-i2i-trainer: Flux 2 Pro I2I Trainer, gpt-image: GPT Image 1.5, grok-imagine: Grok Imagine, kandinsky-5: Kandinsky 5.0 Pro, kling-o1-image: Kling O1 Image, longcat-image: LongCat Image, nano-banana-pro: Nano Banana Pro, qwen-image-layered: Qwen Image Layered, recraft-v3: Recraft V3, recraft-v4: Recraft V4, recraft-v4-pro: Recraft V4 Pro, seedream-5: Seedream 5.0 Lite, seedream-5-edit: Seedream 5.0 Edit, nano-banana-2: Nano Banana 2, flux-fill-dev: Flux Fill Dev, sticker-maker: Sticker Maker, studio-ghibli: Studio Ghibli, reve-image-edit: Reve Image Edit, reve-image-remix: Reve Image Remix, qwen-edit-plus-lora: Qwen Edit Plus Lora, ideogram-v2: Ideogram V2, ideogram-v2-turbo: Ideogram V2 Turbo, stable-diffusion-3.5: Stable Diffusion 3.5 Large, stable-diffusion-3: Stable Diffusion 3, sdxl-base: SDXL Base 1.0, sdxl-lightning: SDXL Lightning, sdxl-turbo: SDXL Turbo V2, flux-schnell: Flux Schnell, flux-schnell-replicate: Flux Schnell (Replicate), dreamshaper: Dreamshaper 8-lcm, flawless: Flawless, flux-2-dev: Flux 2 Dev, flux-2-klein: Flux 2 Klein 4B, pixelforge-image: Pixelforge Image, qwen-image: Qwen Image, wan-t2i: Wan T2I, wan-2.5-image: Wan 2.5 Image, minimax-image: MiniMax Image, nano-banana-async: Nano Banana Async, nano-banana-pro-async: Nano Banana Pro Asyncflux-dev
styleNoStyle type for Ideogram (GENERAL, REALISTIC, DESIGN, RENDER_3D, ANIME)
promptYesText description of the image to generate
image_urlNoSource image URL (for image-to-image models like flux-2-pro-i2i, flux-fill-dev)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the mutation/open-world nature is covered. The description adds that 50 heterogeneous models are available, which hints at variable quality and cost across options, but says nothing about latency, pricing, or whether generation is synchronous (note the two "-async" models in the enum). That last point is a meaningful gap for an agent planning a call.

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?

Two short sentences, front-loaded with the core action, with zero filler. The model enumeration is slightly redundant with the schema enum, but it gives a fast sense of breadth; only the trailing "and more" is wasted.

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

Completeness3/5

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

With four fully documented parameters and no output schema, the description covers the input side adequately. However, it says nothing about what a caller receives back (URL, binary, job id) or about the async model variants, which an agent needs in order to sequence a call correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents prompt, model, style (Ideogram-only) and image_url (image-to-image models). The description's model-name list largely restates enum entries rather than explaining trade-offs between families or when to use the image-to-image variants. Baseline 3 is appropriate.

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?

The description states a specific verb and resource ("Generate an image") and scopes the input as "from a text prompt," which implicitly separates it from the sibling edit_image. It is clear what the tool produces, though it never explicitly names the contrasting sibling to sharpen the boundary.

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?

Usage is only implied: "from a text prompt" signals text-to-image rather than image editing, but the description never says when to prefer this over edit_image or virtual_try_on, nor does it mention prerequisites such as whether an API key or credit balance is required. An agent can infer the case but gets no explicit routing rule.

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