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
| Plan | Per key (requests a minute) | Per organization (all keys) |
|---|---|---|
| Free | 5 | 10 |
| Starter | 10 | 30 |
| Pro | 20 | 75 |
| Scale | 60 | 250 |
| Enterprise | 100 | 1,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:
| Header | Meaning |
|---|---|
RateLimit-Limit | Requests allowed a minute. |
RateLimit-Remaining | Requests left right now. |
RateLimit-Reset | Seconds 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.
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:
scope | Limit that was reached |
|---|---|
key | This API key's own limit. |
org | Your organization's limit, shared by all its API keys. |
ip | Too 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
| Status | code | When |
|---|---|---|
403 | API_KEY_PAUSED | The key's limit is set to 0. An owner or admin can raise it in Settings → API keys. |
503 | RATE_LIMIT_UNAVAILABLE | The limits can't be checked right now. Retry shortly. |
Staying under the limit
- Wait for
Retry-Afterbefore the next request. Requests sent sooner are refused too. - Watch
RateLimit-Remainingand 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.