Skip to main content
Every error response from the v1 API (except research routes and internal metering routes) follows a consistent envelope:
details appears only on zod validation failures (HTTP 400 invalid_request), where each issue in the validation errors maps to one details entry. requestId is an 8-character hex string that correlates server-side logs to the response. Include it when reporting issues.

Error codes

Retry strategy

402 insufficient_credits body

409 stalestate body