Hello, I’m experiencing a persistent 404 NOT_FOUND error when calling Vertex AI generative models (Gemini) from my project. The error started occurring suddenly after working correctly for ~2 months, without any code changes on my side.
Error Detail (Python / Google GenAI):
google.genai.errors.ClientError: 404 NOT_FOUND. {'error': {'code': 404, 'message': 'Publisher Model `projects(PII Removed by Staff)gemini-2.5-flash-preview-09-2025` was not found or your project does not have access to it. Please ensure you are using a valid model version. ...', 'status': 'NOT_FOUND'}}
Steps to Reproduce:
-
Code that was working for ~2 months now starts returning this error
-
Model name:
gemini-2.5-flash-preview-09-2025 -
Billing enabled, Vertex AI API enabled
-
Verified IAM roles include
Vertex AI Userfor the service account -
Tried from multiple regions and SDK versions
Observations:
-
This error appears even with correct setup and models that were previously working.
-
It seems like either the model is no longer accessible or there’s a backend provisioning / model availability issue.