Groups, budgets and model access

Give each key, person or team only the models they need and a spend limit, in the dashboard or over the API.

Three nouns

NounWhat it is
GroupA set of keys, and the members whose new keys land there, that share which models they may call, a monthly group budget, guardrails and usage reports. The API calls a group an identity (identity_id).
BudgetA spend limit. A shared budget is a named amount, resetting every UTC day, week, month or year, that any number of keys draw from. A group budget caps a group and every group inside it per month. The organization budget caps everything.
KeyAn xpl_ key. It belongs to exactly one group and draws from at most one shared budget; both can change at any time. Rate limits and IP rules stay on the key.

In the dashboard all three live on the Access page: the API Keys tab (each key shows its group and budget; Edit changes its group, budget and rate limits), the Groups tab and the Budgets tab. Aliases and Guardrails have their own tabs there too. Everything there is also an API call. Money is integer nano-USD (1000000000 = $1).

GET/api/orgs/{org_id}/identitiesGET/api/orgs/{org_id}/budgets

GET /v1/models with a key lists exactly the models that key may call: the quickest check that a group is set up the way you meant.

curl https://api.experientiallabs.ai/v1/models \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Groups nest; restrictions only tighten

A group may sit inside one parent group (parent_identity_id, at most four levels; the default group is always at the top). For a key in a child group:

Rule
ModelsCallable only when every group above it allows them. All models inherits the parent's list; Only these models narrows it. A child never widens access: use a sibling group for that.
BudgetsSpend counts against the key's shared budget, its own group budget, every parent group's budget and the organization budget. The tightest one refuses first.
GuardrailsEvery parent group's guardrail runs first, then the group's own.
GroupModelsBudget
DevelopersAll$2,000 a month
Security, inside DevelopersFour models$500 a month

A Security key may call those four models, at most $500 a month, and its spend also counts toward the Developers' $2,000.

Budgets

One budget per thing: a group, the organization and a model each carry at most one recurring budget (PUT replaces the existing one for that scope), and a key draws from at most one shared budget (attaching it elsewhere moves it).

Kindscope_kindResetsWho draws from it
Shared budgetkeysDaily, weekly, monthly or yearly (UTC)The keys attached to it
Group budgetidentityMonthlyEvery key in the group or below it
Organization budgetteamMonthlyEvery key
Model budgetmodelMonthlyEvery call to that model

A shared budget counts the spend of the keys attached now, in the current window. Older per-key spend caps keep working; picking a budget for such a key replaces its old cap, so a key never carries two spend limits. A request past a budget is refused with an error that names the budget: raise it, move the key, or wait for the reset.

POST/api/orgs/{org_id}/budgetsPUT/api/orgs/{org_id}/budgets
curl -X PUT https://api.experientiallabs.ai/api/orgs/ORG_ID/budgets \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"period": "*", "scope_kind": "team", "limit_nano_usd": 5000000000000}'

The provisioning key

Every call on this page works with a signed-in org admin or with the organization's provisioning key, which can do everything an org admin can here: groups, model access, budgets, keys, members and spend alerts. An ordinary inference key gets 403. Create one on the Access page (Create key, Advanced, Provisioning key); see the Account API for the rules it follows.

GET/api/whoami
curl https://api.experientiallabs.ai/api/whoami \
  -H "Authorization: Bearer <YOUR_API_KEY>"
# {"org_id": "...", "is_provisioning": true, ...}

A key with a $50 monthly budget

In the dashboard: Create key, name it, Budget: New budget, $50 every month. The budget is named after the key; attach more keys to it later to share it. The plaintext key is returned once.

POST/api/orgs/{org_id}/keys
curl https://api.experientiallabs.ai/api/orgs/ORG_ID/keys \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "production-server",
    "budget": {"limit_nano_usd": 50000000000, "reset_period": "monthly"}
  }'
# {"key": "xpl_...", "data": {"id": "...", "budget": {"name": "production-server", ...}, ...}}

A contractor key: three models, $100 a month

Create key, Group: New group, choose Only these models and pick them, then Budget: New budget. One call creates the group, its model list, the budget and the key; if any part fails, nothing is left behind. models takes model slugs as GET /v1/models lists them, or your custom model names. expires_in_days and ip_rules are optional.

POST/api/orgs/{org_id}/keys
curl https://api.experientiallabs.ai/api/orgs/ORG_ID/keys \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "contractor-alice",
    "expires_in_days": 90,
    "identity": {
      "display_name": "Contractors",
      "models": ["claude-sonnet-4.6", "gpt-6-luna", "deepseek-v4-flash"]
    },
    "budget": {"name": "Alice", "limit_nano_usd": 100000000000, "reset_period": "monthly"},
    "ip_rules": {"mode": "allow", "cidrs": ["203.0.113.0/24"]}
  }'

A team group with its members

Groups tab, New group: name, models and a monthly budget. Then put members into the group; keys they create from the dashboard afterwards land there. Their existing keys keep their group: move a key with PATCH .../keys/{key_id}. A group's id is generated from its name; use the identity_id the create returns.

POST/api/orgs/{org_id}/identitiesGET/api/orgs/{org_id}/membersPATCH/api/orgs/{org_id}/members/{user_id}
# 1. The group, its models and its monthly budget in one call.
curl https://api.experientiallabs.ai/api/orgs/ORG_ID/identities \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "display_name": "Data team",
    "models": ["claude-sonnet-4.6", "gpt-6-luna"],
    "monthly_budget_nano_usd": 500000000000
  }'
# {"identity_id": "data-team-5d2b7e19", ...}

# 2. Put a member in it (user ids from GET .../members).
curl -X PATCH https://api.experientiallabs.ai/api/orgs/ORG_ID/members/USER_ID \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"identity_id": "data-team-5d2b7e19"}'

# 3. A key for the team's pipeline lands in the group too.
curl https://api.experientiallabs.ai/api/orgs/ORG_ID/keys \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"name": "data-pipeline", "identity_id": "data-team-5d2b7e19"}'

Layered: Developers, then Security inside it

Make the base group first, then the narrower one with parent_identity_id. A Security key may call only its four models, at most $500 a month, and that spend also counts toward the Developers' $2,000. Move an existing group under another with PATCH .../identities/{identity_id} and parent_identity_id (null moves it back to the top).

POST/api/orgs/{org_id}/identitiesPATCH/api/orgs/{org_id}/identities/{identity_id}PUT/api/orgs/{org_id}/identities/{identity_id}/model-access
# Developers: every model, $2,000 a month.
curl https://api.experientiallabs.ai/api/orgs/ORG_ID/identities \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"display_name": "Developers", "monthly_budget_nano_usd": 2000000000000}'
# {"identity_id": "developers-2b8e51c0", ...}

# Security, inside Developers: four models, $500 of that $2,000.
curl https://api.experientiallabs.ai/api/orgs/ORG_ID/identities \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "display_name": "Security",
    "parent_identity_id": "developers-2b8e51c0",
    "models": ["claude-sonnet-4.6", "gpt-6-luna", "gpt-6-astra", "deepseek-v4-flash"],
    "monthly_budget_nano_usd": 500000000000
  }'

One budget for several existing keys

Budgets tab, New budget: name, amount, how often it resets, and the keys that draw from it. A key draws from one shared budget at a time; attaching it to another moves it. PUT .../budgets/{budget_id}/keys replaces the whole set; PATCH .../budgets/{budget_id} changes the name, amount or reset period.

POST/api/orgs/{org_id}/budgetsPATCH/api/orgs/{org_id}/keys/{key_id}PUT/api/orgs/{org_id}/budgets/{budget_id}/keysPATCH/api/orgs/{org_id}/budgets/{budget_id}
# Create the budget and attach existing keys in one call.
curl https://api.experientiallabs.ai/api/orgs/ORG_ID/budgets \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Interns",
    "limit_nano_usd": 200000000000,
    "reset_period": "monthly",
    "api_key_ids": ["KEY_ID_1", "KEY_ID_2", "KEY_ID_3"]
  }'
# {"budget_id": "BUDGET_ID", "scope_kind": "keys", ...}

# Later: add a key to it ("budget_id": null detaches).
curl -X PATCH https://api.experientiallabs.ai/api/orgs/ORG_ID/keys/KEY_ID_4 \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"budget_id": "BUDGET_ID"}'

Change or rotate a key

PATCH .../keys/{key_id} changes any of name, identity_id (move to another group), budget_id (null detaches), budget (a new shared budget), rate_limits (null returns to the tier's windows) and ip_rules (null removes them). Rotating keeps the group, budget, limits and IP rules, returns the new plaintext once, and the old secret keeps working until old_key_expires_at (overlap_hours, 1 to 72).

GET/api/orgs/{org_id}/keys/{key_id}POST/api/orgs/{org_id}/keys/{key_id}/rotate
curl https://api.experientiallabs.ai/api/orgs/ORG_ID/keys/KEY_ID/rotate \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"overlap_hours": 1}'
# {"key": "xpl_...", "data": {...}, "old_key_expires_at": "..."}

Do it all from a coding agent

Create a provisioning key, then paste this into your coding agent. It proposes the groups first and creates nothing until you agree.

Every route the agent uses, with its fields and errors, is in the API reference: start at Create a key and Create a group.