Keys API
Provision, list, and revoke inference API keys programmatically.
The Keys API at /api/keys lets you provision and revoke inference keys without going through the dashboard. Useful for B2B partners minting per-tenant keys.
GET /api/keys
List the keys owned by the current account.
{
"keys": [
{ "id": "k_...", "label": "prod", "last_used": "2026-05-14T18:21:00Z", "created": "..." }
]
}
We never return the secret value after creation — only the prefix and metadata.
POST /api/keys
POST /api/keys
Content-Type: application/json
{ "label": "prod" }
Returns the key once:
{ "key": { "id": "k_...", "label": "prod", "value": "sk-..." } }
The value is shown a single time. Store it; we cannot recover it.
DELETE /api/keys/:id
Revokes the key. New requests are rejected within ~5 seconds globally.
{ "ok": true }
Quotas
- Free plan: 1 key
- Pro: 5 keys
- Team: 20 keys (shared across seats)
- Enterprise: unlimited
Last updated: