API reference
Limits
All limits in one place.
Default limits
| Limit | Value |
|---|---|
| Requests per API key | 60 per minute |
| Messages per request | 200 |
| Characters per request | 60,000 |
| Reply length (max_tokens) | Up to 4,096 tokens, default 1,024 |
| Longest request | 300 seconds |
| Chat call details | Kept 30 days, without message text |
| Image and video jobs in progress | 20 per account |
| Generated image and video files | Deleted after 24 hours |
When you hit a limit
Over the request limit you get 429 rate_limited with a Retry-After header. Too-large requests get 400 validation_error with the field that's too big.
Need higher limits?
Email us with your expected peak requests per second and we'll raise them before you launch.