SweetRouterAPI

API reference

Limits

All limits in one place.

Default limits

Limits
LimitValue
Requests per minute (RPM)15,000 per account
Tokens per minute (TPM)800,000 per account
Messages per request200
Characters per request30,000
Reply length (max_tokens)Up to 4,096 tokens, default 1,024
Longest request300 seconds
Call log in the consoleLast 1,000 calls, kept 7 days, without message text

How rate limits work

Limits apply to your whole account, across all of its API keys, in one-minute windows. Each request counts once toward RPM. Toward TPM it counts its input plus max_tokens when it starts, corrected to the real token count when it finishes, so a lower max_tokens leaves more room.

Rate limit headers

Every chat response carries your current limits and what's left in this window, in the same headers OpenAI uses:

http
x-ratelimit-limit-requests: 15000
x-ratelimit-remaining-requests: 14999
x-ratelimit-limit-tokens: 800000
x-ratelimit-remaining-tokens: 798750
x-ratelimit-reset-requests: 42s
x-ratelimit-reset-tokens: 42s

When you hit a limit

Over a limit you get 429 rate_limited with a Retry-After header in seconds. The OpenAI SDKs wait and retry for you. Too-large requests get 400 validation_error with the field that's too big.

Need higher limits?

Message us on Telegram with your expected peak requests and tokens per minute and we'll raise them for your account.