Errors use OpenAI’s shape, so OpenAI’s SDKs raise them as their usual error types:
param names the request field that caused the error, when there is one. Every response has an x-request-id header; include it when you contact support.
Notes
- Backend errors. When the model backend rejects a request with 400, 413 or 422, the error comes back at that status with code
upstream_error. Long or technical backend messages are replaced with a short one.
- Cancelled requests. Requests you cancel appear in Logs as 499
client_closed. The API never returns that status.
- Failed requests are free. They don’t use credits.
- Retries. OpenAI’s SDKs retry 429 and 5xx responses on their own, but not long enough for a cold start. See Cold starts and retries.
Last modified on December 5, 2026