Gemini 3.1 Flash Image (Nano Banana 2) is optimized for image understanding and generation and offers a balance of price and performance.
Try in Agent Platform (Preview) Deploy example app
gemini-3.1-flash-image
- Inputs:
Text , Images , Video (Preview) - Outputs:
Text and image
- Maximum input tokens: 131,072
- Maximum output tokens: 32,768
- Supported
- Not supported
- Supported
- Not supported
- Maximum images per prompt: 14
- Maximum file size per file for inline data or direct uploads through the console: 7 MB
- Maximum file size per file from Google Cloud Storage: 30 MB
- Maximum number of output images per prompt: Limited to 32,768 output tokens
- Supported aspect ratios: 1:1, 3:2, 2:3, 3:4, 1:4, 4:1, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9, 9:21
- Supported resolutions: 512, 1K, 2K, 4K (Preview)
- Supported MIME types:
image/png,image/jpeg,image/webp,image/heic,image/heif
- Maximum number of files per prompt: As supported by the 128k token context window
- Maximum number of pages per file: As supported by the 65,536 token context window
- Maximum file size per file: 50 MB (API and Cloud Storage imports) or 7 MB (direct upload through Google Cloud console)
- Supported MIME types:
application/pdf,text/plain
- Temperature: 0.0-2.0 (default 1.0)
- topP: 0.0-1.0 (default 0.95)
- topK: -
- candidateCount: 1
Model availability
- Global
- global
-
gemini-3.1-flash-image - Launch stage: GA
- Release date: May 28, 2026
- Data residency
- CMEK
- VPC-SC
- AXT
- Data residency
- CMEK
- VPC-SC
- AXT
Image generation specifications
Gemini 3.1 Flash Image consumes 1120 input image tokens per input image. Gemini 3.1 Flash Image consumes 747 output image tokens for 512 (roughly 0.25MP), 1120 tokens for 1K (roughly 1MP), 1680 tokens for 2K (roughly 4MP), and 2520 tokens for 4K (roughly 16MP). Additional charges for input and output tokens for other modalities such as text and video also apply. Refer to the pricing page for the latest.
For more information about image generation using Gemini 3.1 Flash Image, see Generate and edit images with Gemini .
Preview features
The following features remain in Preview:
- 4K image outputs
- Video inputs

