Google lists
gemini-3.1-flash-lite-image as the stable model ID for Nano Banana Lite. The official model page shows a June 2026 latest update and describes the model as optimized for sub-2 second latency, lower TPU compute cost, and high-volume image generation and editing.Key capabilities
- Text-to-image — Generate images from text descriptions
- Image editing — Pass a reference image in
inline_dataalongside your text instruction - Low latency — Targeted for sub-2 second end-to-end latency
- Aspect ratio control —
1:1,3:2,2:3,3:4,4:3,4:5,5:4,9:16,16:9,21:9 - Resolution control — Supports
1K(1024px). 2K and 4K are not supported. - Thinking control — Supports
minimalandhighthinking levels - Multi-modal output — Return both the image and a text caption with
responseModalities: ["TEXT", "IMAGE"] - Watermarking — SynthID is always on, with C2PA watermarking
Note: If you need the generated image returned as a URL, select the Aggregate-NanoUrl group when creating your API token.
Text-to-image example
Image editing example (with reference image)
Include both atext instruction and an inline_data reference image in the same parts array.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | API key (query parameter) |
contents[].parts[].text | string | Yes | Text prompt or instruction |
contents[].parts[].inline_data.mime_type | string | No | Reference image type: image/jpeg, image/png, image/webp |
contents[].parts[].inline_data.data | string | No | Base64-encoded reference image |
generationConfig.responseModalities | array | Yes | ["IMAGE"] or ["TEXT", "IMAGE"] |
generationConfig.imageConfig.aspectRatio | string | No | 1:1 / 3:2 / 2:3 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 21:9 |
generationConfig.imageConfig.imageSize | string | No | 1K only. 2K and 4K are not supported. |
API Reference
View the interactive API playground for Gemini 3.1 Flash Lite Image.