Rate limits
Each key has limits on requests and tokens per minute, agreed at admission according to your use. Above the limit, the API answers 429 and you retry after a pause.
How limits are set
The service runs on dedicated hardware with a limited number of customers. Limits are sized from the volume you announce in your access request and written in your contract. To raise them, use the contact form.
When you hit a limit
The API returns HTTP 429. Wait, then retry with exponential backoff and jitter. If the
response has a Retry-After header, wait at least that long.
import random, time
from openai import RateLimitError
def call_with_retry(make_request, tries=6):
for attempt in range(tries):
try:
return make_request()
except RateLimitError:
time.sleep(min(60, 2 ** attempt) + random.random())
raise RuntimeError("rate limited after retries")
The OpenAI SDKs also retry automatically; see their max_retries option.
Staying under the limit
- Cap concurrency in batch jobs instead of sending everything at once.
- Set
max_tokensto what you need. - Reuse HTTP connections.
Frequently asked questions
What are the rate limits of the API?
Limits are set per key at admission, in requests and tokens per minute, according to the volume you announce. Requests above the limit receive HTTP 429.
Last updated: 2 December 2026