The error you get
What Vertex AI 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
Move to gemini-3.5-flash-lite, which is recommended by Google.
In Vertex AI's words
Model ID: gemini-2.0-flash; Release date: February 5, 2025; Retirement date: June 1, 2026; Recommended upgrade: gemini-3.5-flash-lite
Facts
- API
- Vertex AI
aiplatform.googleapis.com - Model
gemini-2.0-flash- Released
- February 5, 2025 (models.dev)
- Kind
- Model retirement
- Takes effect
- June 1, 2026
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against Vertex AI's own pages
Questions
When does gemini-2.0-flash shut down?
Calls to the model gemini-2.0-flash on Vertex AI 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 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.
When was gemini-2.0-flash released?
gemini-2.0-flash was released on February 5, 2025, according to models.dev.
gemini-2.0-flash on other APIs 1
| Effective | Provider | Model | Status |
|---|---|---|---|
gemini-2.0-flash | stopped working |
More from Vertex AI 10
| Effective | Model | Status |
|---|---|---|
claude-3-7-sonnet | stopped working | |
Gemini 2.0 Flash | stopped working | |
Gemini 2.0 Flash-Lite | stopped working | |
gemini-2.0-flash-lite | stopped working | |
imagen-3.0-capability-002 | stopped working | |
imagen-3.0-generate-001 | stopped working | |
imagen-3.0-generate-002 | stopped working | |
imagen-4.0-fast-generate-001 | stopped working | |
imagen-4.0-generate-001 | stopped working | |
imagen-4.0-ultra-generate-001 | stopped working |