Gateway error reference

Gateway errors use an OpenAI-style error object with message, type, code and param; request_id is included when available. Upstream error bodies may differ. Keep the request ID when asking support for help.

Gateway error codes
CodeHTTP statusWhat to do
unauthorized401Sign in again or provide valid authentication.
account_exists409Sign in to the existing account.
invalid_api_key401Check the key or create a replacement in Console.
missing_api_key401Send the Authorization bearer header.
key_revoked401Replace the revoked key.
scope_denied403Use a key entitled to this product.
insufficient_credits402Check available wallet credit and add funds.
rate_limited429Wait for Retry-After before retrying.
invalid_request400Correct the input or named parameter.
model_not_found404Choose an available model from the catalog.
not_found404Check the public ID or resource URL.
method_not_allowed405Use the documented HTTP method.
not_implemented501Choose a supported operation.
provider_unavailable503Check availability before trying later.
upstream_error502Check Usage before deciding whether to retry the call.
console_disabled503Console is unavailable on this deployment.
forbidden403Check account access and permissions.
internal_error500Contact support with the request ID.

A failed billable call is not charged. For a transport timeout with an unknown outcome, check Usage or the existing run before starting another paid execution.