Google Gemini API · model

gemini-3.1-flash-image-preview deprecation: shutdown date & replacement

Shut down June 25, 2026
Provider
Google Gemini API
Type
model
Announced
—
Shutdown
Replacement
gemini-3.1-flash-image
Source
Official Google Gemini API notice

Page lists announced earliest shutdown date.

Free alert: Email me when Gemini 3.1 Flash Image Preview’s shutdown status changes

How to migrate off gemini-3.1-flash-image-preview

  1. Find every place that references it:
    grep -rn --exclude-dir={node_modules,.git,dist} "gemini-3.1-flash-image-preview" .
  2. Replace the model ID:
    - model: "gemini-3.1-flash-image-preview"
    + model: "gemini-3.1-flash-image"
  3. Re-run your evals or a sample of real prompts — output style, token usage and pricing can change between models.
  4. Check config outside code too: environment variables, feature flags, prompt-management tools, and fine-tuned model references.
  5. Deploy before June 25, 2026, and add the CI scanner so it cannot come back.

Also shutting down on June 25, 2026 (Google Gemini API)

Questions

Is gemini-3.1-flash-image-preview deprecated?

Yes. Google Gemini API has deprecated gemini-3.1-flash-image-preview. It was shut down on June 25, 2026.

When does gemini-3.1-flash-image-preview shut down?

June 25, 2026, according to Google Gemini API's official deprecation notice.

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

Google Gemini API recommends gemini-3.1-flash-image. 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-image-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.

ModelSunset Alerts

Hear about a shutdown before your users do

Tell us which model IDs you depend on. We email you (or ping Slack/Discord) when one of them is deprecated, and again 90, 30, 7 and 1 day before shutdown — plus a personal calendar feed.

  • Watchlist of up to 50 model IDs across all providers
  • Alert within a day when a watched model is deprecated
  • Reminders 90 / 30 / 7 / 1 days before shutdown
  • Email, Slack or Discord alerts + personal iCal feed

$5/ month

Get Alerts

Cancel anytime from your account. 14-day money-back guarantee. Payments by Creem (Merchant of Record).

ModelSunset Team · early access

$15/ month

Founding price, locked for as long as you stay subscribed — for the first 100 teams. Regular price will be $29/month.

  • Everything in Alerts, unlimited model IDs
  • Daily scans of up to 20 GitHub repos, including private ones
  • CI check across all repos + monthly “what breaks next quarter” report
  • Several Slack/Discord channels and an API key

Not built yet — no payment now. We’ll open it to the list first.