Authentication and API keys

Authenticate with a secret API key in the Authorization header. Test and live keys, display forms, rotation with a grace period, revocation and product scopes.

Every request sends a secret key as a bearer token. Keys are created in the dashboard; no API call can create a key.

curl https://www.omegahumanizer.cloud/api/v1/balance \
  -H "Authorization: Bearer sk_test_…"

Test and live keys

PrefixModeWhat it does
sk_test_testFree. Simulated renders with sample outputs, real webhooks, real file probing. Never uses a GPU.
sk_live_liveReal renders, paid from your prepaid balance.

Objects belong to one mode. A test key cannot see live jobs, files, voices, events or webhook endpoints, and the reverse; a cross-mode id returns 404 resource_missing.

Storing keys

  • A key is 256 bits of randomness, shown once at creation. Omega stores only an HMAC of it, so a lost key cannot be recovered — rotate it instead.
  • Keep keys on your server. Never ship them in a browser, a mobile app or a public repository. Signed upload and download URLs are what you hand to clients.
  • The dashboard shows a display form such as sk_live_AbCd…wXyZ and the last time each key was used.

Rotation and revocation

Rotating creates a new key with the same name, mode and scopes and keeps the old one working for a grace period you choose: none, 1 hour, 24 hours (default) or 7 days. Revoking stops a key at once.

Scopes

A key can be limited to some of songs, mastering, stems and voices. A create call for a product outside the key's scopes returns 403 scope_not_allowed. Reads are not scoped.

Errors

HTTPCodeWhen
401authentication_requiredNo Authorization: Bearer header.
401invalid_api_keyMalformed, unknown, revoked, or past its rotation grace. The message is the same in every case.
403account_suspendedThe organization was suspended.
403scope_not_allowedThe key lacks the product's scope.