Rate limits
There is one idea to understand: each account has one API budget across all models, plus a daily request allowance on free models. Nothing is divided by keys, and nothing is shared between users.
Your allowance
Spend is metered in US dollars account-wide with a weekly window that resets
Monday at 00:00 UTC, shared across every model you use. Requests are metered
per model, per day on free models; paid models have no request cap.
Defaults are $20 per week and 2,000 requests per free model per day, but the
operator can change them. Your effective numbers are in the
dashboard and in GET /v1/usage; current defaults are on
status.
The weekly budget resets to zero at its boundary. Multiple keys and every model draw from the same account API budget; the request allowance is per model. A limit set to 0 means unlimited. Costs are calculated from actual token usage, including cached prompt tokens at the model's cache-read rate.
Peak pricing
DeepSeek models dd-v4-flash and dd-v41-flash-fast have upstream peak
pricing: weekdays 01:00–04:00 and 06:00–10:00 UTC cost double. Those requests therefore consume
your API budget twice as fast, and the dashboard shows a peak-pricing notice. Other models are
unaffected.
The provider ceiling
Free-tier models also sit behind the provider's own daily cap, shared by everyone using the
gateway. It is usually much larger than any single allowance, but it can bind at the end of a
busy day. That case returns 503 quota_exhausted_upstream, which is not your fault
and not fixable by retrying. Paid models have no shared cap · only your per-user weekly API
budget applies, because they bill the operator's credits directly.
Paid models
A paid model is only reachable when the operator enables it for the gateway and does not deny it
on your account. Paid requests spend from your account API budget. Models that are globally off
do not appear in GET /v1/models.
What a limit looks like
- Your weekly API budget or a free model's daily request allowance spent →
429 quota_exceeded, withretry-after. - Provider ceiling spent →
503 quota_exhausted_upstream. - Provider's per-minute rate saturated →
429 rate_limited, usually briefly. - Paid model cards show the recorded API cost, including peak and cache-read pricing.
- Optional per-key requests-per-minute ceiling →
429 rate_limited.
Prompt caching
Upstreams cache the stable prefix of a conversation. Cache hits are reported as
usage.prompt_tokens_details.cached_tokens, passed through unchanged, and cached
tokens do not count against the provider's per-minute rate budget. Put system prompts, tool
definitions and long context first; variable content last. Caching is best-effort.
Accounting
- Budget is checked against an estimated request cost before dispatch and settled against real token usage.
- A failed upstream call releases the reservation; you are not charged for it.
- Aborted streams settle against generated tokens.
- Token counts come from the upstream's
usageframe; cached prompt tokens are priced at the cache-read rate.