ModelRot

gemini-3.1-flash-image vs gemini-nano-banana-2.1

Google Gemini names gemini-nano-banana-2.1 as the replacement for gemini-3.1-flash-image. At standard list prices, gemini-nano-banana-2.1 costs +167% per token (blended 3:1 input:output).

Legacy→Active
Per 1M tokensgemini-3.1-flash-imagegemini-nano-banana-2.1
Input$0.5$1.50
Output$3$7.50
Blended change+167%
ProviderGoogle GeminiGoogle Gemini
Statuslegacyactive
Shutdown——
Context window——

Migrating

  • Replace the ID gemini-3.1-flash-image with gemini-nano-banana-2.1 everywhere 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.