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.
| Field | Meaning |
|---|---|
id | The model id to put in the model field of a request. |
object | Always model. |
owned_by | Always deepflock. |
name | Display name. |
status | The model's serving state in the catalog. |
context_length | The most tokens one request can hold, or null when the model does not publish one. |
flocks_ready | Flocks that can serve this model right now. |
pricing.prompt | USD per input token, as a string (OpenRouter style). |
pricing.completion | USD 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/modelsPython
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
| Status | Type | Code | When |
|---|---|---|---|
404 | invalid_request_error | model_not_found | GET /v1/models/{model_id} with an unknown id. |
View as MarkdownUpdated 2026-12-01