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  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
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Image 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. | |
| prompt | Yes | Detailed description of the desired image. Be specific: subject, style, lighting, composition, color palette. | |
| num_images | No | How many variations to generate (default 1). | |
| aspect_ratio | No | Output aspect ratio (default 1:1). |