Skip to Content
Guides/Limits and spend

Limits and spend

No requests-per-minute limit. Your credits and each key's monthly spend limit bound usage.

No rate limit

The API doesn't limit how many requests a key sends a minute, and never answers 429. Send requests in parallel as your workload needs.

What bounds usage is money:

Applies toWhen it's reached
CreditsThe whole organization402 billing_error on every key, until credits are added
Spend limitOne key, per calendar month (UTC)402 billing_error on that key, until the limit is raised or the month ends

Both apply to /v1/messages and /v1/chat/completions. Listing models costs nothing.

Credits

Requests are paid from your organization's prepaid credits: tokens at the model's price, and web searches and page reads at $2 per 1,000. When the balance reaches zero, requests get:

HTTP/1.1 402 Payment Required
content-type: application/json

{
  "type": "error",
  "error": {
    "type": "billing_error",
    "message": "Your credit balance is too low. Buy credits or turn on auto-reload on the Billing page."
  },
  "request_id": "req_…"
}

Owners and admins buy credits and turn on auto-reload on the Billing page. With auto-reload on, the saved card is charged whenever the balance drops below a threshold you choose.

Spend limits

Owners and admins can give each key a monthly spend limit on the API keys page. Once a key has spent it, its requests get a 402:

{
  "type": "error",
  "error": {
    "type": "billing_error",
    "message": "This key reached its monthly spend limit of $50.00. An owner or admin can raise it on the API keys page."
  },
  "request_id": "req_…"
}

The limit is checked before each request, so requests already running when it's reached finish and can take a key slightly over it. The month resets on the first day of the month, UTC.

Staying in budget

  • Give each service its own key with its own limit, so one runaway job can't spend another's budget.
  • Turn on auto-reload for production, so a balance at zero doesn't stop your service.
  • Watch spend by key on the Usage page, and each request's cost on Activity.
  • Don't retry a 402: it stays a 402 until someone adds credits or raises the limit.

On this page