Firebase Function (2nd Gen) receiving 404 Not Found from Gemini API (generativelanguage.googleapis.com)

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.