llm rate limit planner
A pilot runs fine on 200 documents. Then the backlog of 40,000 goes in, and the job crawls, or fills the logs with 429 errors. Four ceilings apply at once: requests per minute, input tokens per minute, output tokens per minute, and how many calls you keep in flight. The lowest one sets the pace. Enter your workload and the limits from your provider's console, and you get the time to clear the backlog, which limit binds, how many calls in flight are worth running, and what you would need to meet a deadline.
8 h to clear, limited by concurrency
calls per minute each ceiling allows
| ceiling | calls / min |
|---|---|
| concurrency (sets the pace) | 250 |
| input tokens | 267 |
| output tokens | 356 |
| requests | 3,200 |
Calls in flight = calls per minute × seconds per call ÷ 60 (Little's law). Below 54 workers you leave the rate limit unused; above it, extra workers only collect 429 errors. Limits are planned at 80% of their value. If the backlog can wait up to a day, the Batch API has its own, larger queue and halves the token price.
questions
where do i find my limits?
In your provider's console, on the limits or rate-limits page for your organisation. They usually rise with your usage tier and are set per model, so read the row for the model you will run. If you call through a cloud platform such as Amazon Bedrock or Google Vertex AI, its quotas apply instead, and they may be set per region.
do cached tokens count toward the input limit?
On current Claude models, tokens read from the prompt cache do not count toward the input-tokens-per-minute limit, so a long cached system prompt costs you no throughput. That is why the box is off by default. Other providers and older models may count them; check the rate-limit documentation before relying on it.
how many workers should i run?
Enough to reach the lowest rate limit and no more. By Little's law, the calls in flight equal the calls per minute times the seconds per call, divided by 60. Fewer workers leave the limit unused. More workers do not go faster: they collect 429 errors, and every retry adds load. Retry with exponential backoff and jitter, and honour the retry-after header.
why plan below 100% of the limit?
Limits are enforced over short windows, so bursts can trip them even when the per-minute average is under. Other jobs and your live traffic share the same organisation limit. Planning at 70–80% leaves room for both, and for the latency of a slow minute.
what if the deadline is not met?
The result lists the limit each dimension would need. Lower the binding one first: trim the prompt or cache more of it if input tokens bind, cap max_tokens or shorten the output if output tokens bind, or add workers if concurrency binds. Then ask your provider for a higher tier. If the work can wait up to 24 hours, the Batch API has its own queue and halves the price.
more free tools
- ai roi & token cost estimatorMonthly Claude API cost, cost per task and ROI for a workload
- eu ai act compliance auditorRisk tier, obligations and dates for one AI system
- agent workflow fit scorerIs this process a good fit for AI agents, and what shape?
- ai build vs buy calculatorThree-year cost: SaaS tool, custom agents, or keep it manual
- ai accuracy proof calculatorHow many test cases prove a vendor's accuracy claim?
- ai model routing calculatorWhat sending each request to the cheapest capable model saves
- human review staffing calculatorHow many reviewers an AI workflow's escalations need
- ai vendor scorecardWeighted comparison of AI vendors, with must-haves and a swing check
- gdpr dpia screener for aiDoes this AI use of personal data need a DPIA?
- agent loop cost calculatorWhat a tool-calling agent costs per task as its context grows
- llm judge agreement calculatorDoes your LLM judge agree with people beyond chance? Cohen's kappa
- escalation threshold calculatorAt what confidence should an AI workflow hand a case to a person?
- rag vs long context cost calculatorWhole corpus in a cached prompt, or retrieve chunks per query?
- agent reliability calculatorEnd-to-end accuracy of a multi-step agent, and which step to fix
- llm eval a/b test calculatorIs prompt or model B really better than A on the same golden set?
Want the numbers checked against your own process? Book a 20-minute call.