Rate Limits
LLM API limits how many requests (RPM) and tokens (TPM) your account can send per minute. The limits protect shared capacity; they don't depend on whether a model is free or paid.
Where your limits come from
- Account limit. One request and token allowance per minute, shared by every project and API key in your billing account. A child organization shares its parent's account limit.
- Model limits. Some models have a limit of their own. A request to such a model counts against that model's limit instead of the account limit, so it can be higher or lower than the account limit.
- Project and API key limits. A request limit set on a project applies to each of its API keys, and a limit on an API key replaces its project's. These can only lower what the account or model limit allows, never raise it.
Polling a video job's status is not counted against any limit.
Seeing your limits
Open Organization → Projects in the dashboard. The Rate limit column shows the account limit each project runs under, plus the project's own per-key limit if it has one. Below the table, the models with a limit of their own are listed. In a client organization of a partner, the partner manages these limits.
To raise your limits, contact support with the throughput you need.
How the window works
Windows are calendar minutes: every limit resets at the start of the next minute (hh:mm:00). A project or API key limit set over a different window is converted to a per-minute rate, rounded up.
Token limits apply to text generation (chat completions, messages, responses and Gemini generateContent) and to embeddings. They count a request's estimated tokens when it is admitted, then correct the count to the tokens it actually used once it finishes. Other requests, such as images, audio and video, count only against request limits.
Rate limit headers
The response to a request that is subject to a limit includes headers describing the limit closest to running out, one group per dimension that has a limit:
x-ratelimit-limit-requests: 600
x-ratelimit-remaining-requests: 599
x-ratelimit-reset-requests: 42
x-ratelimit-limit-tokens: 1000000
x-ratelimit-remaining-tokens: 998500
x-ratelimit-reset-tokens: 42
x-ratelimit-limit-*: the limit per minute.
x-ratelimit-remaining-*: what is left in the current minute.
x-ratelimit-reset-*: seconds until the window resets.
The request headers are present only when a request limit applies, and the token headers only when a token limit applies.
Rate limit exceeded
A request over a limit is refused with 429 Too Many Requests and a Retry-After header in seconds. The message names the limit that was reached:
{
"error": {
"message": "requests per minute limit exceeded for account (limit 600, resets in 18s)",
"type": "rate_limit_error",
"param": null,
"code": "rate_limit_exceeded"
}
}
The limit is named account, model <model id> or api key. A provider can also answer 429 when it is overloaded; that response has a different message and is not one of your LLM API limits.
Best practices
- Wait for
Retry-After before retrying a 429, and back off exponentially if it repeats.
- Watch
x-ratelimit-remaining-requests and x-ratelimit-remaining-tokens to slow down before you reach the limit.
- Set
max_tokens on requests to keep the token estimate close to what you use.