Rate limits and retries

Rate limits cap the number of requests or tokens allowed over a period; beyond that, the API responds with an error, often the 429 code. The client must retry with an increasing wait and respect the Retry-After header when it is provided.

Example

HTTP/1.1 429 Too Many Requests Retry-After: 20

Related concepts

The whole glossary