Skip to main content

Rate limits

Rate limits protect service availability and latency. Requests that exceed a limit return 429 Too Many Requests with a Retry-After header.

What's limited​

Requests can be limited by workspace rate limits or service availability:

ConditionResponse
Workspace rate limit for the requested model exceeded429 rate_limit_exceeded
Service temporarily at capacity429 service_busy

Each model has its own limits in your workspace, shared by all its API keys. Traffic to one model doesn't count against another. Default limits:

ModelRequests per minuteInput tokens per minuteOutput tokens per minute
celeris-13002,000,000120,000
celeris-1-magnus1202,000,00040,000
celeris-1.1-decision1,50010,000,000600,000

Treat these numbers as a guide. Limits are applied approximately, so you can get a 429 below them, especially in short bursts, and the defaults may change. For a committed or higher limit, contact us.

All inference usage draws from prepaid workspace credit, and the balance is shared across all models. Requests over a model's context window return 400 Bad Request.

Backing off well​

Wait at least as long as Retry-After, use exponential backoff with jitter for subsequent attempts, and cap the number of retries:

import random
import time

from openai import APIStatusError


def with_backoff(call, max_attempts=5):
for attempt in range(max_attempts):
try:
return call()
except APIStatusError as err:
if err.status_code not in (429, 502, 503) or attempt == max_attempts - 1:
raise
retry_after = float(err.response.headers.get("retry-after", 1))
# Full jitter: sleep somewhere in [retry_after, retry_after + 2^attempt)
time.sleep(retry_after + random.uniform(0, 2 ** attempt))

For applications with multiple workers, enforce a shared client-side concurrency limit for each model. This is more predictable than independent retry loops in each worker.

Watching your usage​

The Console's usage page shows completed requests and token volumes. It does not include throttled requests, so monitor 429 responses in your application logs and metrics.