API reference

List models

GET /v1/models returns the deepflock model catalog in the OpenAI list format, with prices.

Shell
GET https://api.deepflock.dev/v1/models
GET https://api.deepflock.dev/v1/models/{model_id}

Returns the model catalog in the OpenAI list format, with each model's price and how many flocks can serve it right now. Use this list in code rather than a hard-coded one. GET /v1/models/{model_id} returns one model.

Authentication

None. OpenAI SDKs send your key anyway; that is fine.

Request

No parameters and no body.

Response

JSON
{
  "object": "list",
  "data": [
    {
      "id": "qwen3-235b-a22b",
      "object": "model",
      "created": 1796145054,
      "owned_by": "deepflock",
      "name": "Qwen3-235B-A22B",
      "context_length": null,
      "flocks_ready": 0,
      "pricing": {"prompt": "0.00000015", "completion": "0.0000006"}
    }
  ]
}

The real response lists every model in the catalog; one is shown here.

FieldMeaning
idThe model id to put in the model field of a request.
objectAlways model.
owned_byAlways deepflock.
nameDisplay name.
statusThe model's serving state in the catalog.
context_lengthThe most tokens one request can hold, or null when the model does not publish one.
flocks_readyFlocks that can serve this model right now.
pricing.promptUSD per input token, as a string (OpenRouter style).
pricing.completionUSD per output token, as a string.

id, object, created and owned_by match OpenAI. The other fields are deepflock additions; OpenAI SDKs ignore them. Prices per 1 million tokens are on GET /v1/pricing.

Streaming

Not applicable.

Examples

Shell
curl https://api.deepflock.dev/v1/models
Python
for m in client.models.list():
    print(m.id)
Node
const list = await client.models.list();
for (const m of list.data) console.log(m.id);

Errors

StatusTypeCodeWhen
404invalid_request_errormodel_not_foundGET /v1/models/{model_id} with an unknown id.
View as MarkdownUpdated 2026-12-01