Skip to content

Rate limits

Limits apply per credential, per minute:

Kind of request Limit per minute
Reads (GET) 300
Writes (other POST, PATCH, DELETE) 60
Paid starts and quotes (POST /v1/generations, POST /v1/quotes) 15

These sit inside the account’s own ceilings, which the account shares with the app.

Authenticated responses carry X-RateLimit-Limit: the limit for this credential and this kind of request.

The answer is 429 rate_limited with Retry-After. Wait that many seconds, then retry with the same Idempotency-Key. Spread requests out rather than retrying at once.

429 is used only for rate limits. Spending limits and balances answer 402 or 403, never 429; see Spending limits.

  • Wait for results with webhooks, or poll at poll_after_seconds with Prefer: wait=60, instead of polling quickly.
  • Read lists with ?limit=100 and ?cursor= rather than one object at a time.
  • Quote only when you need the price before starting; POST /v1/generations with max_cost quotes and starts in one request.