Monoize
Dashboard

API Keys

Create forwarding API keys and set limits, groups, and capture options.

What an API key does

Clients authenticate forwarding requests with an API key. Every key starts with sk-. Send the key in one of these headers:

Authorization: Bearer sk-...
# or
x-api-key: sk-...

Requests without a valid key receive HTTP 401.

API key management

Create a key

  1. Open Token Management in the sidebar.
  2. Click the create button and enter a name.
  3. Set the options you need. All options have safe defaults.
  4. Copy the full key. The list shows the full key again later; keys are not write-only in Monoize.

Key options

OptionEffectDefault
ExpiryThe key stops working after the expiry date.No expiry
EnabledA disabled key fails authentication at once.Enabled
Model limitsWhen on, the key can call only the listed model patterns.Off
IP whitelistWhen set, requests must come from a listed IPv4/IPv6 address or CIDR range.Empty
GroupsThe key routes only to Providers whose groups intersect the key's groups.Inherit the user's group
Max multiplierThe key skips Channel model entries whose price multiplier exceeds this value.No cap
Sub-account balanceWhen on, the key spends its own balance instead of the user balance.Off
Request captureoff, capture-all, or capture-only-abnormal. See Request Logs.off

Model limits

Model limit entries are exact logical model names. A request whose model equals no entry receives HTTP 403 with code model_not_allowed.

Model redirects

A key can hold an ordered list of model redirect rules. Each rule has:

  • pattern: a regular expression. Monoize anchors it as ^(pattern)$ against the full model name.
  • replace: the literal target model name.

The first matching rule rewrites the model before routing, billing, and model-limit checks. Key rules run before global rules. Use redirects to move traffic to a new model without client changes.

Groups

  • Inherit user group (default): the key follows the owning user's group.
  • Explicit groups: select one or more groups. Order matters; Monoize prefers Providers from earlier groups. See Routing and Reliability.

Per-key transforms

A key can hold an ordered transform chain. Key transforms run inside a safety boundary: only transform types allowed at API-key scope are accepted. See Transforms.

On this page