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
| Prefix | Mode | What it does |
|---|---|---|
sk_test_ | test | Free. Simulated renders with sample outputs, real webhooks, real file probing. Never uses a GPU. |
sk_live_ | live | Real 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…wXyZand 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
| HTTP | Code | When |
|---|---|---|
| 401 | authentication_required | No Authorization: Bearer header. |
| 401 | invalid_api_key | Malformed, unknown, revoked, or past its rotation grace. The message is the same in every case. |
| 403 | account_suspended | The organization was suspended. |
| 403 | scope_not_allowed | The key lacks the product's scope. |