DeepFellow DOCS

Listing Models

Discover the models available to your project and read their capabilities.

Every DeepFellow deployment exposes a different set of models, and every project reaches only the subset its permissions allow. The Models endpoints tell you which models the credential you hold will actually reach, and, on request, what each model supports.

Listing Available Models

To list the models available to your project, call the models endpoint:

curl -X 'GET' \
  'https://deepfellow-server-host/v1/models' \
  -H "Authorization: Bearer DEEPFELLOW_PROJECT_API_KEY"

The response is OpenAI-compatible, so every OpenAI client library reads it without modification:

{
    "object": "list",
    "data": [
        {
            "id": "gemma3:1b",
            "object": "model",
            "created": 0,
            "owned_by": "ollama"
        },
        {
            "id": "deepseek-r1:14b",
            "object": "model",
            "created": 0,
            "owned_by": "ollama"
        }
    ]
}

Retrieving a Single Model

To retrieve one model, append its identifier to the path:

curl -X 'GET' \
  'https://deepfellow-server-host/v1/models/gemma3:1b' \
  -H "Authorization: Bearer DEEPFELLOW_PROJECT_API_KEY"

The response holds a single model object in the same shape as one entry of the list.

Model identifiers that contain a slash, such as speaches-ai/Kokoro-82M, work in the path without escaping.

Requesting Extended Model Data

The OpenAI-compatible model object carries only id, object, created, and owned_by. It says nothing about what the model does. To learn a model's context window, the endpoints it serves, the tools it exposes, or how loaded it is, set the additional_data query parameter to true:

curl -X 'GET' \
  'https://deepfellow-server-host/v1/models?additional_data=true' \
  -H "Authorization: Bearer DEEPFELLOW_PROJECT_API_KEY"

Each model object then carries an extra props object, plus the usage and capacity fields:

{
    "object": "list",
    "data": [
        {
            "id": "gemma3:1b",
            "object": "model",
            "created": 0,
            "owned_by": "ollama",
            "props": {
                "private": true,
                "type": "llm",
                "endpoints": [
                    "/v1/completions",
                    "/v1/chat/completions",
                    "/v1/responses",
                    "/v1/messages",
                    "/api/chat"
                ],
                "context_window": 4096,
                "max_context_window": 32768,
                "prefix": null,
                "transport": null,
                "tools": [],
                "registrations": [
                    {
                        "owned_by": "ollama",
                        "type": "llm",
                        "origin": "local"
                    }
                ]
            },
            "usage": 2,
            "capacity": 8
        }
    ]
}

The parameter works the same way on a single model:

curl -X 'GET' \
  'https://deepfellow-server-host/v1/models/gemma3:1b?additional_data=true' \
  -H "Authorization: Bearer DEEPFELLOW_PROJECT_API_KEY"

A response with props, usage, and capacity is no longer OpenAI-compatible. Request it with a plain HTTP call rather than an OpenAI client library, which will drop the extra field. The parameter defaults to false, so a client that never sets it always receives the compatible shape.

Model Properties

The props object describes what a model supports:

PropertyTypeDescription
privatebooleanWhether the model runs inside your DeepFellow deployment. A private model never sends data to an external provider. When a model name has both a local and a cloud registration, private is false, because DeepFellow routes requests for that name to the cloud model too.
typestringThe kind of model: llm, embedding, tts, stt, rerank, txt2img, decision, mcp, or custom. The mcp type marks an MCP server, and custom marks a custom endpoint.
endpointsstring[]The API endpoints the model serves, for example /v1/chat/completions or /v1/embeddings.
context_windowinteger | nullThe context window the model currently runs with, in tokens.
max_context_windowinteger | nullThe largest context window the model supports, in tokens.
prefixstring | nullThe identifier prefix that groups the models coming from one MCP server or one custom endpoint.
transportstring | nullThe transport an MCP server communicates over, for example streamable_http.
toolsobject[]The tools an MCP server exposes, each with a name, a description, and an input_schema. Empty for every other model type.
registrationsobject[]Every registration behind the model name, each with owned_by, type, and origin. See Models with Several Registrations. Empty with a DeepFellow Infra version that does not report registrations.

Use type and endpoints together to decide where a model belongs. An embedding model serves the Embeddings endpoint, a decision model serves the Decision Models endpoint, and an llm model serves chat completions. One deployment holds models of every type, so the plain list alone will not tell you which model fits your call.

Models with Several Registrations

A model name sometimes stands for several registrations. This happens when you give models from different services the same alias, for example a local llama3 and a cloud gpt-4o both under smart, or when the node you call and another node in the mesh serve the same model. DeepFellow lists such a name once and routes each request to one of its registrations.

The owned_by field of the model object tells you who serves the name:

ValueMeaning
A service type, for example ollama, vllm, or openaiEvery registration comes from that service.
localEvery registration comes from a service that does not report its type.
mesh or mesh-ancestorEvery registration comes from another node in the mesh: a child node (mesh) or a parent node (mesh-ancestor).
mixedThe registrations have different owners, for example two different services, or the node you call and another node in the mesh.

owned_by carries the same value with and without additional_data=true, so an OpenAI client library also receives mixed.

To see every registration behind a name, read props.registrations in the extended data. It holds one entry per registration:

{
    "id": "smart",
    "object": "model",
    "created": 1763452800,
    "owned_by": "mixed",
    "props": {
        "private": false,
        "type": "llm",
        "endpoints": [
            "/v1/completions",
            "/v1/chat/completions",
            "/v1/responses",
            "/v1/messages",
            "/api/chat"
        ],
        "context_window": 128000,
        "max_context_window": 128000,
        "prefix": null,
        "transport": null,
        "tools": [],
        "registrations": [
            {
                "owned_by": "ollama",
                "type": "llm",
                "origin": "local"
            },
            {
                "owned_by": "openai",
                "type": "llm-v1-v2-v3",
                "origin": "local"
            }
        ]
    },
    "usage": 0,
    "capacity": null
}

Each entry has these fields:

FieldTypeDescription
owned_bystringThe owner of this registration, with the same values as the model's owned_by except mixed.
typestringThe type of this registration. For an llm registration that serves only some of the chat endpoints, the type lists them, for example llm-v1-v2-v3.
originstringlocal for a registration on the DeepFellow Infra node itself, cloud providers included, or mesh for a registration from another node. The addresses of other nodes never appear in the response.

A chat registration that serves only some of the chat endpoints lists them as suffixes in its type: v1 stands for /v1/completions, v2 for /v1/chat/completions, v3 for /v1/responses, ant for /v1/messages, and ollama for /api/chat. A plain llm type serves all five.

Two registrations of the same service, for example two instances of one cloud provider, appear as two entries.

The order of registrations and the summary fields in props do not depend on the order in which the registrations came up, so a restart does not change them:

  • type is the alphabetically first type of all registrations. For chat models, llm comes before any llm-... type, and endpoints lists the endpoints of every registration.
  • prefix, transport, and tools come from the first registration that has them. A registration on the DeepFellow Infra node comes before a registration from another node.
  • context_window and max_context_window hold the largest value among all registrations. A request that DeepFellow routes to a registration with a smaller window runs with that smaller window.

The order of registrations affects only what the endpoint reports. It does not decide which registration serves a request.

Model Load

The usage and capacity fields sit next to props, not inside it. They show how loaded a model is:

FieldTypeDescription
usageinteger | nullThe number of requests the model is handling right now. It is a current load, not a historical counter.
capacityinteger | nullThe total number of requests the model handles at once. It is null when any instance of the model has no limit or an unknown limit.

One model can run on several instances. DeepFellow sums usage across all of them and sums capacity across their finite limits.

usage is live for models that run on the node you call and nearly live for models that come from a child node. For a registration that comes from a parent node (its owned_by is mesh-ancestor), usage holds only the value reported when the model was registered, because usage updates travel upward in the mesh and never come back down.

Compare usage with capacity to see how much room a model has left. If capacity is null, no limit applies, so the comparison does not apply.

Both fields require a DeepFellow Infra version that reports model load. With an older Infra, both are null. A request without additional_data=true never returns them.

Project Permissions

The list returns only the models the authorizing project reaches. A project restricts access through three settings, described in Authorization:

  • models limits the regular models the project reaches.
  • mcp_prefixes limits the MCP servers the project reaches.
  • custom_endpoints limits the custom endpoints the project reaches.

A setting of all places no restriction. When a setting holds a list instead, the endpoint filters the response down to that list, so two projects on one deployment will see two different sets of models.

Retrieving a single model follows the same rule. A model the project does not reach returns 404, exactly as a model that does not exist.

API Reference

For the full request and response schemas, see the API reference:

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.

On this page