Hi everyone,
I am trying to connect the Gemini API through a Cloudflare Worker, but every request fails with:
429 ResourceExhausted:
“You exceeded your current quota, please check your plan and billing details.”
I am using a Google AI Studio project with the Free Tier and the gemini-2.5-flash model.
What I have checked:
- Generative Language API is enabled;
- the API key was created for the correct project;
- the key is stored only as a Cloudflare Secret;
- the Cloudflare Worker is working correctly;
- GET /health returns {“status”:“ok”};
- GET /models returns a list of available models;
- gemini-2.5-flash is included in the model list;
- requests appear in Google AI Studio → Usage;
- there are no successful responses, all requests fail with 429.
The project previously showed the status “Restricted”, and Billing displayed:
“Set up billing unavailable”.
Could someone please help me understand:
1. How can I verify whether the Free Tier generateContent quota is actually available for this project?
2. Where can I see the exact RPM/TPM/RPD limits for gemini-2.5-flash?
3. Can the “Restricted” status mean that the quota is set to zero?
4. Could this be related to an account-level or regional restriction?
5. Does Gemini API work for anyone without billing, and what type of project are you using?
6. Is it necessary to create the project through Google AI Studio instead of Google Cloud Console?