gemini-2.5-flash-image vs gemini-3.1-flash-lite-image
Google Gemini names gemini-3.1-flash-lite-image as the replacement for gemini-2.5-flash-image. gemini-2.5-flash-image shuts down on Mar 15, 2027. At standard list prices, gemini-3.1-flash-lite-image costs -93% per token (blended 3:1 input:output).
Deprecated→Active
Per 1M tokensgemini-2.5-flash-imagegemini-3.1-flash-lite-image
Input$0.3$0.25
Output$30$1.50
Blended change-93%
ProviderGoogle GeminiGoogle Gemini
Statusdeprecatedactive
ShutdownMar 15, 2027—
Context window——
Migrating
- Replace the ID
gemini-2.5-flash-imagewithgemini-3.1-flash-lite-imageeverywhere 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-image lifecycle.