keys
browser-session

DEPRECATED alias of POST /api/credits/request

Deprecated 2026-09-15 (IC Credits rename); removed one release later. A thin re-export of POST /api/credits/request: identical auth, body, ring rule and response. Move to the new path.

post/api/zai-keys/request

Request

  • Base URL: https://www.immersivecommons.com
  • URL: https://www.immersivecommons.com/api/zai-keys/request
  • Auth: API key in cookie __session

Request body

kind'workshop' | 'member' | 'benchmark' required

workshop = any signed-in user (walk-ins; 5h + $5, event-tied); member = ft-member and above (monthly budget); benchmark = operator only.

event_idstring

Required for a workshop key: the upcoming event it is for (Luma URL or hackathon slug).

event_titlestring
budget_usd5 | 10 | 20 | 50 | 100

Monthly budget of IC Credits in USD (member / benchmark). Default: the ring default (operator 50, ic-member 20, ai-floor / ft-member 10). At or under the default mints instantly; above it queues for an operator, who picks the applied figure.

multipliernumber

LEGACY weekly-token multiplier (pre-2026-09-15). Accepted and ignored; use budget_usd.

default_modelstring

The catalog model id to pin as the key's default (the bundle's ANTHROPIC_MODEL). Ids with a / are metered in USD. Unknown id = 400. Omitted = the gateway's default.

notestring

Free text recorded on the request.

Response

Same as POST /api/credits/request.

okboolean required
mode'minted' | 'queued' | 'existing' required
request_idstring

The request that minted or queued (absent on some existing answers).

token_prefixstring

The key's prefix (minted / existing). Never the plaintext except in agent_token on a mint.

agent_tokenstring

minted only: the plaintext key, surfaced EXACTLY ONCE.

bundleobject

minted only: ready-to-paste Claude Code (copy_paste) and OpenAI-compatible (copy_paste_openai) configuration.

proxyobject

minted only: the key's limits block (kind, models, default_model, budget, expiry). No secret.

status'pending'

queued only.

budget_usdnumber

queued only: the budget the request asks for.

Changes

No recorded changes to this operation across all 1 revision of this API.