Guides
Rate limits and concurrency
Requests per minute, concurrent streams and batch requests, and how to back off.
Default limits
| Limit | Pay as you go | Scale | Enterprise |
|---|---|---|---|
| Requests per minute | 120 | 240 | Custom |
| Concurrent streams | 2 | 4 | Dedicated capacity |
| Synchronous requests in flight | 2 | 4 | Dedicated capacity |
| Async jobs processed at once | 1 | 1 | Dedicated capacity |
| Text to speech requests per minute | 60 | 120 | Custom |
| Text to speech streams at once | 1 | 2 | Dedicated capacity |
Limits apply per organisation, across all of its keys. A request over the per-minute limit returns 429 rate_limited; one over a concurrency limit returns 429 concurrency_limit (streams close with 4029).
Rate limit headers
| Header | Meaning |
|---|---|
| X-RateLimit-Limit | Requests allowed in the current window. |
| X-RateLimit-Remaining | Requests left in the window. |
| X-RateLimit-Reset | Unix time (seconds) when the window resets. |
| Retry-After | On 429 and 503: seconds to wait before retrying. |
Backing off
Wait for Retry-After when present, otherwise back off exponentially with jitter (for example 1 s, 2 s, 4 s, up to 30 s). The SDKs do this automatically. For large batches, use async jobs: they wait in your queue and run in turn.
Higher limits
Need more streams or throughput? Talk to us about Scale or Enterprise, or email [email protected].
Need help? Email [email protected] or message us on WhatsApp.