AI EngineerGuide

Gemini 3.1 Flash Image Preview retirement date: June 25, 2026

Retired on June 25, 2026; requests to gemini-3.1-flash-image-preview now fail.

Retired on Jun 25, 2026retired
Provider
Google (Gemini API)
Model IDs affected
gemini-3.1-flash-image-preview
Shutdown date
June 25, 2026
Replacement
gemini-nano-banana-2.1
Platforms
Dates apply to the Gemini API and are the earliest possible shutdown dates Google publishes. If you use Gemini through another platform, check that platform's own schedule.
Source
Official Google (Gemini API) deprecations page (data last changed 2026-11-02, re-checked daily)

Migrating from Gemini 3.1 Flash Image Preview

Not yet reviewed. We haven't written model-specific migration notes for Gemini 3.1 Flash Image Preview yet. Start with the provider's official guidance and the replacement's model page, and use this general checklist:

  • Search your code, config and environment variables for gemini-3.1-flash-image-preview.
  • Re-run your evaluation set against gemini-nano-banana-2.1 before switching traffic.
  • Recount tokens with the new model's tokenizer and re-check max_tokens, context fit and cost.
  • Check tool calling, structured output and stop sequences on your real prompts.
  • Dates apply to the Gemini API and are the earliest possible shutdown dates Google publishes. If you use Gemini through another platform, check that platform's own schedule.

Check your code before Jun 25

Also shutting down on June 25, 2026

All model retirements · All Google (Gemini API) deprecations

FAQ

When was Gemini 3.1 Flash Image Preview retired?

Gemini 3.1 Flash Image Preview (gemini-3.1-flash-image-preview) was retired on the Gemini API on June 25, 2026, according to the official Gemini API deprecations page. Requests to it now fail.

What should I use instead of gemini-3.1-flash-image-preview?

The recommended replacement is gemini-nano-banana-2.1.

What happens to gemini-3.1-flash-image-preview requests after the shutdown date?

After a model is retired, API requests to it return an error. Move traffic to the replacement and test it on your own prompts before the date.

Does this date apply to Amazon Bedrock, Vertex AI or Azure?

Dates apply to the Gemini API and are the earliest possible shutdown dates Google publishes. If you use Gemini through another platform, check that platform’s own schedule.