429 Too Many Requests with a Retry-After header.
Handle a 429
Retry-Afteris in seconds. Wait that long before the next attempt.- Use
retryableas the primary retry signal.429responses are retryable. - If
Retry-Afteris missing, use bounded exponential backoff with jitter.
Separate the limits you can hit
A429 can also mean the model is at capacity rather than the key being
rate-limited. Both return 429; both are retryable after the Retry-After
interval. See Errors for the full status-code table and
retry policy, and Streaming for retrying interrupted
streams.