-
Notifications
You must be signed in to change notification settings - Fork 313
Open
Description
Description of the bug:
Hello,
I am experiencing a persistent 404 Not Found error when trying to call the Gemini API. This issue occurs across multiple projects and API keys, despite following all troubleshooting steps.
The Core Error:
When calling generateContent for the gemini-pro model, the API returns:
[404 Not Found] models/gemini-pro is not found for API version v1beta...
Comprehensive Troubleshooting Steps Taken:
- API Enabled: Confirmed "Generative Language API" is ENABLED in the Google Cloud project.
- Billing Enabled: Confirmed an active billing account is linked to the project. This was initially missing but has been corrected. The error persists.
- Multiple Models: The error occurs for both
gemini-proandgemini-1.5-flash-latest. - Multiple Library Versions: The error occurs using both
@google/generative-aiversions0.15.0and0.12.0. - New API Key: Created a brand new, unrestricted API key. The error persists.
- COMPLETELY NEW PROJECT: Created a brand new Google Cloud Project from scratch. Repeated all steps (Enable API, Link Billing, Create New API Key). The error STILL PERSISTS even in the new, clean project.
- Successful API Calls: Crucially, calls to the embedding model (
gemini-embedding-001) from the same environment SUCCEED. The function can generate embeddings, but thegenerateContentcall fails. - Diagnostic Test: A minimal test function that only calls
gemini-prowith a hardcoded prompt also fails with the exact same 404 error. - Region: I am located in Greece (EU).
- Support Loop: I was unable to file a technical support case via the Cloud Console due to a permissions error. When I contacted support via my Google One subscription, they redirected me back to the Cloud Console, creating a support loop.
Conclusion:
This appears to be a fundamental account-level or regional provisioning issue that is preventing my account from accessing the generateContent method, regardless of project or API key. Please investigate.
Thank you.
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
Metadata
Metadata
Assignees
Labels
No labels