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 a429 response:
Retry-After header tells you how many seconds to wait.
Best practices
- Check headers before hitting limits — monitor
X-RateLimit-Remaining - Use exponential backoff on 429 responses
- Batch small PDFs — prefer one large job over many small ones
- Cache results — store extraction results locally after fetching