
▲ 2 r/GeminiFeedback
Batch request is rejected with 429
Hi everyone.
Problem
I tried to run the Gemini batch API with the models/gemini-2.5-pro, but my request was rejected with a 429 error. The error details are below.
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/rate-limit. ', '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'}]}]}}
Background
When reviewing the Google Cloud Console, I found that the models/gemini-2.5-pro have a ghost batch queue, as shown in the current usage percentage in the next image.
However, I have checked the batch process in the cloud using the code in the document, and there are no remaining processes on my project. This means that I successfully deleted the batch job that I conducted a few weeks ago.
The batch job I would like to execute now uses fewer than the 5 M token rate limit of models/gemini-2.5-pro.
Question
- According to the AI Studio console, it may take up to 15 minutes for batch API usage data to update. I have already deleted all the batch jobs in the queue, and 15 minutes have passed, but the batch tokens that can be added to the queue, as shown in the above image, have not refreshed at all. Why?
- Why can't I execute the batch API? I have enough funds in my project, but do I need to deposit more?
u/Business_Interest862 — 1 day ago