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.
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_json | The body could not be parsed as JSON. |
| 400 | parameter_missing | A required field is absent. param names it. |
| 400 | parameter_invalid | A field has the wrong type or is out of range. param names it. |
| 400 | parameter_unknown | Unknown fields are rejected so typos never pass silently. param names the field. |
| 400 | parameter_not_allowed_in_live_mode | test_outcome simulates failures and works only in test mode. |
| 400 | idempotency_key_required | Send a unique Idempotency-Key header (1 to 255 printable ASCII characters) on every POST. |
| 400 | idempotency_key_invalid | The header value is empty, too long, or contains characters outside printable ASCII. |
| 400 | url_not_allowed | Only public https: URLs on port 443 are fetched. Private, loopback, link-local and metadata addresses are refused, including after redirects. |
| 400 | voice_not_supported_for_request | voice_id cannot be combined with instrumental: true or vocal_gender: "duet". |
| 401 | authentication_required | No Authorization: Bearer header was sent. |
| 401 | invalid_api_key | The key is malformed, unknown, revoked or past its rotation grace. The message is the same in every case. |
| 402 | insufficient_balance | Live jobs hold their maximum possible charge at creation. Top up, then retry with a new idempotency key. |
| 403 | account_suspended | The organization was suspended by Omega. Every endpoint refuses until it is restored. |
| 403 | scope_not_allowed | The key was created without this product in its scopes. |
| 403 | voice_access_required | Live voice creation and songs in a custom voice need per-organization approval. |
| 404 | resource_missing | The id does not exist in this mode, or is malformed. |
| 404 | route_not_found | The path does not exist under /api/v1. |
| 405 | method_not_allowed | The Allow header lists the supported methods. |
| 409 | idempotency_key_in_use | Another request with the same key is running. Retry after a moment. |
| 409 | file_not_ready | The file is still uploading or processing. |
| 409 | upload_incomplete | complete was called before the object existed in storage. |
| 409 | voice_not_ready | The voice must have status ready and be in the key's mode. |
| 409 | job_not_cancelable | A job that has started rendering finishes or fails on its own. |
| 409 | state_conflict | The action does not apply to the object's current state. |
| 410 | file_expired | Files are kept 48 hours after upload. |
| 413 | body_too_large | Request bodies are limited to 64 KiB. Upload audio through /v1/files. |
| 413 | upload_too_large | Files are limited to 100 MiB in live mode and 25 MiB in test mode. |
| 415 | unsupported_content_type | POST bodies must be JSON. |
| 415 | unsupported_media | Accepted: WAV, MP3, FLAC, M4A/AAC, Ogg Vorbis/Opus, WebM Opus and AIFF, checked by content. |
| 422 | idempotency_key_reused | Use a new key for a different request body or path. |
| 422 | audio_too_long | See the per-product length limits. |
| 422 | audio_too_short | See the per-product length limits. |
| 422 | url_fetch_failed | The URL did not return audio within the size and time limits. |
| 422 | unsupported_media_for_product | Songs and mastering do not accept WebM. |
| 422 | singing_duration_invalid | The singing total is outside the range for the voice type. |
| 429 | rate_limited | A per-key, per-organization or create limit was reached. |
| 429 | queue_full | At most 20 live jobs may wait per organization (adjustable by Omega). |
| 429 | too_many_pending_uploads | At most 50 live or 20 test files may be awaiting upload or processing. |
| 500 | internal_error | An unexpected error. Retrying with the same key is safe. |
| 503 | api_disabled | The API is switched off. Developer pages still load. |
| 503 | product_unavailable | The product cannot be used with live keys yet. See /developers/docs/availability. |
| 503 | service_unavailable | Live creation is paused or a dependency is unavailable. |
| 503 | voice_unavailable | The voice pipeline refused the request. Retry later. |
| 503 | voice_worker_busy | One API voice job runs at a time. Retry after Retry-After seconds. |