TPM and RPM each throttle a different axis, which one caps which?
TPM caps total tokens per 60s window; RPM caps API calls per 60s window. Many small calls hit RPM first; few long-context calls hit TPM first.
Imagine a bakery with two limits: one says 'no more than 200 customers per hour' and another says 'no more than 1000 loaves served per hour'. A coffee shop with hundreds of tiny one-loaf orders hits the customer cap first. A wedding planner ordering 50 huge multi-loaf platters at once hits the loaf cap first. Hosted LLM providers do the same thing: RPM is the customer count, TPM is the loaf count, and which one blocks you first depends entirely on your workload shape.
Detailed answer & concept explanation~4 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: TPM as token volume cap + RPM as request count cap + workload patterns that hit each + retry and backoff per limit type + self-hosted analogues + tier scaling.
| Property | TPM | RPM |
|---|---|---|
| What it caps | Total tokens per 60s window | API calls per 60s window |
| Counts toward limit | prompt_tokens + completion_tokens | Each API call equals 1 unit |
| Workload that hits first | Long-context, RAG, document analysis | Chat turns, tool-call dispatch, classifier |
| Self-hosted analogue (vLLM) | max_num_batched_tokens | max_num_seqs |
Real products, models, and research that use this idea.
- OpenAI's Tier 1-5 system scales both TPM and RPM with account spend; Tier 5 grants on the order of millions of TPM for GPT-5.5.
- Anthropic publishes organization-level TPM and RPM for Claude Opus 4.7 and Sonnet 4.6, with separate caps for input tokens and output tokens.
- Gemini 3.1 Pro on Google AI Studio enforces RPM and TPM at the project level, with quota increase requests through the GCP console.
- Production teams running RAG pipelines on Claude Sonnet 4.6 hit TPM first because each retrieval injects 5-20K context tokens per query.
- vLLM deployments on Llama 4 Maverick expose `max_num_batched_tokens` and `max_num_seqs` as the self-hosted analogues to TPM and RPM.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you architect retries against a 429 response that does not specify which limit was hit?
QWhy might a single self-hosted vLLM cluster on H100s outperform a hosted provider's rate-limited tier for long-context workloads?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating TPM and RPM as redundant. They throttle completely different axes; your workload pattern decides which one bites first.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.