Raon
Meet Raon-1 nano (E1.5B), smaller and faster!View on Hugging Face (new tab)
Docs

Rate limits

How many requests and tokens you can send per minute, and what happens past the limit.

Rate limits keep one client from slowing everyone else down. They apply to your organization, and an organization can set tighter limits on each of its workspaces. Your current limits are on the console's Capacity page.

What is counted

Each limit is an amount per minute:

LimitCounts
Requests per minute (RPM)Requests received
Input tokens per minuteTokens sent to the model
Output tokens per minuteTokens the model writes, its reasoning included

Limits are per minute, but they are replenished continuously rather than reset at the start of each minute. If a request is rejected with 429, wait the number of seconds in retry-after before retrying.

A request is checked when it arrives, before the model has written anything. Its tokens are reserved against the limits at that point and corrected after the response:

  • Input tokens. The whole prompt is estimated from the size of the request and reserved, including any part that will be read from the prompt cache. When the model server reports usage, the cached part is given back.
  • Output tokens. The request reserves its output limit (max_tokens, max_completion_tokens or max_output_tokens) in full. A request that sets no limit reserves an estimate instead. When the model server reports usage, the reservation is corrected to the tokens actually written. OpenAI, Azure OpenAI and AWS Bedrock count output tokens the same way.

Without reported usage, a completed request keeps its estimated reservation; an interrupted stream releases the output reservation but keeps the input reservation. These adjustments do not refund the request count.

Because output is reserved up front, a max_tokens far above what you need can hit the output limit even when the answers are short, especially with many requests running at once. Set it near the longest answer you expect, leaving room for the reasoning.

Headers

When an RPM limit applies, successful responses and rate_limit_exceeded errors carry these headers. Authentication errors and overloaded do not.

HeaderMeaning
x-ratelimit-limit-requestsRequests allowed per minute
x-ratelimit-remaining-requestsRequests you can send now
x-ratelimit-reset-requestsWhen the request limit is full again, in Unix seconds

A 429 rate_limit_exceeded caused by a token limit carries these headers too, even without an RPM limit. They then describe that token limit despite their -requests names: its tokens per minute, the tokens left, and when it is full again.

When you hit a limit

StatuscodeMeaning
429rate_limit_exceededNot enough of a per-minute limit is available for this request yet. retry-after gives the seconds until enough has refilled.
429overloadedThe service is busy. Retry after a short wait; retry-after is usually 2.
400token_limit_exceededThis one request reserves more than a whole per-minute token limit, so it can never fit and waiting will not help. Send less input or a lower max_tokens.

On the Messages API these errors carry rate_limit_error or invalid_request_error as their type, without a code. Credit and spend limits (402) are separate from rate limits; see Errors.

Retrying

Retry 429s after the time in retry-after, and wait longer after each failure. The OpenAI and Anthropic SDKs already do this: by default they retry twice, honouring retry-after. Raise the count when you send many requests at once:

client = OpenAI(
    base_url="https://raon-api.krafton.ai/v1",
    api_key=os.environ["RAON_API_KEY"],
    max_retries=5,
)

To stay under the limits instead of retrying, cap how many requests your code runs in parallel.

On this page