generate_image
Generate images from text prompts using 30+ AI models including DALL-E, GPT Image, and Stable Diffusion. No API keys needed.
Instructions
Generate an image from a text prompt using Puter's free AI image generation. Supports 30+ models including GPT Image, DALL-E 2/3, Gemini Nano Banana, Flux.1, Stable Diffusion, and more. Falls back across models on quota or availability errors. Returns the image inline as base64 content for direct rendering in MCP clients. No API keys required — uses your Puter account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Image generation model to use. Options include: "dall-e-3" (default), "gpt-image-1", "gpt-image-1-mini", "gemini-2.5-flash-image-preview" (Nano Banana), "gemini-3-pro-image-preview" (Nano Banana Pro), "gemini-3.1-flash-image-preview" (Nano Banana 2), "black-forest-labs/FLUX.1-schnell", "stabilityai/stable-diffusion-3-medium", and many more. Use list_models tool to see all options. | dall-e-3 |
| prompt | Yes | Text description of the image to generate. Be detailed and specific for best results. | |
| quality | No | Quality setting. For GPT Image: "high", "medium", or "low". For DALL-E 3: "hd" or "standard". Not all models support this. |