Providers & Models
Apis AI talks to local and external LLMs through a unified provider model. Everything is managed in the Settings, then Providers & Models tab.
Provider Types
Every provider has a type that determines the request format:
| Type | Fits |
|---|---|
| OpenAI-compatible | Ollama (local), OpenRouter, DeepSeek, Puter, Groq and other OpenAI-compatible APIs. |
| Anthropic (Claude) | The Anthropic Messages API (Claude models). |
| Google Gemini | Google's Gemini API. |
Predefined providers set the matching type automatically – for a custom provider you choose it yourself.
Creating a Provider
- Choose a provider – in the Add provider area, select either a predefined provider or Custom provider.
- Enter the Base URL – the endpoint URL (e.g.
http://localhost:11434/v1for Ollama orhttps://api.deepseek.com). - Add an API key – often not needed for local models, required for cloud providers.
- Add – the provider appears as a card and loads its model list.
The Fields in Detail
| Field | Meaning |
|---|---|
| Name | Free-form label for the provider in the interface. |
| Provider / Type | Predefined provider or custom provider; determines the request format. |
| Base URL | Base address of the API. Enter without a trailing slash. |
| API Key | Access key for the provider. Stored locally. |
| Context Window | Maximum token count of the model. Use Detect to determine it automatically. |
| Model | The model currently selected for this provider. |
Via Advanced settings you reach additional options such as the max tokens field and the thinking toggle.
Models, Favorites & Tool Support
- Model list – filterable by search. For long lists a search field with a scrollable selection appears.
- Favorites – mark frequently used models with the star; they appear at the top.
- Tool-call support – models without tool-call support are marked accordingly. Such models are not suitable for MCP or file tools.
- Tool selection per model – when a model's context window is too small for all tool definitions, switch off individual MCP servers and tool groups for exactly this model – see Settings, Tool Selection per Model.
- Detect context window – queries the appropriate token limit from the provider.
Where the Model List Comes From
Apis AI does not ship a fixed model catalog. For OpenAI-compatible providers (DeepSeek, OpenRouter, Ollama, Groq, …) and for Gemini, the app fetches the list live from the provider's /models endpoint whenever the provider loads. Claude uses a built-in list. The selection therefore shows exactly what the provider's API reports.
deepseek-flash and
deepseek-v4-pro. That is why the DeepSeek provider lists exactly two entries –
it is not a filter inside Apis AI.
Manual models (local providers only). For local providers (e.g. Ollama or your own local endpoint) you can enter models yourself under Manual models. That list then replaces the API list – it does not add to it; clear the field to show the provider's own list again. For cloud providers such as DeepSeek this field is not shown, so their selection stays exactly the API list.
Where the Context Window Comes From
The context window decides when Apis AI folds old messages into a summary: once the conversation reaches 75 % of the usable window (window minus the space reserved for the answer), it compresses. A window that is too small therefore makes the app compress far too early – even though the model could hold much more.
Wherever possible the number is read automatically from the same /models
response, once per provider and model. Providers name the field differently, so Apis AI
tries them in this order until one is present:
context_length (OpenRouter), context_window (DeepSeek),
max_context_length, max_model_len (vLLM). Ollama and local
llama.cpp servers are asked through their own endpoints.
- Provider publishes no window – the value from the provider settings stays in effect. You can set it by hand and press Detect context window again afterwards.
- Symptom "compresses constantly" – the stored window is smaller than the real one. Check the Context window field for that provider; for DeepSeek V4 both models currently allow 1,000,000 tokens.
- Too large a value is caught, not fatal: if a request really does not fit, the provider's overflow error triggers a single compression instead of the answer failing.
deepseek-v4-flash), Apis AI rewrites the stored name to the current one when
the settings are loaded. Without that, the model would be missing from the list and its
capabilities – including the context window – could not be looked up.
Local Llama Server
If an OpenAI-compatible provider points at a local llama.cpp server (a base URL on
localhost:8080, for example http://localhost:8080/v1), Apis AI
starts that server for you as soon as the model list is loaded and nothing answers yet.
It uses the llama / llama-server binary from your
PATH together with the model you configured.
Apis AI stops the server again when you close the app – but only the one it started itself. That way a local model cannot keep your graphics card's memory occupied after Apis AI has been closed. A server that you started yourself, or one that was already running, is left untouched.
The selected model is really loaded, the server restarts when you switch models, and you can give each model its own server arguments (flags) and presets. Details are on the dedicated page Local Llama Server.
Default Provider & Model
Under Default provider & model you define what new chats and workflow steps start with. The default is also shown in the sidebar. In individual chats and workflow nodes you can deviate at any time.
Thinking & Max Tokens Field
Thinking (Extended Thinking)
The thinking toggle makes the model "think" before answering. It is configurable per provider and can be overridden per conversation via the Thinking row in the chat's "+" menu. The provider value serves as the default; the conversation value takes precedence.
Max Tokens Field
Determines how the maximum output length is transmitted to the model. The Automatic setting detects the appropriate field itself – that is the right choice for most providers.