The platform applies two levels of rate limiting to requests: API Key level and user level (multiple Keys under the same username share the user-level quota). Specific RPM / QPS limits vary by plan configuration; refer to the console for the applicable limits.
Rate Limit Response
When a rate limit is triggered, HTTP 429 is returned with an OpenAI-compatible error body:
{ "error": { "message": "rate limit exceeded", "type": "rate_limit_error", "code": "rate_limited" }}Other rate-related error codes:
| HTTP | code | Meaning |
|---|---|---|
| 429 | rate_limited |
Platform Key-level / user-level rate limit triggered |
| 429 | key_quota_exhausted |
Key / user quota exhausted |
| 402 | user_balance_exhausted |
Insufficient account balance |
| 429 | upstream_rate_limited |
All upstream model services are busy (all returned 429 within the retry window) |
| 502 | upstream_exhausted |
Upstream services remain unavailable after multiple attempts |
Retry Recommendations
- When receiving 429 / 502, retry using exponential backoff + random jitter (for example, 1s → 2s → 4s)
- For asynchronous tasks (such as video generation), a status polling interval of 5–10 seconds is recommended—polling more frequently will not accelerate generation
- For long-running synchronous requests (such as image generation), do not immediately resend the request after a client timeout. First confirm that the previous request has completed to avoid duplicate charges
