Living with LLM API rate limits, and how to stop
Learn what LLM API rate limits are, how to handle 429 errors and smooth your traffic, and when moving one high-volume task off a shared API ends them for good.
Updated
LLM API rate limits are caps a provider sets on how many requests or tokens your account can send in a set time window. Go over and the call fails, usually with HTTP 429, until the window resets. You can live with them by retrying carefully, queuing work and spreading load. You stop them for good only when the high-volume task moves off a shared quota and onto capacity you control.
What the limits count
Providers usually set several limits at once: requests per minute, tokens per minute and sometimes tokens per day. They apply per account, per model and often per organization, so every service that uses the same key draws from one pool. Input and output tokens can count separately. A long contract with a two-line answer can hit the token limit after a few calls, while a classifier making thousands of tiny calls hits the request limit first.
Worked example, with made-up numbers: your account allows 400,000 input tokens per minute and each contract averages 60,000 tokens. Six contracts sent in one burst use 360,000 tokens, and the seventh pushes the minute past the cap. Daily volume does not matter here, because the limit counts the minute.
Read your current limits on the provider’s limits page before you design the workload. They change by tier, so check the numbers for the account you actually run.
Handle 429s without losing work
Retry with exponential backoff and random jitter. The jitter matters: without it, workers that failed together retry together and fail together again. Honor the retry-after header when the response sends one. Cap the retries, then push the job onto a queue instead of failing the request in front of a user. Log every 429 with the model name and the limit that tripped, so you can tell a request spike from a token spike.
Retries fix bursts. They do not fix a workload that sits above the quota all day. If 429s show up in every hour of your logs, a smarter retry loop only hides the problem. Lower the steady load or move the work somewhere else.
Common mistakes:
- Retrying in a tight loop, which spends the quota on calls that will fail.
- Retrying every error the same way. A 400 or 401 will never succeed on retry.
- Paging someone on every 429. The API is working as designed when it refuses a call over quota.
Smooth the load before it hits the limit
Put a semaphore or token bucket in front of your client, sized to your quota with some headroom. Give each worker its own concurrency ceiling, so one slow job cannot take every slot. Cap the output length on each call, so a single long answer cannot use up the minute’s token budget. Where the task allows, pack several short items into one prompt. Tagging twenty product titles in one call uses one request instead of twenty.
Work that does not need an answer right away belongs on the provider’s batch interface, where one is offered. Anthropic’s Batch API is half price, which makes it the cheaper route for bulk jobs. The trade is time: results come back later, not in seconds. The batch vs real-time guide covers where each one fits, and concurrency in LLM serving goes deeper on the slot settings.
Know which limit you are hitting
Token-per-minute limits bite on long documents, such as contracts, filings or transcripts. Request-per-minute limits bite on high call counts with short prompts, such as routing tickets or tagging products. The fixes differ. Long documents need smaller chunks, or a model that reads more text per dollar. Many small calls need batching. The document processing guide walks through this split for extraction work.
Before launch, run through this list:
- Write down every limit the provider lists for the model you call.
- Estimate tokens per call and calls per minute at your busiest hour, not your daily average.
- Find the job that causes the peak, and keep it off the queue that serves users if you can.
- Test above your expected peak and note which limit trips first.
- Alert on the 429 rate, not only on hard failures.
When the limit is the sign the task belongs elsewhere
If one task makes up most of your traffic, a shared API is a poor fit for it. You pay list price for every token, you queue behind limits you do not control, and the provider’s quota sets how fast the product can grow. Before deciding anything, price that one task at your real volume with the LLM cost calculator.
A model you run yourself has a different ceiling. The limit becomes the capacity you provision, so growth means adding capacity rather than waiting on a tier change. The trade-offs are real. You own uptime and monitoring, you need an evaluation on your own data, and a model trained for one task covers that task, not everything a general model does. Pick one task, measure the current model on it, and move only that task first.
How Own Weights removes the quota for one task
Own Weights fine-tunes an open-weight model for one high-volume task that a company currently sends to a frontier API. We test the trained model against the current one on your own data, and it has to win that test before anything is deployed. We then serve it in your cloud account or on-prem, and the customer owns the weights.
If rate limits are slowing a product you run, book a free audit. We map which calls are worth moving first, build a test from your real data, and train only if the model wins on that test.
Questions
What does a 429 error from an LLM API mean?
A 429 means your account sent more requests or tokens than its current limit allows in that time window. The request was not processed, so retry it after the window resets or after the wait time in the retry-after header. Repeated 429s mean the workload is above your quota, not that the API is down.
How do I avoid LLM API rate limits?
Cap concurrency, queue work that can wait, and use batch interfaces for bulk jobs. If one task drives most of your calls, run a model you control so the quota becomes your own capacity. Check your current limits on the provider's page, since they vary by tier.
Can I ask my provider to raise my rate limit?
Many providers raise limits by tier, based on account history and billing. Ask in your account settings or with their sales team once you have a steady, documented need. A higher limit still caps you, so it helps most when your load grows slowly.