You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
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-pro and gemini-1.5-flash-latest.
Multiple Library Versions: The error occurs using both @google/generative-ai versions 0.15.0 and 0.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 the generateContent call fails.
Diagnostic Test: A minimal test function that only calls gemini-pro with 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.
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
generateContentfor thegemini-promodel, the API returns:[404 Not Found] models/gemini-pro is not found for API version v1beta...Comprehensive Troubleshooting Steps Taken:
gemini-proandgemini-1.5-flash-latest.@google/generative-aiversions0.15.0and0.12.0.gemini-embedding-001) from the same environment SUCCEED. The function can generate embeddings, but thegenerateContentcall fails.gemini-prowith a hardcoded prompt also fails with the exact same 404 error.Conclusion:
This appears to be a fundamental account-level or regional provisioning issue that is preventing my account from accessing the
generateContentmethod, 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