🧩 Model Capabilities & Bring-Your-Own-Key Clients

A client that lets you add your own endpoint (VS Code’s custom endpoint, the pi agent, Cline and others) asks, per model: does it call tools, does it take images, can it think, and how long is its context. GET /v1/models answers these for every model, so you can copy the values instead of guessing them.

📘 Related pages: OpenAI API + Examples · Tool Calling · Reasoning, Tool Calls & Streaming · Request Parameters & Long Prompts


What the listing returns

curl http://127.0.0.1:52625/v1/models

Each entry keeps the OpenAI fields (id, object, created, owned_by) and the two fields that say where the model runs (backend, device), and adds:

{
  "id": "qwen3.5:4b",
  "object": "model",
  "created": 1795270650,
  "owned_by": "FastFlowLM",
  "backend": "flm",
  "device": "npu",
  "capabilities": ["completion", "tools", "vision", "thinking"],
  "context_length": 32768,
  "architecture": {
    "input_modalities": ["text", "image"],
    "output_modalities": ["text"]
  },
  "supported_parameters": ["tools", "tool_choice", "reasoning"]
}
Field Meaning
capabilities What the model is for. completion comes first for every chat model. The other words: tools (the model is shown the tools a request offers), vision (takes images), audio (takes audio), thinking (can reason before it answers), embedding.
context_length The context, in tokens, that the server asks for when it loads this model: the value of --ctx-len when the server was started with it, otherwise the model’s default. A single-turn model (a dedicated translation model, for example) always keeps its own. Present for chat models.
architecture.input_modalities text, plus image and audio when the model takes them. A transcription-only model lists audio alone and has no completion.
architecture.output_modalities text for a chat model, embeddings for an embedding model.
supported_parameters The capabilities again, in the names OpenRouter’s model list uses: tools and tool_choice for a model with tools, reasoning for a model with thinking. An empty list for a model with neither. To switch thinking in a request, send think or reasoning_effort (see Reasoning, Tool Calls & Streaming); FLM does not read a reasoning object.

The capability words are the ones Ollama uses; context_length, architecture and supported_parameters are the names OpenRouter uses for an OpenAI-style model list. All of them are read from one record per model, so they never disagree with each other.

FLM reports no output limit, because it enforces none. A request without max_tokens gets 4,096 tokens.


Copy the values into a client

You need Read it from
Does the model call tools? tools is in capabilities
Does the model take images? image is in architecture.input_modalities
Can the model think? thinking is in capabilities
Context length context_length

VS Code: custom OpenAI-compatible endpoint

VS Code property Value
toolCalling true when capabilities has tools
vision true when input_modalities has image
thinking true when capabilities has thinking
maxInputTokens context_length minus the room you leave for the answer
maxOutputTokens The largest answer you want, for example 4096. Keep maxInputTokens + maxOutputTokens at or below context_length.

VS Code does not show a model in its model picker for agent use unless toolCalling is true, so pick a model that lists tools.

pi: models.json

pi property Value
input ["text", "image"] when input_modalities has image, otherwise ["text"]
contextWindow context_length
maxTokens The largest answer you want, for example 4096

Notes

  • Do not use a model that does not list tools for an agent: FLM lists tools only for models whose prompt shows them the tools a request offers.
  • context_length changes with --ctx-len. If you restart the server with another value, read the listing again.
  • A --ctx-len above what a model’s engine can hold is not honored: the model is loaded with less, or is refused. Keep --ctx-len at or below the model’s default unless you know the model takes more.
  • context_length is the value the server asks for, not a measured limit. Some engines cap their context lower themselves (for example qwen3.8-mtp and the oga-hipep models), so for those the listing can report more than the model actually holds. For such a model, set --ctx-len to the model’s own limit if you rely on the number.
  • The listing describes the models this build and this machine can run. A model that needs a backend your build does not have is not listed.
  • thinking says that the model reasons before it answers, not that you can switch the reasoning off. Some models always think (deepseek-r1:8b, for example) and ignore think.
  • The built-in embedding model (embed-gemma:300m) and whisper-v3:turbo are not in this listing; you call them through /v1/embeddings and /v1/audio/transcriptions. An embedding model that an extension adds is listed.