ModelRot

gemini-2.0-flash-lite vs gemini-3.1-flash-lite

Google Gemini names gemini-3.1-flash-lite as the replacement for gemini-2.0-flash-lite. gemini-2.0-flash-lite shut down on Jun 1, 2026.

Retired→Deprecated
Per 1M tokensgemini-2.0-flash-litegemini-3.1-flash-lite
Input—$0.25
Output—$1.50
Blended changeUnknown: a list price is missing
ProviderGoogle GeminiGoogle Gemini
Statusretireddeprecated
ShutdownJun 1, 2026May 7, 2027
Context window——

Migrating

  • Replace the ID gemini-2.0-flash-lite with gemini-3.1-flash-lite 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-3.1-flash-lite lifecycle.