I’m experiencing the same issue. My free-tier API key for Gemini worked fine for a while, but a week ago I started getting the following error:
google.genai.errors.ClientError: 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.', 'status': 'RESOURCE_EXHAUSTED'}}
Even after waiting for a week, the same error still occurs when I call the API again.
In AI Studio, the “Past 90 days” API usage shows “No data”, even though I definitely made API calls about two weeks ago.
Has my API key been restricted or suspended by Gemini?
Nobody know this? Seems that my free tier API has something wrong.
Hii @Marcin_Lee
Welcome to Google AI Forum!!!
Apologies for the delayed response. Could you please confirm whether you are still experiencing this issue?
Hi Shivam, yes, the same issue persists. When I use my API key, the feedback I receive is: {google.genai.errors.ClientError: 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. ', ‘status’: ‘RESOURCE_EXHAUSTED’}}Our key is the free version. All API keys under my account are facing this problem. Furthermore, when I try to generate a new project from the “Create New API Key” interface, it fails. I am required to log into Google Cloud to be able to create a new project.
Hello,
Please follow the below instructions to troubleshoot:
- Navigate to the GCP Console and select “APIs & Services”.
- Under Metrics, search for and select “Generative Language API”.
- Go to the “Quotas & System Limits” tab and check the “Current Usage Percentage”.
If the usage has reached 100%, your quota limit has been exceeded, which can result in a 429 Error.
1 Like
I’m not a registered user of Google Cloud Platform because I don’t want to link my credit card.
When I try to sign in to Google Cloud Platform, it asks me to register, so I chose not to.
I created my Gemini API project by clicking the “Create API key” button on this page: https://aistudio.google.com/api-keys
.
So my API tier is at the free level.
When I click “View Usage”, it shows:
“Project quota tier unavailable. Please contact your project administrator for assistance.”
Is this limitation caused by the fact that I haven’t activated a Google Cloud Platform account?