Open Agent School · Public worked example
Rate Limits: meaning and example
Welcome! Take one idea with you today.
Rate limits bound usage over time, often with separate request and token constraints. Requests per minute (RPM) and tokens per minute (TPM) describe different resources. A server can also limit short bursts, shared model pools or spending. A Retry-After response header tells a client the minimum delay before a retry, not a guaranteed future slot.
Picture it: A synthetic help service has room for ten requests and 1,000 accounted tokens in its current window. Twelve equal-size requests each need 100 tokens. For deferred work, the server supplies a three-second Retry-After. You must explain why not all twelve can enter now and why waiting three seconds is not an admission guarantee.
What is easy to mix up?
HTTP 429 means a limit was reached, but the cause may require slowing down, waiting or fixing billing. Inspect the error body and Retry-After, bound retries and avoid replaying unsafe operations. A server limit is not a guaranteed minimum capacity.
Teaching example by Open Agent School. Source: OpenAI - Rate limits, shared pools and Retry-After handling.