Skip to main content
Build resilient clients with explicit handling for auth, balance, rate limits, and server errors.

Common errors

Request with retries

Handle known statuses

Recommendations

  • Always include Authorization header on every request.
  • Pre-check balance before costly jobs (see Billing & Usage).
  • Use exponential backoff and cap max retries.
  • Log request_id from creation responses to trace jobs.