Gemini API 429 RESOURCE_EXHAUSTED Error on Tier 1

Hi, I am trying to call Gemini API using an API key linked to a project with a billing account. But I keep getting Error 429, saying I have reached my free tier quota. I have checked to make sure the billing is enabled and the API key is labelled as Tier 1.

1 Like

Hi @elaine_api,

Welcome to the Forum,

To help us troubleshoot the issue, please provide the complete 429 response.

Thank you!

Hi I get an output like this

[2026-01-07 20:40:47,874: WARNING/ForkPoolWorker-4] [Job efdb2d10-caff-4b00-88cf-ffe8cdb3e0d1] Attempt 1 failed: 429 RESOURCE_EXHAUSTED. {‘error’: {‘code’: 429, ‘message’: ‘You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits.⁠ To monitor your current usage, head to: https://ai.dev/usage?tab=rate-limit.⁠ \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.5-pro\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.5-pro\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.5-pro\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.5-pro\nPlease retry in 11.767792953s.’, ‘status’: ‘RESOURCE_EXHAUSTED’, ‘details’: [{‘@type’: ‘type.googleapis.com/google.rpc.Help’, ‘links’: [{‘description’: ‘Learn more about Gemini API quotas’, ‘url’: ‘https://ai.google.dev/gemini-api/docs/rate-limits’}]}, {‘@type’: ‘type.googleapis.com/google.rpc.QuotaFailure’, ‘violations’: [{‘quotaMetric’: ‘generativelanguage.googleapis.com/generate_content_free_tier_input_token_count’, ‘quotaId’: ‘GenerateContentInputTokensPerModelPerDay-FreeTier’, ‘quotaDimensions’: {‘location’: ‘global’, ‘model’: ‘gemini-2.5-pro’}}, {‘quotaMetric’: ‘generativelanguage.googleapis.com/generate_content_free_tier_requests’, ‘quotaId’: ‘GenerateRequestsPerDayPerProjectPerModel-FreeTier’, ‘quotaDimensions’: {‘model’: ‘gemini-2.5-pro’, ‘location’: ‘global’}}, {‘quotaMetric’: ‘generativelanguage.googleapis.com/generate_content_free_tier_requests’, ‘quotaId’: ‘GenerateRequestsPerMinutePerProjectPerModel-FreeTier’, ‘quotaDimensions’: {‘location’: ‘global’, ‘model’: ‘gemini-2.5-pro’}}, {‘quotaMetric’: ‘generativelanguage.googleapis.com/generate_content_free_tier_input_token_count’, ‘quotaId’: ‘GenerateContentInputTokensPerModelPerMinute-FreeTier’, ‘quotaDimensions’: {‘location’: ‘global’, ‘model’: ‘gemini-2.5-pro’}}]}, {‘@type’: ‘type.googleapis.com/google.rpc.RetryInfo’, ‘retryDelay’: ’

However, after checking on gemini console, I am not on free tier, nor am I near any quotas.

i am facing the same issue

Hi @elaine_api,

The issue should be fixed. Please check and let us know if the problem persists.

Thank you!

Hi @Reuben_Fernandes,

To troubleshoot your issue, please provide the complete error message and a screenshot of your usage details from the https://ai.dev/usage?tab=rate-limit page? . Please DM your project number (not the project ID) separately.

Thank you!

image

Hi @Reuben_Fernandes,

Regarding the 429 error shown in the screenshot, can you please verify which model is being used?

Thank you!

Hi, I am having the same issue with using computer-use-preview and gemini-2.5-pro . I am getting 429 resource exhausted but I am not near the limits:

google.genai.errors.ClientError: 429 RESOURCE_EXHAUSTED. {‘error’: {‘code’: 429, ‘message’: ‘Resource has been exhausted (e.g. check quota).’, ‘status’: ‘RESOURCE_EXHAUSTED’}}

gemini-3-flash-preview

I started running into a similar issue (gemini-3-flash-preview) and 429 errors even though AI Studio and Google Cloud both didn’t show me approaching any visible quota or rate limit.

My calls were using the Google Search grounding tool. When I turned that off, I stopped seeing errors.

My best guess is that the error message is too generic, and/or Google hasn’t yet built a user-visible quota or rate limit for the search grounding.

Other materials online say that Google will start billing for search grounding queries starting Jan 6, 2026. So maybe there’s something going wrong there, since it appears I started seeing these errors after ~5000 queries, which is what Google’s documentation quotes as the monthly free-tier limit https://ai.google.dev/gemini-api/docs/pricing#gemini-3-flash-preview

1 Like

Facing the exact same issue my token was originally from free tier so i though i will create a new one but still the issue persists

429 RESOURCE_EXHAUSTED. {‘error’: {‘code’: 429, ‘message’: ‘You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: . To monitor your current usage, head to: . \n* Quota exceeded for metric: , limit: 20, model: gemini-2.5-flash\nPlease retry in 27.966937085s.’, ‘status’: ‘RESOURCE_EXHAUSTED’, ‘details’: [{‘@type’: ‘’, ‘links’: [{‘description’: ‘Learn more about Gemini API quotas’, ‘url’: ‘’}]}, {‘@type’: ‘’, ‘violations’: [{‘quotaMetric’: ‘’, ‘quotaId’: ‘GenerateRequestsPerDayPerProjectPerModel-FreeTier’, ‘quotaDimensions’: {‘location’: ‘global’, ‘model’: ‘gemini-2.5-flash’}, ‘quotaValue’: ‘20’}]}, {‘@type’: ‘type.googleapis.com/google.rpc.RetryInfo’, ‘retryDelay’: ‘27s’}]}}

I removed/edited the reponse since i was getting cant post more than 2 links error

Hi @Abhishyant_Khare, @Gregory_Jordan, @Arjith_A_R, @Arjith_A_R

Thank you for reporting. To help us to understand your issue, please provide a screenshot of your usage details from https://ai.dev/usage?tab=rate-limit and DM me your project number (not project id).

Thank you!

and the number is 582154466397

If everything is setup correctly, just check if you are using gemini model name correctly. In my scenario, previously i used to consume gemini 2.0 flash but now it shows me resource exhausted even for fresh new account and api key. Then, I just tried changing the model name and it worked without even adding any billing accout/details.

Go to- https://aistudio.google.com/usage?timeRange=last-28-days&tab=rate-limit
Toggle “All models” and just copy the required model name and paste in the code.

Even Though I’m also getting error like 429 . You exceeded your current quota, please check your plan and billing details.
Hello, I am facing an issue with the Gemini API key while integrating it with Spring AI. It is showing a 429 error: “Quota limit exceeded.” Even though I created the API key using a new account and haven’t used it for a week, the same error is still appearing. If anyone knows how to solve this issue, please let me know.