Start hereGuide

Keys, limits, and quotas

Create, rotate, and revoke keys, and understand the limits attached to them.

By the end: You can manage keys and predict when a request will be throttled.

Keys are per account, and limits apply on several levels at once. Knowing the levels explains most 429s.

FieldValueNotes
Requests per minutePer key and per accountBoth must pass. A single key cannot use the whole account allowance.
Concurrent requestsPer accountHeld for the life of the request, including streams.
Daily requestsOptional, per accountSet by an administrator. Returns quota_exceeded.
Monthly tokensOptional, per accountCounts input plus output for the calendar month (UTC).

Reading the headers

Successful responses include x-ratelimit-limit-requests and x-ratelimit-remaining-requests for your account limit. A 429 carries retry-after in seconds.

Practical advice

Never put an API key in browser code, a public repository, or a client-side bundle. Keys are server-side secrets; a leaked key can spend your balance.