AiCredits
Rate Limits

Rate Limit Guarantees: How to Compare AI API Providers

Rate limit guarantees decide whether your AI app stays up. Learn how to compare providers, measure real throughput, and handle 429s without downtime.

Published 2026-10-09 Updated 2026-10-09 8 min

Rate Limits Are the SLA Nobody Reads

Every provider comparison lists context windows, model families, and quality impressions. Almost none tell you the thing that actually determines whether your product stays online. Rate limit guarantees — how much traffic a provider will accept, how it signals the ceiling, and what happens when you cross it — are the real service-level agreement.

A rate limit is a cap. A guarantee is a promise about what happens underneath it, and those are different products that providers blur constantly. This guide is about comparing them on the parts that show up in incident reviews, with runnable code so you can measure the ceiling yourself instead of trusting a docs page written for a different account tier.

What a Rate Limit Guarantee Actually Is

  • Enforcement model: a fixed published number, a dynamic share of a shared pool, or something tied to account standing.

  • Units: requests per minute, tokens per minute, concurrent requests, or a blend. Tokens per minute matters most for chat, because one long request eats the budget of twenty short ones.

  • Burst behavior: does a short spike get absorbed, or does the first request over the line fail immediately?

  • Signaling: are there response headers reporting your remaining headroom, or do you find out by failing?

  • Failure mode: a 429 with a Retry-After header is a well-behaved provider. A timeout or a silently queued request is a debugging nightmare.

  • Priority: when the platform is under load, whose traffic gets served first? If you don't know, assume it isn't yours.

The Four Limit Models You'll Run Into

Limit modelHow it's enforcedWhat you feel at the ceilingGood fit for
Published fixed limitsDocumented request/token ceilings, often tiered by account historyPredictable and easy to capacity-plan, but a hard wallSteady workloads with forecastable traffic
Dynamic fair-shareA shared pool where your throughput depends on total platform loadVariable latency and occasional 429s at peak hoursPrototypes and low-stakes features
Balance-gated throttlingBehavior tied to your account balance and usage pattern rather than a fixed numberLimits shift as your account grows; less to reason about up frontTeams that want to start small and scale
Committed throughputNegotiated capacity or dedicated instancesIsolation from other tenants, more commitment requiredProduction systems with hard latency targets

None of these is inherently better. A published fixed cap is easier to plan around; a dynamic pool is forgiving at low volume and frustrating at scale. The mistake is assuming a provider uses the model its marketing implies, then discovering otherwise during a launch.

Measure the Ceiling Yourself

Documentation describes an average account, not yours. The only reliable way to find where throttling starts for your key is to ramp concurrency and watch for 429s.

import asyncio
import os
import time

from openai import AsyncOpenAI

client = AsyncOpenAI(
    api_key=os.environ['AICREDITS_API_KEY'],
    base_url='https://api.aicreditsapi.com/v1',
)

PROMPT = 'Reply with the single word: ok'


async def one_call() -> int:
    try:
        await client.chat.completions.create(
            model='deepseek-v4-flash',
            messages=[{'role': 'user', 'content': PROMPT}],
            max_tokens=4,
        )
        return 200
    except Exception as exc:
        return getattr(exc, 'status_code', None) or 0


async def ramp(levels=(2, 4, 8, 16, 32)):
    for n in levels:
        started = time.perf_counter()
        statuses = await asyncio.gather(*(one_call() for _ in range(n)))
        wall = time.perf_counter() - started
        ok = statuses.count(200)
        throttled = statuses.count(429)
        other = n - ok - throttled
        print(f'concurrency={n:>3}  ok={ok:>3}  429={throttled:>3}  '
              f'other={other:>3}  wall={wall:.2f}s')
        await asyncio.sleep(5)  # let the token bucket refill


if __name__ == '__main__':
    asyncio.run(ramp())

Read the output as a curve, not a number. If 429s appear only at the top level and clear after the pause, you're hitting a burst limit with a healthy refill rate — workable with a client-side limiter. If they appear at low concurrency and persist, you're sharing a pool with other tenants, and no amount of retry tuning will fix that. Repeat the run at different hours. Peak-hour results tell you more about a provider's real capacity than any documentation page.

Retries That Make Throttling Worse

Most 429 outages are self-inflicted. A tight retry loop turns a brief throttle into a sustained flood, and by the time it clears, every client you run is synchronized and hitting the wall in lockstep.

Three rules: honor Retry-After when it's present, add jitter so clients don't synchronize, and cap total attempts so a hard outage fails fast instead of burning budget on requests that were never going to succeed.

import asyncio
import os
import random

from openai import AsyncOpenAI, RateLimitError

client = AsyncOpenAI(
    api_key=os.environ['AICREDITS_API_KEY'],
    base_url='https://api.aicreditsapi.com/v1',
)


async def complete_with_backoff(prompt: str, attempts: int = 5):
    for attempt in range(attempts):
        try:
            return await client.chat.completions.create(
                model='deepseek-v4-flash',
                messages=[{'role': 'user', 'content': prompt}],
                max_tokens=256,
            )
        except RateLimitError as exc:
            if attempt == attempts - 1:
                raise
            header = exc.response.headers.get('retry-after') if exc.response else None
            delay = float(header) if header else min(2 ** attempt, 30)
            delay += random.uniform(0, delay * 0.25)  # jitter breaks retry storms
            print(f'429 received - sleeping {delay:.2f}s (attempt {attempt + 1})')
            await asyncio.sleep(delay)


if __name__ == '__main__':
    reply = asyncio.run(complete_with_backoff('Explain token buckets in one sentence.'))
    print(reply.choices[0].message.content)

Route retryable bulk work to deepseek-v4-flash, the fast default, and reserve deepseek-v4-pro for the small slice of calls where extra reasoning changes the outcome. Because off-peak requests cost less than peak ones and cache hits are cheaper than cold ones, moving batch jobs to quieter hours often beats any client-side tuning. Current rates are listed at aicreditsapi.com/pricing.

Questions to Ask Before Committing

  • Will you put the ceiling in writing, and does it change by account tier or region?

  • What happens at the ceiling — rejection, queueing, or degraded latency?

  • Are limits per key, per organization, or per IP, and can they be raised without a large contract?

  • Do throttled responses carry Retry-After and headroom headers?

  • What is the documented behavior during an upstream incident?

  • Can I load-test against your limit before moving production traffic?

  • Is there a route that avoids extra hops between my request and the model?

How the Well-Known Options Compare

OpenAI runs the most mature rate limit model of the group. Limits are published per tier, they grow with account history, response headers report remaining headroom, and retry semantics are documented clearly. If your workload fits its tiers, there is little reason to leave. The friction is that tier progression depends on account history and billing setup, which moves slowly when you're trying to ramp a new project this week.

OpenRouter's strength is breadth: one key, many models, automatic fallback when an upstream is unhealthy. For rate limit purposes, though, it is an aggregator, so you inherit whichever upstream serves the request. That means two layers of throttling to debug, and the 429 you receive may describe someone else's ceiling rather than your own usage. Fallback is genuinely useful; just budget engineering time for it.

AiCredits sells DeepSeek API credits directly to international developers — payable by card or PayPal, with no Chinese phone number or bank account required. Because requests go straight to the model instead of through a routing layer, there is one throttling layer to reason about rather than two, and limit behavior doesn't shift because an upstream had a bad hour. Start on deepseek-v4-flash and move specific calls to deepseek-v4-pro only where the stronger model pays for itself. If you generate code from model output, the included linting tools catch the obvious problems before review.

Patterns That Survive Any Limit

  • Size a client-side token bucket below your measured ceiling so normal bursts never touch the wall.

  • Queue non-interactive work — batch summaries, embeddings, backfills — separately from user-facing calls.

  • Degrade deliberately: drop to a faster model or a shorter answer before you drop the request.

  • Cache by prompt hash so repeated questions never consume budget twice.

  • Put a circuit breaker in front of hard outages and serve a cached or reduced answer instead.

  • Track 429 rate as a first-class metric, next to latency and error rate, on the same dashboard.

FAQ

Are rate limits the same as a throughput guarantee?

No. A limit caps how fast you may send. A guarantee means the provider commits to serving you up to that cap, ideally with signaling before you hit it. Many providers offer the first and imply the second.

What should I do the moment I get a 429?

Read Retry-After if it's present, back off with jitter, and don't retry in a tight loop. If throttling is frequent rather than occasional, you have a capacity problem, not a retry problem.

Does an aggregator make rate limits easier or harder?

Easier to survive, harder to debug. Automatic fallback keeps requests flowing when one upstream is saturated, but you're now subject to two limit systems and may not know which one rejected you.

How do I choose between deepseek-v4-flash and deepseek-v4-pro under a limit?

Use deepseek-v4-flash for bulk, parallel, and retryable traffic, and deepseek-v4-pro for the small share of calls where reasoning quality changes the result. Both use the same OpenAI-compatible endpoint and base URL, so switching is a one-line change.

Compare providers the way you'd compare any dependency: measure first, read the failure semantics second, and treat marketing about scale as a hypothesis to test. Ten minutes with the ramp script above will tell you more about a provider's real ceiling than a week of reading its docs.

Try Lint in 2 seconds

Wrote something? Paste it here for a free grammar check. No account needed.

More Tools →

Related Tools

💻Code Explainer

Was this article helpful?

| Share on X Reddit Copy link

服务器宕机了?别等用户告诉你

Wakeless 梦哨 帮你 30 秒监控网站 / API / SSL 证书,宕机秒级告警到邮箱、飞书、Slack。免费档 30 个监控,永久免费,无需信用卡。

免费开始监控 →
💬
反馈意见 / Feedback ×