Provider account or channel policy can trigger HTTP 429. The dashboard key API does not expose per-key RPM, TPM, concurrency, or budget settings. This page describes that boundary and client handling of 429.
The key API publishes no numeric defaults for these quotas and does not expose these settings:
| Metric | Key API support |
|---|---|
| Requests per minute | Not exposed by the key API |
| Tokens per minute | Not exposed by the key API |
| Concurrent requests | Not exposed by the key API |
A key supports name, Premium or Cheap channel, optional Premium fallback for Cheap, expiry, and usage statistics. The dashboard key API does not expose per-key RPM/TPM, concurrency, budgets, model allowlists, IP filters, or IDE restrictions.
Supported settings:
If the provider returns these headers, use them to plan retries. Their presence is not guaranteed by the key API:
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window |
X-RateLimit-Remaining | Requests remaining in the current window |
X-RateLimit-Reset | Time when the rate limit window resets (Unix timestamp) |
HTTP 429 can have several causes. Read the error code and check for Retry-After. These examples return that information so your application can decide how to respond.
def read_api_error(response):
content_type = response.headers.get("Content-Type", "")
body = response.json() if "application/json" in content_type else None
error = body.get("error") if isinstance(body, dict) else None
code = None
if isinstance(error, dict):
code = error.get("code") or error.get("type")
return response.status_code, code, response.headers.get("Retry-After")async function readApiError(response: Response) {
const contentType = response.headers.get("Content-Type") ?? "";
const body = contentType.includes("application/json")
? await response.clone().json() as { error?: { code?: string; type?: string } } | null
: null;
return {
status: response.status,
code: body?.error?.code || body?.error?.type || null,
retryAfter: response.headers.get("Retry-After"),
};
}