Skip to main content

Limits

“Expensive ops” include POST /v1/documents (uploads), POST /v1/documents/{id}/structured-output, and POST /v1/documents/{id}/chat/completions. All other endpoints count as standard requests.

Rate limit headers

Every API response includes rate limit information:

When rate limited

You receive a 429 response:
The Retry-After header tells you how many seconds to wait.

Best practices

  1. Check headers before hitting limits — monitor X-RateLimit-Remaining
  2. Use exponential backoff on 429 responses
  3. Batch small PDFs — prefer one large job over many small ones
  4. Cache results — store extraction results locally after fetching