Hello, I am developing a 2nd Gen Firebase Cloud Function in my project “biblia-salluz-app” that calls the Gemini API, but I am consistently receiving a 404 Not Found error, even though all configurations seem correct. The latest error log from my Cloud Function is: “GoogleGenerativeAIError: [404 Not Found] models/gemini-1.5-flash is not found for API version v1beta, or is not supported for generateContent.” Here is what I have already verified and configured: 1. The project “biblia-salluz-app” has an active billing account linked. 2. Both “Vertex AI API” and “Generative Language API” (generativelanguage.googleapis.com) are enabled for the project. 3. The service account running the function has been granted the following IAM roles: “Editor”, “Vertex AI User”, and “Secret Manager Secret Accessor”. 4. The function is a `https-onCall` trigger, deployed in `us-central1` using Node.js 20. 5. The Cloud Run service for the function is set to “Allow unauthenticated invocations”. 6. We have tried different models (“gemini-pro”, “gemini-1.5-flash”) with the same 404 result. This behavior strongly suggests there might be a project-level or organization-level policy preventing our service account from accessing the Gemini models via the generativelanguage API. Could anyone from the Google Cloud or Firebase team help investigate project “biblia-salluz-app” to see if there are any hidden restrictions blocking access? Thank you for your help.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Gemini API 404 Error in Google Studio App | 0 | 37 | October 27, 2025 | |
| I’m facing a persistent 404 Not Found error | 2 | 86 | October 10, 2025 | |
| Gemini Experimental Models are throwing error | 7 | 754 | March 17, 2025 | |
| I am encountering an error when attempting to link my fine-tuned model created in Google AI Studio. Can anyone provide assistance in identifying the cause of this issue? | 2 | 100 | September 28, 2024 | |
| Persistent 404 Model Not Found Error on New Vertex AI Project (All Regions/Models) | 0 | 21 | October 21, 2025 |