SweetRouterAPI

API reference

Limits

All limits in one place.

Default limits

Limits
LimitValue
Requests per API key60 per minute
Messages per request200
Characters per request60,000
Reply length (max_tokens)Up to 4,096 tokens, default 1,024
Longest request300 seconds
Chat call detailsKept 30 days, without message text
Image and video jobs in progress20 per account
Generated image and video filesDeleted 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.