LLM API Rate Limits Explained: How to Check and Manage Your Quotas

    This guide explains why LLM APIs return rate-limit errors, how TPM, RPM, and RPD work together, how usage tiers raise quotas, where to view your limits in the developer console, and engineering practices such as client-side throttling, exponential backoff, caching, queues, and monitoring.

    LLM API Rate Limits Explained: How to Check and Manage Your Quotas

    1. Introduction: Why You See “API rate limit reached”

    When you call large language model APIs, almost every developer eventually hits an error such as “API rate limit reached.” That is not an outage. Providers use access limits—commonly called rate limiting—to keep services stable and to allocate compute fairly.

    For individual developers, understanding rate limits helps you pace requests so apps do not fail at peak load. For teams, the numbers shape architecture: request queues, caching, or moving to a higher usage tier all depend on accurate quota data. This article covers the core metrics, tiering, how to inspect your limits, and practical engineering responses.

    2. Three Core Metrics: TPM, RPM, and RPD

    Most major LLM API platforms use similar policies. Three metrics constrain usage from different angles.

    2.1 TPM (Tokens Per Minute)

    TPM is the total tokens you may process per minute, typically counting both input and output. Because compute cost tracks token count, TPM is often the first bottleneck. Even with few requests, long documents or long context can exhaust the budget quickly.

    Some platforms estimate TPM using a request’s maximum possible output length. A large output cap can consume quota even if the actual reply is short. Keep that in mind when you design prompts and parameters.

    2.2 RPM (Requests Per Minute)

    RPM is how many API calls you may send per minute, regardless of payload size. It protects gateways from bursts of short requests. For high-frequency, lightweight work (batch short-text classification, realtime completion), RPM often binds before TPM.

    2.3 RPD (Requests Per Day)

    RPD is the total number of requests allowed per calendar day—a coarse daily quota. Free or low-tier accounts often have tight RPD; higher tiers relax it substantially or remove the cap.

    The three limits are combined with AND: hitting any one of them rejects the request. Always watch all three when you estimate remaining headroom.

    3. Usage Tiers: Quotas Grow With Spend

    Rate limits are not fixed; they follow the project’s usage tier. A common industry pattern is automatic promotion as API usage and spend increase, which raises rate limits. For a mid-size model on a typical major platform, the structure looks roughly like the table below (absolute numbers differ by model; the tier pattern is representative):

    Tier How you reach it TPM RPM RPD
    Free Sign up ~250,000 5 20
    Tier 1 Activate billing ~2,000,000 1,000 10,000
    Tier 2 Cumulative spend plus a minimum number of days after first payment ~3,000,000 2,000 100,000
    Tier 3 Higher cumulative spend plus a minimum number of days after first payment ~20,000,000 20,000 Unlimited

    Takeaways:

    1. Free tier is for validation only. Five requests per minute and 20 per day are enough to prove a flow, not to run sustained load.
    2. Turning on billing is the highest-leverage upgrade. Binding a billing account, without large spend, can lift RPM from single digits to thousands.
    3. Higher tiers need both time and spend. Tiers 2 and 3 require cumulative payment and a waiting period after first payment. You cannot jump tiers with a one-time top-up; plan a buffer.
    4. Quotas differ by model. Stronger, more expensive models often have lower limits at the same tier. Use the official documentation for exact numbers.

    4. How to View Your Project Tier and Limits

    After you understand the model, the practical question is how to see your current tier and the three quotas. Consoles differ, but the path is usually:

    1. Sign in to the provider’s developer console or online workbench.
    2. Open project management or the dashboard.
    3. Find the “rate limits” or “quota” tab.
    4. Select the target model to see TPM, RPM, and RPD for the current tier.

    Bookmark that page and check it before launch, scale-up, or a model switch. Some platforms also expose usage dashboards or APIs you can wire into internal monitoring for continuous visibility.

    5. Engineering Practice: Handling Rate Limits Gracefully

    Even with ample quota, solid engineering improves robustness. These practices are widely used.

    5.1 Client-side throttling

    Use a token bucket or leaky bucket on the client so send rate stays below the cap, rather than reacting after 429s. Simple interval-based limiter:

    1. import time
    2. class RateLimiter:
    3. def __init__(self, max_per_minute: int):
    4. self.interval = 60.0 / max_per_minute
    5. self.last_time = 0.0
    6. def acquire(self):
    7. now = time.time()
    8. wait = self.last_time + self.interval - now
    9. if wait > 0:
    10. time.sleep(wait)
    11. self.last_time = time.time()
    12. # Example: cap at 900 requests per minute (about 10% headroom)
    13. limiter = RateLimiter(900)

    5.2 Exponential backoff for occasional overages

    On occasional 429 (Too Many Requests), retry with jittered exponential backoff so clients do not retry in lockstep:

    1. import random
    2. def backoff_delay(attempt: int, base: float = 1.0) -> float:
    3. return min(base * (2 ** attempt), 60) * (0.5 + random.random())

    5.3 Batching and caching to cut waste

    • Merge requests: Pack several short calls into one batch to reduce RPM.
    • Cache results: Cache responses for identical or highly similar inputs.
    • Trim context: Shorten prompts and history to lower tokens per call and ease TPM pressure.

    5.4 Async queues to absorb spikes

    For offline batch jobs, labeling, and other non-realtime work, put tasks on a message queue and let consumers pull at a controlled rate. Bursts then do not trip limits, and you can retry and track failures more easily.

    5.5 Monitoring and alerts

    Feed API error rate, 429 frequency, and token burn into alerting. When you approach a threshold, you can optimize calls, request a raise, or plan a tier upgrade without firefighting.

    6. Conclusion

    LLM API rate limits balance stability, fairness, and commercial incentives. For developers, three things matter: know how TPM, RPM, and RPD differ and interact, know your tier and how to move up, and spend quota well with throttling, retries, caching, queues, and monitoring. Then “rate limit reached” is a designed constraint in the architecture, not a blocker.