Error response format
All errors follow a consistent JSON structure:HTTP status codes
Common errors
401 — Invalid API key
401 — Invalid API key
Authorization: Bearer header.400 — Missing required field
400 — Missing required field
402 — Insufficient credits
402 — Insufficient credits
422 — Validation error
422 — Validation error
message field for specifics.