gemini-3.1-flash-image-preview to gemini-nano-banana-2.1
Some values not published Checked 2026-11-12.
Price per 1M tokens
| Field | Old | New | Change |
|---|---|---|---|
| Input | Not published | $1.5 | Not published |
| Output | Not published | $7.5 | Not published |
| Cached input | Not published | Not published | Not published |
| Example monthly cost | Not published | $30 | Example only |
Context and max output
| Limit | Old | New | Change |
|---|---|---|---|
| Context window | Not published | 131,072 | Not published |
| Max output | Not published | 32,768 | Not published |
Capabilities that differ
No differing capability values are published for both models.
API changes
No parameter change is listed on the official pages we checked. The sample below only swaps the model id.
Code
python before
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-3.1-flash-image-preview",
input="Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
)
python after
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-nano-banana-2.1",
input="Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
)
typescript before
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({});
const interaction = await ai.interactions.create({
model: "gemini-3.1-flash-image-preview",
input: "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
});
typescript after
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({});
const interaction = await ai.interactions.create({
model: "gemini-nano-banana-2.1",
input: "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
});
curl before
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-3.1-flash-image-preview","input":[{"type":"text","text":"Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"}]}'
curl after
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-nano-banana-2.1","input":[{"type":"text","text":"Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"}]}'
Checklist
- Read the shutdown date for gemini-3.1-flash-image-preview on the linked official page.
- Point your requests at gemini-nano-banana-2.1.
- Re-check price, context, and parameters on the provider pages linked here.
- Ship the change before the published shutdown date.