429 Rate Limit

ErrorIntermediateSeverity: MediumModel APIs

Requests fail with code 429, Too Many Requests or rate_limit_error.

Symptoms

  • Requests fail with code 429, Too Many Requests or rate_limit_error.

Cause

You exceeded the per-minute request or token limit, or your account's daily quota.

Fix

  • Retry after the time in the retry-after header, if present, with an increasing delay.
  • Reduce the size or the number of requests.
  • Check your account limits in the provider's dashboard.

Prevention

  • Set a per-user request limit in your app.