Google Gemini API error
Gemini API 429 rate_limit_exceeded: what it means and how to fix it
429 rate_limit_exceededRetry? YesLast verified 3 documented fixes3 sources
What it means
You have exceeded the per-minute or per-second request or token limit. Limits are applied per project, not per API key.
Causes
- Exceeding requests per minute (RPM)
- Exceeding input tokens per minute (TPM)
How to fix it
- Fix 1.
Wait and retry with exponential backoff and jitter, and set a maximum number of retries.
- Fix 2.
Check your active rate limits in Google AI Studio; higher usage tiers get higher limits.
- Fix 3.
Request a paid tier rate limit increase if needed.
More Gemini API errors
All 30 Gemini API errorsHTTP 429 at other providers
Compare 429 across providers429 ThrottlingExceptionRetry? YesAmazon Bedrock429 ModelNotReadyExceptionRetry? YesAmazon Bedrock429 rate_limit_errorRetry? YesAnthropic API429 rate_limit_error (enforced_spend_limit_reached)Retry? NoAnthropic API429 Too Many Requests (Rate limit is exceeded)Retry? YesAzure OpenAI429 Too Many Requests (System is experiencing high demand)Retry? YesAzure OpenAI429 Too Many Requests (temporary rate limit adjustment)Retry? YesAzure OpenAI429 Too Many Requests (token budget exceeded by request parameters)Retry? Not statedAzure OpenAI429 Too Many RequestsRetry? YesCohere API429 - Rate Limit ReachedRetry? Not statedDeepSeek API429 Too Many RequestsRetry? YesGroq API429 Too many requestsRetry? YesMistral API
FAQ
What does the Gemini API error "429 rate_limit_exceeded" mean?
You have exceeded the per-minute or per-second request or token limit. Limits are applied per project, not per API key.
How do I fix Gemini API "429 rate_limit_exceeded"?
There are 3 documented fixes. Start with the first: Wait and retry with exponential backoff and jitter, and set a maximum number of retries.
Should I retry Gemini API "429 rate_limit_exceeded"?
Yes. The official docs treat this error as retryable.
Which other AI APIs return HTTP 429?
Per their official error docs: Amazon Bedrock (429 ThrottlingException; 429 ModelNotReadyException), Anthropic API (429 rate_limit_error; 429 rate_limit_error (enforced_spend_limit_reached)), Azure OpenAI (429 Too Many Requests (Rate limit is exceeded); 429 Too Many Requests (System is experiencing high demand); 429 Too Many Requests (temporary rate limit adjustment); 429 Too Many Requests (token budget exceeded by request parameters)), Cohere API (429 Too Many Requests), DeepSeek API (429 - Rate Limit Reached), Groq API (429 Too Many Requests), Mistral API (429 Too many requests), OpenAI API (429 credit_balance_exhausted; 429 Rate limit reached for requests; 429 rate_limit_error slow_down; 429 organization_spend_limit_exceeded; 429 project_spend_limit_exceeded; 429 organization_usage_limit_exceeded), OpenRouter (429 rate_limit_exceeded), Vertex AI (429 RESOURCE_EXHAUSTED; 429 Resource exhausted, please try again later; 429 Too many requests. Exceeded the Provisioned Throughput), xAI API (429 Too Many Requests).
Sources
Last verified against 3 sources: Gemini API's official docs and official SDK repositories.
- ai.google.devhttps://ai.google.dev/gemini-api/docs/api-errors
- ai.google.devhttps://ai.google.dev/gemini-api/docs/rate-limits
- ai.google.devhttps://ai.google.dev/gemini-api/docs/troubleshooting
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.