Get started

Rate limits

How many requests your API keys can make, and what happens when they make more.

Two limits apply to every request made with an API key:

  • Key limit: requests from one API key.
  • Organization limit: requests from all your organization's API keys together.

Both count over a rolling minute: a request counts against the limit for 60 seconds after it is sent. A request is refused when either limit is full. A key's limit is never higher than the organization limit.

Limits by plan

PlanPer key (requests a minute)Per organization (all keys)
Free510
Starter1030
Pro2075
Scale60250
Enterprise1001,000

These are the defaults. Your organization's actual limits are in Settings → API keys. Owners and admins can set each key's limit there, from 0 (paused) up to the organization limit.

Requests left

Every accepted request returns these headers, for whichever limit is closer to full:

HeaderMeaning
RateLimit-LimitRequests allowed a minute.
RateLimit-RemainingRequests left right now.
RateLimit-ResetSeconds until the next request slot frees.

When a limit is full

The API responds with 429 and a Retry-After header that gives the number of seconds to wait.

429 Too Many Requests
HTTP/1.1 429 Too Many Requests
Retry-After: 42
Content-Type: application/json

{
  "statusCode": 429,
  "error": "Too Many Requests",
  "message": "API key limit reached: this key allows 60 requests a minute. Wait a moment, then try again.",
  "code": "RATE_LIMITED",
  "scope": "key",
  "retryAfterSeconds": 42
}

scope says which limit refused the request:

scopeLimit that was reached
keyThis API key's own limit.
orgYour organization's limit, shared by all its API keys.
ipToo many invalid API keys from this address: 30 in a minute blocks it for a minute.

The message says the same in words. How long to wait is in Retry-After and retryAfterSeconds.

Other limit errors

StatuscodeWhen
403API_KEY_PAUSEDThe key's limit is set to 0. An owner or admin can raise it in Settings → API keys.
503RATE_LIMIT_UNAVAILABLEThe limits can't be checked right now. Retry shortly.

Staying under the limit

  • Wait for Retry-After before the next request. Requests sent sooner are refused too.
  • Watch RateLimit-Remaining and slow down before it reaches 0.
  • Poll jobs gently. Every 5 to 10 seconds is plenty for media jobs, which take minutes. See Long-running jobs.
  • Use list endpoints instead of fetching items one by one.
  • Use one key per system. Each key has its own limit, so one busy system can't use up another's. All keys still share the organization limit.

On this page