Skip to main content
Errors have OpenAI’s shape (Anthropic’s on the Messages API): a status, a code and a message. Every answer carries an x-os3-request-id header: send it to support if you need help. Nothing is billed for a refused request. An error after a long answer has started (status 200) comes as an error object in the body.