Skip to main content

Rate limit tiers

Rate limit headers

Every API response includes rate limit headers:

Rate limit exceeded

When the rate limit is exceeded, the API returns:
HTTP status: 429

Best practices

  • Implement exponential backoff for retries
  • Respect the x-ratelimit-reset header
  • Use the idempotency-key header for non-streaming requests to avoid double charges
  • Use test keys (af_test_) during development