gemini-3.1-flash-image-preview vs gemini-nano-banana-2.1
Google Gemini names gemini-nano-banana-2.1 as the replacement for gemini-3.1-flash-image-preview. gemini-3.1-flash-image-preview shut down on Jun 25, 2026.
Retired→Active
Per 1M tokensgemini-3.1-flash-image-previewgemini-nano-banana-2.1
Input—$1.50
Output—$7.50
Blended changeUnknown: a list price is missing
ProviderGoogle GeminiGoogle Gemini
Statusretiredactive
ShutdownJun 25, 2026—
Context window——
Migrating
- Replace the ID
gemini-3.1-flash-image-previewwithgemini-nano-banana-2.1everywhere it appears, including .env files, config and infrastructure templates. - Run your evaluation set or golden prompts on both before switching: output style, refusals and tool calling can differ between generations.
- Check max output tokens and parameters: newer models sometimes rename or drop sampling options.
- Watch the repo on ModelRot so the next retirement doesn't surprise you. gemini-nano-banana-2.1 lifecycle.