Post-Cutoff

Google DeepMindGemini Image familyDeprecatedImage generationReleased 26 Feb 2026

Nano Banana 2 (Gemini 3.1 Flash Image)

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

Where it stands

20newer image generation models since its release

The 5 newest are listed. All image generation models

Before it from Google
Nano Banana Pro (Gemini 3 Pro Image)20 Nov 2025
After it from Google
Nano Banana 2 Lite (Gemini 3.1 Flash-Lite Image)30 Jun 2026
Weights
Closed weights; access is hosted only.

How to call it

4 ways to use Nano Banana 2 (Gemini 3.1 Flash Image), with the model id each provider expects.

Providers, model ids, endpoints and docs for Nano Banana 2 (Gemini 3.1 Flash Image)
ProviderModel idEndpointDocs
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

Pricing

Prices for Nano Banana 2 (Gemini 3.1 Flash Image)
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.

Specs

Input
Text, images, video and PDF
Output
Images and text
Context window
131,072 tokens
Max output
32,768 tokens
Open weights
No
Licence
Proprietary
Released
26 February 2026
Status
Deprecated
Type
Image generation

What stands out

What its maker marketed at launch, and what people found later, each with its source.

  • Pro quality at Flash speed

    Brings Nano Banana Pro world knowledge, reasoning and quality to a fast Flash model.

    Source: blog.google

  • Image search grounding

    Uses real-time web/image search to render real subjects accurately; supports thinking.

    Source: ai.google.dev

  • Text rendering and in-image translation

    Legible text for marketing assets and translation of text inside images.

    Source: blog.google

  • 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: ai.google.dev

Notes

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.