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 1,120 tokens per input image.
Output image token consumption varies based on the generated image resolution:
| Output resolution | Approximate megapixels | Output image tokens |
|---|---|---|
| 512 | 0.25 | 747 |
| 1K | 1 | 1,120 |
| 2K | 4 | 1,680 |
| 4K | 16 | 2,520 |
For more information about image generation using Gemini 3.1 Flash Image, see Generate and edit images with Gemini.