Nano Banana 2.1 (Gemini Nano Banana 2.1)
Image generation
gemini-nano-banana-2.1
$1.50 in, $7.50 out per 1M tokens
Default Google image generation/editing model: fast, text-accurate, search-grounded.
Model idgemini-3.1-flash-image
Price$0.50 in, $3 out per 1M tokens
Checked7 October 2026
20newer image generation models since its release
The 5 newest are listed. All image generation models
4 ways to use Nano Banana 2 (Gemini 3.1 Flash Image), with the model id each provider expects.
| Provider | Model id | Endpoint | Docs |
|---|---|---|---|
| Gemini API | gemini-3.1-flash-image |
https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image:generateContent |
ai.google.dev |
| Google Cloud Gemini Enterprise Agent Platform (Vertex AI) | docs.cloud.google.com | ||
| OpenRouter | google/gemini-3.1-flash-image |
||
| Web app | gemini.google.com |
| Input | $0.50 per 1M tokens |
|---|---|
| Output | $3 per 1M tokens |
| Per 1K image | $0.067 |
| Per 4K image | $0.151 |
As published: “per 1M tokens text/image input and text output; image output $60 per 1M tokens = $0.045 (0.5K) / $0.067 (1K) / $0.101 (2K) / $0.151 (4K) per image”.
Source: ai.google.dev, checked 7 October 2026.
What its maker marketed at launch, and what people found later, each with its source.
Brings Nano Banana Pro world knowledge, reasoning and quality to a fast Flash model.
Uses real-time web/image search to render real subjects accurately; supports thinking.
Legible text for marketing assets and translation of text inside images.
0.5K/1K/2K/4K outputs and 1:4, 4:1, 1:8, 8:1 ratios; consistency of up to 5 characters and 14 objects.
Deprecated on 2026-10-06 (no shutdown date announced) in favour of gemini-nano-banana-2.1 (Gemini API changelog). Preview id gemini-3.1-flash-image-preview (2026-02-26, still served); stable id GA 2026-05-28. Replacement for gemini-2.5-flash-image and Imagen 4. OpenRouter lists 131k context for stable id.
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" -H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"A poster that says HELLO WORLD in neon letters"}]}]}'
Sources: model page, pricing, deprecations, launch blog.