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 Studio Deploy example app Pricing
| Model ID | gemini-3.1-flash-image |
|
|---|---|---|
| Modalities |
|
|
| Token limits | Context window | 131,072 |
| Maximum output tokens | 32,768 | |
| Capabilities |
|
|
| Tools |
|
|
| Consumption options |
|
|
| Input size limit | 500 MB | |
| Technical specifications | Image |
|
| Text |
|
|
| Video |
|
|
| Parameter defaults |
|
|
| Supported regions |
|
|
|
||
|
||
|
||
| Versions |
|
|
| Security controls | Online prediction |
|
| Batch inference |
|
|
| Context caching |
|
|
| See Security controls for more information. | ||
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.