The error you get
What Vertex AI answers a call to gemini-2.5-flash-preview-05-2025 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.5-flash-preview-05-2025` 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.5-flash-preview-05-2025
See Migrate to the latest Google models for information on how to migrate your project.
In Vertex AI's words
The following preview model endpoints have been retired and are no longer accessible: - gemini-2.5-flash-lite-preview-09-2025 - gemini-2.5-flash-preview-05-2025 - gemini-3.1-flash-lite-preview
Facts
Questions
When does gemini-2.5-flash-preview-05-2025 shut down?
Calls to the model gemini-2.5-flash-preview-05-2025 on Vertex AI stopped working on July 9, 2026.
What happens to calls after July 9, 2026?
They have failed since July 9, 2026.
What error does gemini-2.5-flash-preview-05-2025 return once it is shut down?
Vertex AI answers HTTP 404: "Publisher model `projects/{project}/locations/{region}/publishers/google/models/gemini-2.5-flash-preview-05-2025` 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.
More from Vertex AI 10
| Effective | Model | Status |
|---|---|---|
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 | |
claude-3-5-haiku | stopped working | |
gemini-2.5-flash-lite-preview-09-2025 | stopped working | |
gemini-3.1-flash-lite-preview | stopped working | |
gemini-3-pro-image-preview | stopped working | |
gemini-3.1-flash-image-preview | stopped working |