Skip to main content
Every request to the Darkbloom API requires a credential in the Authorization header. API keys use Bearer sk-db-.... The coordinator reads credentials only from that header: it ignores x-api-key, so clients that send only that header (the Anthropic SDK’s default api_key option) must be configured to send a bearer token instead.

Getting an API key

1

Sign in to the console

Create an account at console.darkbloom.dev. Email is the only console login method.
2

Open the API console

Open the API console page (/api-console) and choose Create key.
3

Create a key

Copy the secret when it is shown. It is returned only by create and rotate and cannot be retrieved later. A new key looks like:
4

Add credits

API calls are metered. Add credits from Billing before sending inference requests. A request whose worst-case reservation cannot be covered returns 402.
Store your API key in an environment variable or secrets manager. Never commit it to source control or expose it in client-side code.

Sending the key

Keys minted before the rename start with eigeninference- and remain valid, because lookups are by hash rather than by prefix. New keys start with sk-db-.

Key settings

A key can carry a spend budget, request and token limits, an allowed-model list, an expiry, or self_route_only (for a key that may use only the account’s own machines). The settings are enforced in the request prelude:
  • rpm_limit → 429 before the account limiter.
  • allowed_models → 403 model_not_allowed.
  • An exhausted limit_usd → 402.
  • expires_at and disabled → 401.

Manage keys

Key management requires a Privy session JWT. Calling these routes with an API key returns 403 forbidden.
POST /v1/auth/keys and DELETE /v1/auth/keys are the older one-key-per-account endpoints. They still work, but the /v1/keys family is the managed surface. A revocation or limit change can take up to the coordinator’s API-key cache TTL to apply everywhere. Create a key with limits:
limit_usd accepts at most six decimal places. limit_reset is none, daily, weekly or monthly, aligned to UTC midnight, Monday and the 1st. GET /v1/keys shows usage_usd, limit_usd and remaining_usd per key. The older mint returns {api_key, account_id}; the managed create returns {key, data}. A key’s label masks the secret to its prefix, first four and last four characters.

Authentication errors

error
The Authorization header is missing or the key is unknown, disabled, expired or revoked. Check that you pass the full sk-db-... value as a bearer token.
error
The balance cannot cover the request’s reservation, or the key’s spend cap is exhausted. Add credits in the console under Billing, or raise the key’s limit_usd.
error
An API key was used on a route that requires a Privy session, such as key management or payout setup.
error
The requested model is outside the key’s allowed_models list.
error
A key, account or token limit was hit, or serving capacity is unavailable. Wait for Retry-After.