API429 / API reference

API429 rate limits

API429 limits: when 429, 503 and 504 are returned, how to retry with backoff and what a per-client quota with HTTP 403 means.

Reference version 3.31.0 · revised · the same text in the client portal

  • If capacity is briefly saturated you'll receive an HTTP 429 or 503. Back off with exponential jitter and retry — in practice a second or two is usually enough.
  • Very long-running generations (certain audio / image models) may return 504 past the internal timeout; retry with the same prompt.
  • Per-client quotas, if configured, are enforced via HTTP 403 with a descriptive message. Contact your administrator to raise your limit.

Quickstart: the first request · Models and prices · Get an API key

Telegram