Skip to main content

How it works

Each key has two optional fields:
  • allowedModels — if non-empty, only these models are usable
  • blockedModels — always rejected; takes precedence over allowed
Empty / null on both = all models allowed (default behavior).

Set via dashboard

dolphy.chat/settings/api-keys → Manage on the key → enter comma-separated model ids.

Set via API

Pass null or [] to clear either list.

Common patterns

”Only the cheap models on the dev key”

All 1-credit/image models. Caps surprise spend on premium models.

”Restrict to a curated set for a customer-facing app”

Only models in allowedModels will be accepted by this key. Anything else returns 403.

”Just chat for the AI agent”

Blocks every image and video model. Only chat allowed.

When a request hits a blocked model

Status: 403. The customer should either change the model in their request or update the key’s permissions.

Listing model ids

GET /v1/models returns all available model ids with their pricing and capabilities. Use this to populate a model picker in your client.