API Keys and Spend Limits
Members call the marketplace with API keys that belong to the organization (and, in a team, to the active workspace). Keys, programmatic provisioning, and spend limits all live under API Keys in the Buy section, with each surface gated by role.
Buyer keys
Create and manage the keys used to make inference requests. Each key can carry:
- a scope that constrains which models, providers, or endpoints it may use, along with a provider-trust preference and an optional minimum discount (
min_discount_pct, 0-100), and - an optional spend budget that caps how much it can spend.
Managing keys requires the key-management permission (owner, admin, or developer).
A key's restrictions hold when you hand it to someone else. A restricted key (one with a scope, a trusted-only or ZDR provider setting, budget, or expiry, and every team-workspace key) can make requests and read the key list, but cannot create, rename, configure, or revoke keys, or change the account's routing preferences or BYOK providers. The one exception is revoking itself. Manage keys from the dashboard, or programmatically with an admin key (below).
Provisioning keys programmatically
An admin key (inf_admin_...) can mint, scope, rotate, and revoke keys through the /v1/keys API, scoped to its own workspace. Every write on that API requires an Idempotency-Key header. An admin key holds the full capability vocabulary (key management, offers, usage and request-log reads, budgets, webhooks, and the rest), but it still cannot run inference (its key type is rejected at the inference guard, independently of any capability it holds) and cannot mint another admin key (only an organization owner or admin session can issue one). No money-moving route admits it either, so in practice it provisions and reads but never spends or withdraws.
Provisioning a key per downstream customer is the basis of Pattern A whitelabelling.
Secret masking on a key (beta)
A buyer or seller key can turn on secret masking for every request made with it, an optional extra layer that replaces API keys, private keys, seed phrases, passwords and tokens in its prompts with placeholders before they are routed. It is off by default. Turn it on with the Mask secrets switch when you create or edit a key in the dashboard, or over the API with mask_secrets: true on POST /v1/keys, PATCH /v1/keys/{id} or PUT /v1/buyer/keys/{id}/preferences.
- Key or account. A key is masked when its own
mask_secretsistrueor when the account's is (the Secret masking switch on Buy › Routing covers every key). A key'sfalseornullleaves it to the account, so a key cannot opt out of an account that masks. - Embeddings and media are sent as they are. Masking covers the text endpoints only. A key with masking on, or any key of an account with masking on, still works on
/v1/embeddings, image, audio, video and music endpoints and x402 resources, but those requests are not masked; while masking is running, their responses say so withx-si-secret-masking: not_applied. - Takes effect within about 31 seconds (about 70 right after masking is turned on for the service). The write that turns it on returns
secret_masking_effective_at; until then, sendX-SI-Mask-Secrets: onon the request. - Management keys cannot carry it. An admin key never runs inference, so
mask_secretson one,nullincluded, is400 invalid_request.
Budgets and spend limits
Set spend-limit budgets at several levels: the whole organization, a workspace, an individual member, or a single key, each shown with a live spend bar. The organization-wide budget is always shown first so the overall limit is never buried. Managing budgets requires the budgets permission (owner, admin, or billing admin).