Console

Error Codes

Platform-wide error codes are documented on this page. Resource-specific error codes remain on the relevant Reference page.

Common error codes

HTTPCommon code / typeDescription
400invalid_request_errorInvalid request parameters or request structure.
400missing_required_fieldA required field is missing.
400invalid_field_valueA field value is invalid.
400invalid_rangeA field value is outside the allowed range.
400unsupported_response_formatThe requested output format is not supported.
400unsupported_feature_for_modelThe selected model does not support this capability.
400invalid_urlThe URL format is invalid.
400 / 403url_not_allowedThe URL was rejected by security rules.
401authentication_errorAuthentication failed; the framework supports this status.
403permission_errorThe API Key is missing or invalid, permission is insufficient, or a security policy blocked the request; the current gateway may return 403.
402billing_error / insufficient_creditsBilling failed or the account has insufficient credits.
429rate_limit_error / rate_limit_exceededThe request rate limit was exceeded.
429concurrency_limit_exceededThe concurrency limit was exceeded.
409conflict_errorA resource conflict occurred.
404not_found_errorGeneric resource-not-found type; resource-specific codes remain on endpoint pages.
403safety_guardrail_blockedThe request was blocked by a safety policy.
500 / 502 / 503 / 504internal / upstream / service / timeoutServer, upstream, unavailable service, or timeout failure.

Error structure categories

Error structureDocumentation locationApplies to
Common synchronous HTTP errorResources → Error CodesOrdinary JSON errors returned before a response begins.
SSE error eventStreaming section of Single-speaker SpeechIn-stream failures after an SSE response has started.
Asynchronous task failureGet TaskA task was created successfully but ultimately entered FAILED.
Raw PCM interrupted mid-streamStreaming section of Single-speaker SpeechNo JSON error body; the connection ends early.

Common synchronous HTTP error structure

JSON
{
  "error": {
    "message": "Error description",
    "type": "error_type",
    "param": null,
    "code": "error_code"
  }
}

Common synchronous HTTP errors follow this structure. The exact error.code and parameters depend on the endpoint documentation and the actual response.