LLM API Rate Limits Explained — TPM, RPM, and How to Handle 429s
Every LLM API enforces rate limits — requests per minute (RPM) and tokens per minute (TPM). This guide covers the limits for each major provider, what happens when you hit them, and battle-tested strategies for staying under the cap.
RPM vs TPM: two different limits
RPM (requests per minute) caps how many API calls you can make. TPM (tokens per minute) caps total token throughput. You hit whichever limit comes first. For chatbots with many short messages, RPM is usually the bottleneck. For batch processing with long documents, TPM is the bottleneck. Most providers enforce both simultaneously, and exceeding either returns a 429 Too Many Requests error.
Rate limits by provider and tier
OpenAI Tier 1 (new accounts): 500 RPM, 200K TPM. Tier 5 (established): 10,000 RPM, 30M TPM. Anthropic starts at 50 RPM and 40K TPM for new accounts, scaling to 4,000 RPM and 400K TPM at higher tiers. Google Gemini offers 360 RPM on the free tier and 2,000+ RPM on paid plans. DeepSeek is notably generous at 500 RPM even for new accounts. The key takeaway: your rate limit tier increases automatically as you spend more — OpenAI upgrades you after $50, $100, $250, $500 cumulative spend.
Handling 429 errors gracefully
When you hit a rate limit, the API returns a 429 status with a Retry-After header. The correct response is exponential backoff: wait 1 second, retry, wait 2 seconds, retry, wait 4 seconds, etc. Never retry immediately in a tight loop — you'll get throttled harder. Most SDKs (OpenAI Python, Anthropic Python) have built-in retry logic with backoff. If you're building your own, cap retries at 5 attempts with a maximum wait of 60 seconds.
Strategies for high-throughput workloads
For batch processing, use the provider's batch API instead of real-time — batch endpoints have separate, higher limits and cost 50% less. For real-time workloads, implement a token bucket or sliding window rate limiter on your side to stay just under the limit. Spread requests evenly across the minute rather than bursting. If you consistently need more throughput, contact the provider for a rate limit increase — all major providers offer this for production workloads.
Multi-provider routing for throughput
If one provider's rate limits are your bottleneck, route overflow to a second provider. Send primary traffic to your preferred provider and failover to an alternative when you approach the limit. OpenRouter and LiteLLM support automatic fallback routing. This effectively doubles your available throughput while also providing resilience against single-provider outages.
Related calculators
Related guides
Frequently Asked Questions
How do I check my current rate limit tier?
OpenAI: check the x-ratelimit-limit-requests and x-ratelimit-limit-tokens headers in any API response, or visit platform.openai.com/account/limits. Anthropic: check console.anthropic.com for your current tier. Google: check the Gemini API console. Most providers automatically upgrade your tier as cumulative spending increases.
Do rate limits apply per API key or per organization?
It depends on the provider. OpenAI rate limits are per-organization (all keys share the same limit). Anthropic limits are per-organization as well. This means creating multiple API keys doesn't increase your rate limit — you need to request a tier upgrade or use multiple organizations.
What is the difference between rate limits and quotas?
Rate limits are per-minute throughput caps (RPM/TPM). Quotas are total spending caps — daily or monthly dollar limits you set in your dashboard. Hitting a rate limit returns 429; hitting a quota returns 402 or 429 depending on the provider. Always set a spending quota as a safety net against runaway costs from bugs or prompt injection.
How do I request a rate limit increase?
OpenAI: rate limits increase automatically with cumulative spend ($50, $100, $250, $500 thresholds). For custom increases beyond Tier 5, submit a request through platform.openai.com. Anthropic: request increases through console.anthropic.com or contact your account rep. Google: request increases through the Cloud Console quota page. All providers typically approve increases within 1–3 business days for established accounts with clean usage history.
How should I implement retry logic for rate limits?
Use exponential backoff with jitter: wait = min(base × 2^attempt + random(0, base), max_wait). Start with base=1 second, max 5 retries, max_wait=60 seconds. The jitter (random component) prevents thundering herd when multiple clients hit rate limits simultaneously. Most official SDKs (openai Python, anthropic Python) implement this automatically — check if your SDK handles retries before building custom logic.
Can I pre-calculate whether my workload will hit rate limits?
Yes. If your workload processes 100 requests/minute with average 5K tokens each: RPM needed = 100, TPM needed = 500K. Compare against your tier's limits. If you need 500K TPM but your tier allows 200K TPM, you'll hit limits 60% of the time. Solutions: batch requests to smooth throughput, use the batch API for async work, spread requests across multiple providers, or request a tier upgrade. The WiseCrewAI Rate Limit Calculator models this precisely.
Do rate limits apply differently to streaming vs non-streaming?
The rate limit is counted when the request is submitted, not when the response completes. A streaming request counts as 1 RPM and its full token usage against TPM immediately. This means streaming doesn't help with rate limits — it only helps with perceived latency. If you're rate-limited, switching to streaming won't increase your effective throughput. Focus on reducing request count or upgrading your tier.
Guide updated 2026-11-18. Pricing data verified weekly. See methodology · sources.