sonixdocs

Errors

Errors use the OpenAI structure, so existing SDK error handling works unchanged:

{
  "error": {
    "message": "model not found: whisper-small",
    "type": "invalid_request_error",
    "param": "model",
    "code": "model_not_found"
  }
}

Status codes

StatusCodeWhen
400invalid_requestMalformed JSON or an unsupported parameter.
401unauthorizedMissing or invalid API key.
404model_not_foundThe requested model does not exist.
408request_timeoutThe request exceeded the server's time budget.
429rate_limit_exceededRequest or token quota exceeded. Includes Retry-After and x-ratelimit-* headers.
429capacity_exceededThe node is at its concurrency limit. Includes Retry-After: 1.
502runtime_errorInference failed after validation.
503not_readyThe service is starting or a required model failed to load. Retry shortly.

Unsupported parameters are rejected explicitly with invalid_request rather than silently ignored: if a request succeeds, every field in it was honored.

Retries

On 429, wait for Retry-After seconds before retrying. On 503, retry with backoff; the service reports ready as soon as its models are loaded.