Errors

One error object with a machine code, a message, the parameter, a documentation link and the request id. Every code the API returns.

{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "duration_seconds must be a whole number from 30 to 300.",
    "param": "duration_seconds",
    "doc_url": "https://www.omegahumanizer.cloud/developers/docs/errors#parameter_invalid",
    "request_id": "req_7Q2c0bQf3kR1m9ZtLwYp4sVa"
  }
}

Branch on code, not on the message. Quote request_id (also in the X-Request-Id header) when you contact support. 5xx errors are safe to retry with the same Idempotency-Key.

HTTPCodeMeaning
400invalid_jsonThe body could not be parsed as JSON.
400parameter_missingA required field is absent. param names it.
400parameter_invalidA field has the wrong type or is out of range. param names it.
400parameter_unknownUnknown fields are rejected so typos never pass silently. param names the field.
400parameter_not_allowed_in_live_modetest_outcome simulates failures and works only in test mode.
400idempotency_key_requiredSend a unique Idempotency-Key header (1 to 255 printable ASCII characters) on every POST.
400idempotency_key_invalidThe header value is empty, too long, or contains characters outside printable ASCII.
400url_not_allowedOnly public https: URLs on port 443 are fetched. Private, loopback, link-local and metadata addresses are refused, including after redirects.
400voice_not_supported_for_requestvoice_id cannot be combined with instrumental: true or vocal_gender: "duet".
401authentication_requiredNo Authorization: Bearer header was sent.
401invalid_api_keyThe key is malformed, unknown, revoked or past its rotation grace. The message is the same in every case.
402insufficient_balanceLive jobs hold their maximum possible charge at creation. Top up, then retry with a new idempotency key.
403account_suspendedThe organization was suspended by Omega. Every endpoint refuses until it is restored.
403scope_not_allowedThe key was created without this product in its scopes.
403voice_access_requiredLive voice creation and songs in a custom voice need per-organization approval.
404resource_missingThe id does not exist in this mode, or is malformed.
404route_not_foundThe path does not exist under /api/v1.
405method_not_allowedThe Allow header lists the supported methods.
409idempotency_key_in_useAnother request with the same key is running. Retry after a moment.
409file_not_readyThe file is still uploading or processing.
409upload_incompletecomplete was called before the object existed in storage.
409voice_not_readyThe voice must have status ready and be in the key's mode.
409job_not_cancelableA job that has started rendering finishes or fails on its own.
409state_conflictThe action does not apply to the object's current state.
410file_expiredFiles are kept 48 hours after upload.
413body_too_largeRequest bodies are limited to 64 KiB. Upload audio through /v1/files.
413upload_too_largeFiles are limited to 100 MiB in live mode and 25 MiB in test mode.
415unsupported_content_typePOST bodies must be JSON.
415unsupported_mediaAccepted: WAV, MP3, FLAC, M4A/AAC, Ogg Vorbis/Opus, WebM Opus and AIFF, checked by content.
422idempotency_key_reusedUse a new key for a different request body or path.
422audio_too_longSee the per-product length limits.
422audio_too_shortSee the per-product length limits.
422url_fetch_failedThe URL did not return audio within the size and time limits.
422unsupported_media_for_productSongs and mastering do not accept WebM.
422singing_duration_invalidThe singing total is outside the range for the voice type.
429rate_limitedA per-key, per-organization or create limit was reached.
429queue_fullAt most 20 live jobs may wait per organization (adjustable by Omega).
429too_many_pending_uploadsAt most 50 live or 20 test files may be awaiting upload or processing.
500internal_errorAn unexpected error. Retrying with the same key is safe.
503api_disabledThe API is switched off. Developer pages still load.
503product_unavailableThe product cannot be used with live keys yet. See /developers/docs/availability.
503service_unavailableLive creation is paused or a dependency is unavailable.
503voice_unavailableThe voice pipeline refused the request. Retry later.
503voice_worker_busyOne API voice job runs at a time. Retry after Retry-After seconds.