Pause
Wait before retrying. If the limit is RPM or TPM, a short delay may be enough.
API rate limits
For developers, the important limits are requests per minute, tokens per minute, requests per day, model-specific capacity, usage tier and sometimes spend-based limits. Check AI Studio for your active numbers.
Official model
Google’s Gemini API documentation says limits regulate requests in a timeframe, are evaluated across multiple dimensions, are applied per project rather than per API key, and can vary by model and usage tier.
| Dimension | What it means | What causes trouble |
|---|---|---|
| RPM | Requests per minute. | Sending too many concurrent or burst requests. |
| TPM | Input tokens per minute. | Long prompts, repeated context, large file text or many parallel requests. |
| RPD | Requests per day. | Heavy daily usage, retry loops, cron jobs or batch-like work through interactive endpoints. |
| Spend-based limit | Rolling spend protection on paid tiers. | Expensive model calls, large context windows or high output volume. |
429 fixes
A 429 is usually a capacity, quota or rate problem. Do not immediately retry in a tight loop.
Wait before retrying. If the limit is RPM or TPM, a short delay may be enough.
Use exponential backoff with jitter. This prevents synchronized retry storms.
Shorten inputs, summarize context and lower output length.
Open AI Studio to see active limits, billing status and upgrade eligibility.
Architecture
Control concurrency centrally instead of letting every user action call the API immediately.
Do not resend the same long instructions or documents when a summary or cached context works.
For low-risk tasks, route to a lighter model when the premium model is saturated.
Debug checklist
Before changing code, identify which counter failed. A 429 can come from burst traffic, huge prompts, exhausted daily quota or billing constraints.
Rate limits are model and project dependent, so include both in your error logs.
Record input token estimates and output length so TPM pressure is visible.
Mark retry attempts so they do not look like organic user demand.
If RPD is exhausted, short backoff will not help until quota returns.
Related developer limit guides