Gemini 3.1 Flash-Lite Image (Nano Banana 2 Lite)
Overview
Gemini 3.1 Flash-Lite Image generates and edits images from text and reference images, optimized for speed and cost. Output is 1K resolution.Authentication
Submit a request
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes (single-turn) | Text description of the target image. Required unless contents is provided. |
image | string/array | No | Reference image URLs for image-guided generation/editing. |
aspect_ratio | enum | No | 1:1 (default), 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9. |
image_output_format | enum | No | png (default) or jpeg. |
contents | array | No | Multi-turn conversation payload for iterative editing. When provided, prompt/image are ignored. |
Check status
outcome.media_urls[0].url is the generated image.
Pricing
- **Image output: 0.034/image).
- Input (text, image, video): $0.25 per 1M tokens.
- Text output (response/reasoning): $1.50 per 1M tokens.
Notes
- Output resolution is fixed at 1K (720p-class) in this release.