generate_image
Generate an image from a text prompt. Choose from dedicated or native image-output models. The image is saved to disk and opened in your default viewer.
Instructions
Generate an image from a text prompt. The image is saved to disk (~/Pictures/ask-another by default), opened in the system default image viewer, and a preview is also returned in the tool result.
Where to view the generated image:
It pops open in your system image viewer automatically. Disable with OPEN_GENERATED_IMAGES=false if you don't want that.
The full-resolution file is at the path shown in the "Saved to:" message (open it directly for full quality).
In Claude Desktop, the inline preview lives inside the collapsed tool-use details — click to expand the tool call to see it. The chat does not render the preview as a top-level message.
Two model types are supported — the tool picks the right path automatically:
Dedicated image models (gpt-image-1, dall-e-3, imagen-4): best control over size and quality.
Native image-output models (gemini-*-image / "Nano Banana"): can interleave text and images, good for diagrams or annotated visuals.
Args: model: Model to use (e.g. 'openai/gpt-image-1', 'gemini/gemini-2.5-flash-image'). Use search_models with 'image' to find available image models. prompt: Text description of the image to generate. size: Image dimensions. Only used by dedicated image models — ignored by native image-output models. Common values: '1024x1024' (square), '1536x1024' (landscape), '1024x1536' (portrait). Valid options depend on the model. Omit to use the model's default. quality: Image quality. Only used by dedicated image models — ignored by native image-output models. For gpt-image-1: 'low', 'medium', 'high'. For dall-e-3: 'standard', 'hd'. Omit for the model's default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| model | Yes | ||
| prompt | Yes | ||
| quality | No |