Vertex AI (us-central1-aiplatform.googleapis.com)
Gemini 2.0 Flash model retirement
Stopped workingSubscribe to Vertex AI (us-central1-aiplatform.googleapis.com)Share
On June 1, 2026, Gemini 2.0 Flash was discontinued and became unavailable. This change affects calls to model Gemini 2.0 Flash, covering both model serving and Provisioned Throughput. Calls to this model now fail.
The error you get
What Vertex AI (us-central1-aiplatform.googleapis.com) answers a call to Gemini 2.0 Flash once the model is gone, as recorded from real responses:
{"error":{"code":404,"message":"Publisher model `projects/{project}/locations/{region}/publishers/google/models/Gemini 2.0 Flash` 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 2.0 Flash
Use Gemini 3.1 Flash-Lite, Gemma 4, or more recent Gemini releases instead.
In Vertex AI (us-central1-aiplatform.googleapis.com)'s words
Gemini 2.0 Flash and 2.0 Flash-Lite are discontinued and are no longer available. This includes both model serving and Provisioned Throughput. Use Gemini 3.1 Flash-Lite, Gemma 4, or more recent Gemini releases.
Facts
- API
- Vertex AI (us-central1-aiplatform.googleapis.com)
us-central1-aiplatform.googleapis.com - Model
Gemini 2.0 Flash- Kind
- Model retirement
- Announced
- June 1, 2026
- Takes effect
- June 1, 2026
- Calls after that day
- Fail
- Source
- Changelog
- Last updated
- Verified
- , against Vertex AI (us-central1-aiplatform.googleapis.com)'s own pages
Questions
When does Gemini 2.0 Flash shut down?
Calls to the model Gemini 2.0 Flash on Vertex AI (us-central1-aiplatform.googleapis.com) stopped working on June 1, 2026.
What happens to calls after June 1, 2026?
They have failed since June 1, 2026.
What error does Gemini 2.0 Flash return once it is shut down?
Vertex AI (us-central1-aiplatform.googleapis.com) answers HTTP 404: "Publisher model `projects/{project}/locations/{region}/publishers/google/models/Gemini 2.0 Flash` 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.
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.
More from Vertex AI (us-central1-aiplatform.googleapis.com) 10
-
veo-001-preview-0815Model retirement Stopped working -
Gemini 2.0 Flash-LiteModel retirement Stopped working -
imagen-3.0-capability-002Model retirement Stopped working -
imagen-4.0-fast-generate-001Model retirement Stopped working -
imagetext@001Model retirement Stopped working -
gemini-2.5-flash-lite-preview-09-2025Model retirement Stopped working -
gemini-2.5-flash-preview-05-2025Model retirement Stopped working -
gemini-3.1-flash-lite-previewModel retirement Stopped working -
gemini-3-pro-image-previewModel retirement Stopped working -
gemini-3.1-flash-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.