Google Gemini API · model
gemini-3.1-flash-lite-preview deprecation: shutdown date & replacement
- Provider
- Google Gemini API
- Type
- model
- Announced
- —
- Shutdown
- Replacement
gemini-3.1-flash-lite- Source
- Official Google Gemini API notice
Page lists announced earliest shutdown date.
How to migrate off gemini-3.1-flash-lite-preview
- Find every place that references it:
grep -rn --exclude-dir={node_modules,.git,dist} "gemini-3.1-flash-lite-preview" . - Replace the model ID:
- model: "gemini-3.1-flash-lite-preview" + model: "gemini-3.1-flash-lite" - Re-run your evals or a sample of real prompts — output style, token usage and pricing can change between models.
- Check config outside code too: environment variables, feature flags, prompt-management tools, and fine-tuned model references.
- Deploy before May 25, 2026, and add the CI scanner so it cannot come back.
Questions
Is gemini-3.1-flash-lite-preview deprecated?
Yes. Google Gemini API has deprecated gemini-3.1-flash-lite-preview. It was shut down on May 25, 2026.
When does gemini-3.1-flash-lite-preview shut down?
May 25, 2026, according to Google Gemini API's official deprecation notice.
What should I use instead of gemini-3.1-flash-lite-preview?
Google Gemini API recommends gemini-3.1-flash-lite. Switch the model ID and re-test your prompts, since outputs, pricing and limits can differ.
What happens to requests to gemini-3.1-flash-lite-preview after the shutdown?
Requests using the retired model ID fail with an error, so any code still calling it breaks. Update and deploy before the shutdown date.