LLM API Rate Limits Explained: RPM, TPM, 429 Errors and How to Plan Capacity
LLM API rate limits cap how many requests and tokens your organization can use per minute, and they are enforced separately from your spend. When you exceed one you get an HTTP 429 error, and the right response depends on which limit you hit. This guide explains how Anthropic and OpenAI measure limits, what counts toward them and how to plan capacity, using their documentation as read on 10 November 2026. Limits and tiers change, so read your own console before you size a launch.
Key facts
- Anthropic measures requests per minute, input tokens per minute and output tokens per minute for each model class. OpenAI measures requests and tokens per minute and per day, plus images per minute, and the first limit reached applies.
- Anthropic says its input-token limit counts only uncached input, and that max_tokens does not factor into output-token limits.
- OpenAI says your rate limit usage is the larger of max_tokens and the estimate from your request's character count, and advises setting max_tokens close to your expected response size.
- Both vendors use tiers. OpenAI's paid tiers are Build, Launch and Grow, reached automatically at total credit purchases of $5, $100 and $500.
- Anthropic's monthly spend caps are $500 on Start, $1,000 on Build and $200,000 on Scale. Reaching one returns a 429 with no retry-after header.
What each vendor measures
Anthropic's limits apply per organization and per model class, and workspaces inside the organization can be given lower limits. OpenAI sets limits at organization and project level, not per user, and they vary by model. Anthropic uses a token bucket: capacity is continuously replenished up to the maximum rather than reset at fixed intervals, and a limit of 60 requests per minute may be enforced as 1 per second, so short bursts can fail even when your minute average is fine.
What counts toward the limit
This is where the vendors differ most. Anthropic counts input_tokens and cache creation tokens toward the input limit and does not count cache reads. Its example: a 2,000,000 input-tokens-per-minute limit with an 80 percent cache hit rate allows about 10,000,000 total input tokens per minute. OpenAI's estimate uses the larger of max_tokens and a character-based estimate, so an oversized max_tokens wastes capacity. Anthropic says a high max_tokens has no rate-limit downside. Pending batch tokens count toward OpenAI's batch queue limit until the job completes, and Anthropic's batch API has its own limits, shared across models.
Handling a 429 correctly
Both vendors tell you to back off. OpenAI recommends exponential backoff with random jitter and treating a Retry-After header as a minimum. It also notes that failed requests still count toward your per-minute limit, so aggressive retries make things worse. Anthropic says to wait the retry-after number of seconds when the header is present, and warns that retrying earlier fails.
Not every 429 is a rate limit. Anthropic's page describes a spend-cap 429: when you reach your tier's monthly cap, usage pauses until 00:00 UTC on the first day of the next month, the response carries no retry-after header, and automatic retries keep failing. The error details include the code enforced_spend_limit_reached, so your code can tell it apart from a normal limit. Anthropic also describes ramp limits, which can trigger 429 errors after a sharp rise in traffic, and advises increasing traffic gradually.
Read the headers
Anthropic returns headers for requests, tokens, input tokens and output tokens, each with limit, remaining and reset values. OpenAI returns similar x-ratelimit headers for requests and tokens. Log them. A dashboard of remaining capacity tells you about a bottleneck hours before the first 429.
Plan capacity before launch
This sizing method is our own. Estimate peak requests per minute, the average input and output tokens per request and the share of input you can cache. Multiply to get peak input and output tokens per minute, then compare with the limits shown in your console, not with a tier table in a blog post. Tiers rise automatically with usage and spend history on both vendors, so a new account may start below the standard limits. Anthropic notes that new organizations may begin in an Evaluation tier with lower limits.
What to do
- Read your current limits in the vendor console and write them into your runbook.
- Add exponential backoff with jitter and an attempt cap, and honor retry-after.
- Treat a spend-cap 429 as a stop condition with an alert, not a retry case.
- Set max_tokens close to the expected answer size, especially on OpenAI.
- Cache repeated input to stretch Anthropic's input limit, and use batch for work that can wait.
- Ask for a higher tier before launch, not on launch day.
Capacity can also fail on the vendor side; see our note on reliability problems at GitHub Copilot, and compare options in the AI tool directory. Our OpenAI deprecation calendar covers the model-retirement side of capacity planning.
Questions people ask
What does a 429 error mean?
A limit was exceeded. OpenAI describes it as a temporary limit; on Anthropic it can also mean the monthly spend cap was reached, which no retry will fix until the cap resets or is raised.
Do cached tokens count toward rate limits?
On Anthropic, cache reads do not count toward the input-token limit. OpenAI says cached input tokens still count toward its tokens-per-minute limits.
Does max_tokens affect my rate limit?
On OpenAI, yes: usage is the larger of max_tokens and the estimate from your request. On Anthropic, max_tokens does not factor into output-token limits.
Sources