Claude API Rate Limits Explained for Developers
Claude API rate limits control how many requests and tokens you can send per minute, based on your usage tier with Anthropic. If you're hitting 429 errors, seeing slower-than-expected throughput, or trying to plan capacity for a production app, understanding how these limits are structured — and how they differ from simple "requests per minute" caps — is the first step to building something reliable.
This article explains what the limits actually measure, how tiers work, what headers tell you about your current usage, and how to think about limits when you're building a product rather than just testing in a notebook.
What Claude API rate limits actually measure
Anthropic's rate limits aren't a single number. They're a combination of several independent caps that apply simultaneously:
- Requests per minute (RPM) — the raw number of API calls you can make
- Input tokens per minute (ITPM) — total tokens sent across all requests in that window
- Output tokens per minute (OTPM) — total tokens generated across all requests in that window
You can hit a 429 even if you're nowhere near your RPM cap, simply because a handful of long-context requests consumed your token budget for that minute. This trips up a lot of developers who assume rate limiting works like a simple request counter.
Limits are also organization-wide, not per API key. If you issue multiple keys for different services or team members, they all draw from the same pool unless you're on a plan with separate allocations.
How usage tiers work
Anthropic assigns accounts to tiers based on cumulative spend and account age, and each tier unlocks higher limits automatically. Roughly:
- New accounts start in the lowest tier with conservative limits, usually enough for development and testing but not for production traffic at scale
- As your account accrues spend over time, you're moved to higher tiers with significantly higher RPM/TPM caps
- Enterprise agreements can get custom limits negotiated directly
This means your rate limits today are not your rate limits in three months if usage grows. It also means a brand-new account testing a launch-day feature can get rate limited in ways a mature account wouldn't — plan your testing and rollout timeline with that in mind.
Reading the rate limit response headers
Every API response includes headers that tell you exactly where you stand:
anthropic-ratelimit-requests-limit: 1000
anthropic-ratelimit-requests-remaining: 998
anthropic-ratelimit-requests-reset: 2024-05-01T12:34:00Z
anthropic-ratelimit-tokens-limit: 100000
anthropic-ratelimit-tokens-remaining: 84210
anthropic-ratelimit-tokens-reset: 2024-05-01T12:34:00Z
Reading these on every response — not just when you get a 429 — lets you build logic that slows down proactively before you're throttled, rather than reactively after. A simple pattern:
const res = await fetch("https://api.anthropic.com/v1/messages", options);
const remaining = Number(res.headers.get("anthropic-ratelimit-tokens-remaining"));
const limit = Number(res.headers.get("anthropic-ratelimit-tokens-limit"));
if (remaining / limit < 0.1) {
// under 10% of token budget left for this window — throttle or queue
}
This is a monitoring strategy, not a retry strategy — if you need the actual backoff and retry implementation, that's a separate concern worth handling with exponential backoff and jitter.
Why token limits bite harder than request limits
Most teams budget for RPM and get surprised by TPM. A few scenarios that burn through token limits fast:
- Long system prompts repeated on every call — if your system prompt is 2,000 tokens and you send 50 requests/minute, that's 100,000 input tokens before any actual conversation content
- Large context windows — feeding in full documents, chat history, or RAG context multiplies input tokens per request
- Streaming doesn't help token limits — streaming improves perceived latency but the token accounting is identical to non-streaming calls
If your use case involves consistently large prompts, you'll hit TPM ceilings well before RPM ones, and the fix is usually trimming context (summarizing history, reducing retrieved chunks) rather than requesting a higher tier.
Planning capacity for a real product
Rate limits matter differently depending on what you're building:
- Internal tools / low traffic — default tier limits are usually fine; just watch for bursty usage patterns (e.g., a cron job firing 200 requests at once)
- User-facing apps with unpredictable traffic — you need queuing or backpressure, since a viral moment can spike concurrent users past your TPM ceiling in seconds
- Multi-tenant SaaS — you need to track usage per customer, not just globally, or one heavy user can degrade the app for everyone else
This last point is where a lot of teams end up building more infrastructure than they intended — per-key usage dashboards, quota enforcement per customer, team seat management — just to operate the underlying model access safely.
If you'd rather not build that layer yourself, this is exactly the gap SubToAPI fills: it sits in front of your Claude access and gives you application-specific API keys (sub_live_...), per-key usage metadata, and team seats, so you can see and control consumption without writing your own metering system. Check the docs or start with the quickstart to see how request and streaming calls look in practice — the streaming guide and tool use docs cover the more advanced request types that tend to be the heaviest token consumers.
Practical checklist
- Log the rate limit headers on every response, not just failures
- Separate your token budget concerns from your request budget concerns — they're independent
- Trim system prompts and context windows before assuming you need a higher tier
- If you're building for multiple users or customers, track usage per tenant, not just at the account level
- Expect your limits to change as your account tier changes — don't hardcode assumptions about capacity
Questions
Does a higher-tier Anthropic plan automatically give me higher rate limits? Yes — tiers are based on cumulative spend and account age, and moving to a higher tier increases RPM, input token, and output token limits automatically without any manual request in most cases.
Do rate limits apply per API key or per organization? They apply at the organization level by default, meaning all API keys under the same account share the same pool of requests and tokens unless you have a custom enterprise setup.
Why am I getting rate limited with low request volume? You're likely hitting the token-per-minute limit rather than the request-per-minute limit — large system prompts, long context windows, or big documents can exhaust your token budget well before you've made many individual calls.