generate_image
Create AI-generated images using Google Gemini 3.0 models with detailed prompts, adjustable aspect ratios, resolution up to 4K, and optional reference images for style guidance.
Instructions
Generate an image using Google Gemini 3.0 (Nano Banana Pro). Supports up to 4K resolution and up to 14 reference images for style/content guidance.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed description of the image to generate | |
| model | No | Model to use: "gemini-3-pro-image-preview" (default, Nano Banana Pro - best quality up to 4K), "gemini-2.5-flash-preview-05-20" (faster), or "gemini-2.0-flash-exp" (legacy) | gemini-3-pro-image-preview |
| aspectRatio | No | Aspect ratio of the generated image | 1:1 |
| imageSize | No | Resolution of the generated image (Nano Banana Pro supports up to 4K) | 1K |
| outputPath | No | Optional file path to save the image (e.g., ./output/image.png) | |
| referenceImages | No | Optional reference images to guide generation (up to 14 images for style, object, or layout references) |