Using the API

Rate limits

Requests and tokens per minute by tier, and how to back off when you hit them.

Rate limits cap how many requests and tokens your organization can send per minute. They protect shared capacity and rise automatically as your usage grows. Your current limits are on the Rate limits page in the console.

Tier 1 limits

New organizations start on Tier 1.

ModelRequests per minuteInput tokens per minuteOutput tokens per minute
inkwell-12040,00016,000

When you hit a limit

Requests over the limit fail with status 429 and type rate_limit_error. Wait and retry with exponential backoff. Spreading a batch of articles over a few minutes usually avoids limits entirely.

429 Too Many Requests
{
  "error": {
    "message": "Rate limit reached for requests per minute. Try again shortly.",
    "type": "rate_limit_error",
    "param": null,
    "code": null
  }
}

A 429 with type insufficient_quota is a spend limit, not a rate limit. Retrying will not help until the limit is raised or the month resets. See Credits and billing.