generate_image
Generate images from text using Google's Nano Banana models. Synchronous calls return public PNG URLs; select model for quality or speed.
Instructions
Generate one or more images from a text prompt using Google's Nano Banana models (Gemini image generation). Returns public URLs to the generated PNGs — pass those URLs onward instead of re-downloading the bytes. Synchronous: the call returns when the images are ready (typically a few seconds). Models: 'nano-banana-pro' (Gemini 3 Pro Image — highest quality, default) and 'nano-banana-2' (Gemini 3.1 Flash Image — faster and cheaper, good for drafts and iterations).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images to generate (1-4). Default 1. | |
| model | No | Image model. Default nano-banana-pro. | |
| prompt | Yes | What to generate. Be specific about subject, style, composition, and lighting for best results. |