Get started

Authentication and keys

How deepflock API keys work, how to send them, and how to keep them safe.

Every API call except the public ones needs a key. You send it as a bearer token in the Authorization header.

Getting a key

API keys are issued to waitlist members via deepflock.dev/#join, and you manage them in the console at console.deepflock.dev. A key is a string that starts with df-, for example df-3k9.... The console shows the full key once, when you create it. After that we only keep a hashed copy, so we cannot show it to you again. If you lose a key, delete it and make a new one.

Sending a key

Shell
curl https://api.deepflock.dev/v1/models \
  -H "Authorization: Bearer $DEEPFLOCK_API_KEY"

OpenAI SDKs do this for you when you pass api_key (Python) or apiKey (Node).

Which endpoints need a key

EndpointKey needed
GET /v1/statusNo
GET /v1/pricingNo
GET /v1/modelsNo
GET /v1/statsNo
GET /v1/leaderboardNo
GET /v1/meYes
POST /v1/chat/completionsYes

Keeping keys safe

  • Keep keys on your server, in an environment variable or a secret store.
  • Never put a key in browser code, a mobile app or a public repository. Anyone who has it can spend your credit.
  • Use one key per app or environment, so you can delete one without breaking the others.
  • If a key leaks, delete it in the console right away.

Key settings

Each key can be limited:

  • a spending limit
  • a requests-per-minute limit
  • a list of models the key may use
  • an opt-out from whole-model Macs, for requests that must only run on split flocks

What happens with a bad key

A missing, wrong or deleted key returns 401 with an error of type authentication_error and the code invalid_api_key. GET /v1/me shows a key's limits, balance and usage. See Errors and limits.

View as MarkdownUpdated 2026-12-01