Limit types
| Limit | Unit | Resets |
|---|---|---|
| RPM | Requests per minute | Every 60-second rolling window |
| TPM | Tokens per minute | Every 60-second rolling window |
When limits are hit
retry_after is the number of seconds until the current window resets.
Setting limits
Dashboard
Console → Keys & Limits — edit the key and set RPM/TPM in the Rate limits section.REST API
null to remove that limit.
User-level limits
In addition to per-key limits, you can set limits on a user account that cap their total usage across all keys they own. Configure the per-user caps in Console → Keys & Limits.Recommended limits by use case
| Use case | Suggested RPM | Suggested TPM |
|---|---|---|
| Interactive developer | 60 | 200,000 |
| CI / automation | 20 | 500,000 |
| Production application | null (use budget only) | null |