LLM API Availability and Rate Limiting: Reliability Practices and Service Credits

    Traffic spikes can disrupt LLM APIs even without hardware failures. This article explains how to interpret availability metrics, how providers use rate limiting and service degradation, and how developers can improve resilience through retries, fallback models, caching, and monitoring. It also examines the role of service credits and SLA commitments after outages.

    1. Why Traffic Surges Threaten LLM API Reliability

    Several LLM API providers have recently experienced service disruptions. One incident lasted more than four hours, affecting both a web-based chat service and multiple model API tiers. A recurring trigger in such incidents is not an isolated hardware failure, but traffic exceeding planned system capacity.

    LLM inference has several load characteristics that distinguish it from conventional web services:

    1. Long-running requests: A single inference request can take several seconds to tens of seconds. Long-lived connections reduce concurrent request capacity compared with typical APIs.
    2. Unpredictable resource consumption: Input length, output length, and the use of deep reasoning modes can substantially change the compute required per request. Features such as search and file parsing can multiply the workload compared with basic chat.
    3. Limited scaling flexibility: GPU capacity is costly and takes time to provision. Inference infrastructure cannot necessarily scale within minutes in the same way as stateless services.

    When a feature launch, pricing change, or major event causes demand to surge, these factors can combine to produce queue timeouts, API errors, or broader service unavailability.

    2. Availability Metrics: Translating Percentages into Downtime

    Availability percentages are a standard measure of service reliability. Using a 365-day year of 8,760 hours:

    • 99.9% availability corresponds to approximately 8.8 hours of annual downtime.
    • 99.46% availability corresponds to approximately 47.3 hours, averaging nearly four hours per month.
    • 99.74% availability corresponds to approximately 22.8 hours.

    These figures show why a difference of just a few tenths of a percentage point can mean hours of business disruption for organizations that depend on an API.

    Developers evaluating a provider should therefore look beyond model capabilities and consider:

    1. Status-page transparency: Does the provider publish current availability and historical incident records for individual services and APIs?
    2. Incident severity and scope: Are failures in core chat capabilities isolated from failures in supporting tools, such as search? Isolated deployments can help contain the impact.
    3. Recovery-time distribution: Most incidents should be resolved within minutes. Outages lasting several hours warrant closer assessment.

    Enterprise platforms, including Baidu AI Cloud’s Qianfan platform, commonly pair monitoring, alerting, and multi-availability-zone deployment with availability targets in service-level agreements (SLAs). These commitments are an important consideration for enterprise customers whose requirements differ from those of individual users.

    3. Rate Limiting and Service Degradation: Provider-Side Defenses

    As demand approaches capacity, controlled rate limiting is preferable to an uncontrolled outage. Common provider-side measures include:

    1. Quotas and rate limits: Providers set requests-per-minute (RPM) and tokens-per-minute (TPM) limits by account and model tier to prevent a single customer from monopolizing shared resources. Requests exceeding these limits receive an explicit response, such as HTTP 429, ideally with guidance on how long to wait before retrying.
    2. Service degradation: During peak demand, providers may disable nonessential features, such as web search or long-document parsing, to preserve the core chat service.
    3. Queuing and traffic smoothing: Queues absorb short bursts, while priority policies can assign greater scheduling weight to higher-paying service tiers.
    4. Capacity planning and load testing: Before releasing new features, providers can run end-to-end load tests, establish capacity thresholds using P99 latency and error rates, and expand resources in advance.

    For developers, the key distinction is that a rate-limit response does not necessarily mean the service has failed. It may indicate that the platform is protecting overall availability. Application code should treat rate limits as an expected operating condition.

    4. Application-Side Fault Tolerance

    Applications that depend on third-party model APIs need built-in fault tolerance. The following example illustrates retry and fallback handling:

    1. import time, random
    2. def call_llm_with_retry(fn, max_retries=5):
    3. for i in range(max_retries):
    4. try:
    5. return fn()
    6. except RateLimitError:
    7. # Rate limiting: exponential backoff with random jitter
    8. wait = (2 ** i) + random.uniform(0, 1)
    9. time.sleep(wait)
    10. except ServiceUnavailableError:
    11. # Service unavailable: switch to a backup model or degrade gracefully
    12. if i == max_retries - 1:
    13. return fallback_response()
    14. raise RuntimeError("retry exhausted")

    Key practices include:

    • Exponential backoff: Increasing retry intervals helps prevent retry storms that add pressure to an already overloaded provider. Random jitter reduces synchronized retries.
    • Multi-model routing: Configure a backup model or model tier for critical workflows so requests can be redirected when the primary model fails.
    • Local caching and result reuse: Cache repeated questions and reusable responses to reduce unnecessary API calls.
    • Monitoring and alerting: Track application-side error rates and latency. Trigger alerts when failures exceed thresholds and, when necessary, switch to a local fallback.

    These measures help prevent provider-side instability from becoming a complete application outage.

    5. Service Credits: Rebuilding Trust After an Outage

    When an outage affects customers, established providers may offer API service credits, with compensation based on usage by affected accounts, alongside public commitments to improve reliability.

    The value of these measures extends beyond the credit amount:

    1. Acknowledging responsibility: A clear compensation policy helps enterprise customers account for service-related costs.
    2. Creating accountability: Public commitments encourage continued investment in capacity planning, change management, and incident-response exercises.
    3. Supporting SLA enforcement: Compensation arrangements provide a practical reference for applying SLA terms and developing more consistent service-level commitments.

    Service credits are therefore part of the trust-repair process, not a substitute for operational improvements.

    6. Conclusion

    LLM API reliability reflects a fundamental tension between rapidly growing demand and capital-intensive compute capacity.

    Providers need rate limiting, service degradation, deployment isolation, and transparent availability reporting to manage that tension. Developers need to treat throttling and outages as normal operating risks, using retries, multi-model routing, caching, and monitoring to build resilient applications.

    Maintaining availability during rapid demand growth requires both sides to contribute: providers must protect and improve their infrastructure, while application teams must design for the possibility that an external API will occasionally be slow, rate-limited, or unavailable.