generate_image
Create images from natural-language prompts using Gemini, then save them to disk and return the file path. Use when asked to generate, draw, or make visuals.
Instructions
Generate an image using Nano Banana (Gemini). Saves the image to disk and returns the file path. Use this tool whenever the user asks to generate, create, draw, or make an image, picture, illustration, photo, artwork, or visual.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use for this generation. Available: gemini-2.5-flash-image, gemini-2.0-flash-exp-image-generation, gemini-3-pro-image-preview, gemini-3.1-flash-image-preview. Defaults to the current active model. | |
| prompt | Yes | Detailed description of the image to generate. Be specific about style, content, colors, composition. | |
| filename | No | Optional filename for the output image (e.g. 'my-character.png'). Defaults to auto-generated name with timestamp. | |
| aspect_ratio | No | Aspect ratio for the generated image. | 1:1 |