Skip to main content

Protect sk- keys

  • Never commit keys to public repos or ship them in frontend bundles
  • Prefer environment variables or secret managers
  • Rotate immediately if leaked
  • Separate keys for development, staging, and production

Two credential surfaces

Do not replace a gateway sk- key with a user access token. The personal-token permissions below restrict access to existing features; they do not launch models, change prices, or grant administrator access.

Scoped personal access tokens

Scoped personal tokens and the original device-login mechanism were introduced on October 4, 2026. Character/video creation permissions were added on October 15, 2026.

Create and manage a token

Sign in in the browser, open the account security page, and create an access token with a recognizable name, only the permissions you need, and an expiration date. The form defaults to 30 days. A non-expiring manual token requires explicitly selecting Never expires, which displays a warning; the default is not permanent. The full nap_... value is returned only once, when created. Copy it into private storage before closing the dialog. Later lists show the name, permissions, expiration, usage information, and a masked hint, not the full secret. If you lose it, create a replacement; it cannot be revealed again. Each manual token can be revoked independently. Revoking one does not revoke your other manual tokens. Existing tokens now support editing names and updating granted permissions: renaming requires no verification, while updating permissions requires step-up security verification bound to the token ID and new permission set. Token listing, creation, editing, and revocation require a logged-in browser session; a token cannot create or revoke another token. Browser-session management and playground generation also remain browser-only. Creating, editing permissions, or revoking a token requires security verification for that exact action; verification does not grant additional permissions. The personal-token management API is /api/user/access_tokens, with /catalog for currently selectable permissions and /scopes for permission labels. Creation requires an explicit expires_at: omission or null is rejected; 0 is an explicit non-expiring choice, not the default. It is browser-only, not a new administration API. Do not use the retired single-token creation flow at /api/user/token to provision new credentials.

Choose permissions by purpose

read means viewing or querying; write means changing or creating the named resource. api_key:reveal separately allows reading complete gateway API keys, not revealing a personal token again. Granting this permission can expose keys that spend quota. The browser catalog is the authority for permissions you can currently select. A token never expands your account role, resource ownership, or balance. A read-only token cannot make a write request. Existing business charges still apply to operations such as publishing or ordering; granting a permission does not make them free.

Send the right credential

For an allowed user API, send Authorization: Bearer <personal_access_token> to https://omnimux.ai. The credential determines the user. Older examples may retain New-Api-User: <user_id> for client compatibility, but this header does not participate in authentication, select another user, or grant a permission. A missing/invalid, expired, or revoked token cannot authorize a request. A valid token with insufficient permissions, a browser-only route, or a route not declared for personal-token use is denied. See Connection and usage for recovery guidance.

Existing single-token credentials

Legacy single access tokens have one service-wide retirement deadline, set when the upgraded service first initializes it: 30 days later. Restarting the service or adding another node does not extend it. This is not a fresh 30-day period for each client or each request, and reaching the deadline does not erase the old stored record. Before the deadline, reconnect automation using a new scoped token or device login. After the deadline, a client holding the old token must sign in again. Old tokens are not automatically converted to new tokens. This migration does not retire sk- gateway keys, and changing New-Api-User cannot bypass it. The production retirement deadline, shared by all legacy clients, is November 3, 2026 at 13:52:36 UTC (2026-11-03T13:52:36Z).

Hygiene

  • Keep both credential types out of logs and screenshots
  • Limit permissions, models, and groups to the actual task
  • Use <token> placeholders in shared examples

Explicit approval for character/video creation

The new creation grants do not inherit from influencer:read, usage:read, administrator permissions or legacy credentials. Re-authorize device login to receive them. Reads are limited to your creation records; they do not expose unrelated account history. Read creation options before submitting. Queue acceptance is not delivery or a final charge/refund statement.