Skip to main content
Glama

generate_image

Generate images from text prompts using various AI models. Choose from photorealistic, vector, typography, or fast/cheap options to match your needs.

Instructions

Generate one or more images from a text prompt. Blocks 5-60 seconds (OR sync ~5-30s, Fal queue ~10-60s) and returns the image both as a native MCP image content block (base64) AND as a hosted URL. Cost ~200-500 tokens per image. Use for pictures, photos, illustrations, logos, posters, banners, art, avatars, etc. The image is ALREADY shown to the user by the MCP client — do NOT re-embed it as markdown ![](url) in your reply. On Claude.ai web specifically, a markdown image URL is rendered as a "Show Image" button (not an inline preview), so re-embedding actively makes the UX worse. Just describe / discuss the result in plain text; the user already sees the picture. If they ask for the link to download, quote the hosted URL as plain text (not as markdown image). User aliases to resolve when they say a model name: "nano banana"/"нано банана" → google/gemini-2.5-flash-image, "nano banana pro" → google/gemini-3-pro-image-preview, "nano banana 2" → google/gemini-3.1-flash-image-preview, "gpt-5 image"/"gpt image" → openai/gpt-5-image-mini, "flux"/"flux pro"/"флюкс" → fal:fal-ai/flux-pro/v1.1, "flux dev" → fal:fal-ai/flux/dev, "ideogram"/"идеограм" → fal:fal-ai/ideogram/v3, "recraft"/"рекрафт" → fal:fal-ai/recraft-v3. Models grouped by provider — pick by need: TEXT-IN-IMAGE → fal:fal-ai/ideogram/v3 (best typography), VECTOR / LOGO / POSTER → fal:fal-ai/recraft-v3, PHOTOREAL / MAX QUALITY → fal:fal-ai/flux-pro/v1.1 or google/gemini-3-pro-image-preview, FAST / CHEAP → google/gemini-2.5-flash-image (Nano Banana) or fal:fal-ai/flux/dev, SQUARE ONLY → openai/gpt-5-image-mini (server auto-swaps to Nano Banana on non-1:1 requests). Fal models (fal:* prefix) run through async queue but the tool blocks until the result is ready — caller does NOT need to poll check_job for images.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoImage model. Default: google/gemini-2.5-flash-image (Nano Banana — fast, cheap, reliable aspect). Pick by need: gemini-3-pro for max-quality photoreal, gemini-3.1-flash for latest Google features, gpt-5-image-mini for 1:1 OpenAI style, fal:fal-ai/flux-pro/v1.1 for photoreal+detail, fal:fal-ai/flux/dev for cheap FLUX, fal:fal-ai/ideogram/v3 for text-in-image / typography, fal:fal-ai/recraft-v3 for vector / logo / poster. Fal models block 10-60s; OR models block 5-30s.
promptYesDetailed description of the desired image. Be specific: subject, style, lighting, composition, color palette.
num_imagesNoHow many variations to generate (default 1).
aspect_ratioNoOutput aspect ratio (default 1:1).
Behavior5/5

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

No annotations were provided, but the description fully compensates by detailing blocking times (5-60s), return format (image content block + hosted URL), cost (200-500 tokens), async handling for Fal models, and UX behavior on Claude.ai. All behavioral traits are transparently disclosed without contradiction.

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?

The description is lengthy but every sentence adds unique information. While front-loaded with purpose, it could be more organized (e.g., bullet points for aliases). However, the detail is justified given the tool's complexity and many model options.

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?

Despite no output schema, the description explains what is returned (image block + URL) and how to handle it. It covers blocking behavior, cost, model selection, and UX instructions. All essential aspects for correct agent invocation are addressed.

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

Parameters5/5

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

With 100% schema description coverage, baseline is 3, but the description adds significant value: model parameter includes aliases and task-based selection criteria; prompt parameter includes composition advice; num_images and aspect_ratio have defaults and limits reinforced. This enriches the schema considerably.

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 description begins with a clear verb+resource: 'Generate one or more images from a text prompt.' The tool's purpose is explicitly stated and easily distinguished from sibling tools (video, audio, avatar generators).

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?

Extensive guidance is provided: explicit use cases (pictures, photos, logos, etc.), model selection criteria by task (e.g., text-in-image, vector, photoreal), user aliases, and even what NOT to do (avoid re-embedding the image). The description leaves no ambiguity about when and how to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/avotsai/avots-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server