Okapi Okapi

Vertex AI gemini-3.1-flash-image-preview model retirement

Stopped workingSubscribe to Vertex AIShare

On July 17, 2026, the model gemini-3.1-flash-image-preview was retired and is no longer accessible. Requests sent to this model fail since that date.


The error you get

What Vertex AI answers a call to gemini-3.1-flash-image-preview once the model is gone, as recorded from real responses:

HTTP 404
{"error":{"code":404,"message":"Publisher model `projects/{project}/locations/{region}/publishers/google/models/gemini-3.1-flash-image-preview` was not found or your project does not have access to it. Ensure you are using a valid model name and that the model is available in the specified region.","status":"NOT_FOUND"}}

What to use instead of gemini-3.1-flash-image-preview

Update your code to use either gemini-3.1-flash-image or gemini-3-flash-image instead.

In Vertex AI's words

The Nano Banana preview models gemini-3.1-flash-image-preview and gemini-3-pro-image-preview have been retired and are no longer accessible.

Vertex AI, Changelog

Facts

API
Vertex AI aiplatform.googleapis.com
Model
gemini-3.1-flash-image-preview
Released
February 26, 2026 (models.dev)
Kind
Model retirement
Announced
July 17, 2026
Takes effect
July 17, 2026
Calls after that day
Fail
Source
Changelog
Last updated
Verified
, against Vertex AI's own pages

Questions

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

Calls to the model gemini-3.1-flash-image-preview on Vertex AI stopped working on July 17, 2026.

What happens to calls after July 17, 2026?

They have failed since July 17, 2026.

What error does gemini-3.1-flash-image-preview return once it is shut down?

Vertex AI answers HTTP 404: "Publisher model `projects/{project}/locations/{region}/publishers/google/models/gemini-3.1-flash-image-preview` was not found or your project does not have access to it. Ensure you are using a valid model name and that the model is available in the specified region.". Send another model to fix it.

When was gemini-3.1-flash-image-preview released?

gemini-3.1-flash-image-preview was released on February 26, 2026, according to models.dev.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


gemini-3.1-flash-image-preview on other APIs 1

  1. Gemini API gemini-3.1-flash-image-previewModel retirement Stopped working

More from Vertex AI 10

  1. imagen-3.0-capability-002Model retirement Stopped working
  2. imagen-3.0-generate-001Model retirement Stopped working
  3. imagen-3.0-generate-002Model retirement Stopped working
  4. imagen-4.0-fast-generate-001Model retirement Stopped working
  5. claude-3-5-haikuModel retirement Stopped working
  6. models claude-3-5-haiku@*Model retirement Stopped working
  7. gemini-2.5-flash-lite-preview-09-2025Model retirement Stopped working
  8. gemini-2.5-flash-preview-05-2025Model retirement Stopped working
  9. gemini-3.1-flash-lite-previewModel retirement Stopped working
  10. gemini-3-pro-image-previewModel retirement Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub

Get notifications

Subscribe to Vertex AI

Hear about each breaking change Vertex AI announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Vertex AI

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.