Google Gemini API · model
gemini-2.0-flash-preview-image-generation deprecation: shutdown date & replacement
- Provider
- Google Gemini API
- Type
- model
- Announced
- —
- Shutdown
- Replacement
gemini-2.5-flash-image- Source
- Official Google Gemini API notice
Page lists announced earliest shutdown date.
How to migrate off gemini-2.0-flash-preview-image-generation
- Find every place that references it:
grep -rn --exclude-dir={node_modules,.git,dist} "gemini-2.0-flash-preview-image-generation" . - Replace the model ID:
- model: "gemini-2.0-flash-preview-image-generation" + model: "gemini-2.5-flash-image" - 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 November 14, 2025, and add the CI scanner so it cannot come back.
Questions
Is gemini-2.0-flash-preview-image-generation deprecated?
Yes. Google Gemini API has deprecated gemini-2.0-flash-preview-image-generation. It was shut down on November 14, 2025.
When does gemini-2.0-flash-preview-image-generation shut down?
November 14, 2025, according to Google Gemini API's official deprecation notice.
What should I use instead of gemini-2.0-flash-preview-image-generation?
Google Gemini API recommends gemini-2.5-flash-image. Switch the model ID and re-test your prompts, since outputs, pricing and limits can differ.
What happens to requests to gemini-2.0-flash-preview-image-generation 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.