Nano Banana 2 (Gemini 3.1 Flash Image)
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.
- Context window
- 131,072 tokens
- Max output
- 32,768 tokens
- Input
- text, image, video, pdf
- Output
- image, text
- License
- proprietary
- Pricing
- input: $0.5 · output: $3 · per image 1k: $0.067 · per image 4k: $0.151 (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
- Verified
- 2026-09-29
How to call it
| Provider | Model id | Endpoint / URL | Docs |
|---|---|---|---|
| Gemini API | gemini-3.1-flash-image | https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image:generateContent | docs |
| Google Cloud Gemini Enterprise Agent Platform (Vertex AI) | — | — | docs |
| OpenRouter | google/gemini-3.1-flash-image | — | — |
| Web app | — | gemini.google.com | — |
Notable capabilities (4)
- Pro quality at Flash speed: Brings Nano Banana Pro world knowledge, reasoning and quality to a fast Flash model. source
- Image search grounding: Uses real-time web/image search to render real subjects accurately; supports thinking. source
- Text rendering and in-image translation: Legible text for marketing assets and translation of text inside images. source
- Extreme aspect ratios and 512px-4K: 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. source
Default Google image generation/editing model: fast, text-accurate, search-grounded.
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.
Other Google DeepMind models
Gemini 3.8 Flash TTS · Gemini 3.8 Live · Gemini 3.8 Flash · Gemini 3.5 Transcribe (and Transcribe Live) · Lyria 3.5 · Gemini 3.5 Flash-Lite · Nano Banana 2 Lite (Gemini 3.1 Flash-Lite Image) · Gemini Omni Flash (Omni 1.1 Flash) · Gemini Embedding 2 · Gemma 4 · Nano Banana Pro (Gemini 3 Pro Image) · Gemini Robotics 2 · Gemini Robotics ER 2 · Gemini Robotics On-Device 2 · Gemini 3.5 Live Translate · Gemini 3.1 Pro · Veo 3.1 · Genie 3 · Lyria RealTime · Gemini 3.7 Flash · Gemini 3.6 Flash · Gemini 3.5 Flash · Gemini 3.1 Flash TTS (preview) · Gemini 3.1 Flash Live (preview) · Lyria 3 (Clip / Pro) · Lyria 2 · Gemini 2.5 Flash Native Audio (Live, preview) · Gemini 2.5 Flash-Lite · Gemini 2.5 Flash · Gemini 2.5 Pro · Gemini 2.5 Flash TTS / Pro TTS · Gemini 3.1 Flash-Lite · Nano Banana (Gemini 2.5 Flash Image) · Gemini Robotics-ER 1.5 / 1.6 · Imagen 4