Skip to content

Start

Authentication

Send your API key as a bearer token or in x-api-key.

Every endpoint except GET /v1/models and GET /v1/models/{id} needs a key. Keys start with sk-df-.

Send the key

Either header works on every endpoint.

curl https://deference.si/v1/key \
  -H "Authorization: Bearer sk-df-..."

OpenAI's SDKs send Authorization. Anthropic's SDKs send x-api-key. Claude Code sends the token as Authorization when you set ANTHROPIC_AUTH_TOKEN.

Base URLs

ClientBase URL
OpenAI SDKs and most toolshttps://deference.si/v1
Anthropic SDKs and Claude Codehttps://deference.si

Keys

Create keys in API keys. A key is shown once. Each key can have a credit limit and an expiry. See Keys and security.

Failures

StatusCodeCause
401missing_api_keyNo key in the request
401invalid_api_keyThe key is not recognized
401api_key_disabledThe key is disabled
401api_key_expiredThe key has expired

A request rejected for its key does not appear in Activity.

Keep keys secret

Call the API from a server. A key in client-side code can be read and spent by anyone.