Skip to content

Integrations

Integrations

What any OpenAI-compatible tool needs to work with AI Tokens: the base URL, a key and a model id. Which model to pick, the context window to set, and what the API does not do.

Last updated: 2026-11-03

A tool that speaks OpenAI's chat completions API works with AI Tokens. It needs three values:

Setting Value
Base URL https://api.aitokens.ch/v1
API key a key from the dashboard, starting with sk-at-
Model a model id from the catalogue, written as it is there: mistral-medium-3.5-128b, not Mistral Medium 3.5

Tools give the base URL different names: Base URL, API Base, api_url, baseURL, OPENAI_API_BASE. The value is the same everywhere, and it ends in /v1, without /chat/completions.

Where a tool asks for a provider type, choose OpenAI Compatible. Where it offers only OpenAI, choose it and change the base URL.

Tested, or from the documentation

Every page says which of the two it is.

  • Tested: we ran the example on the live API on the date given, with the version of the tool named on the page, and the page shows what came back.
  • From the documentation: the settings come from the tool's own documentation, read on the date given. We did not run the tool. If a setting does not work as written, tell us at info@daikolab.ch.
Tool What it is Status
Cline coding agent for VS Code from the documentation
Continue coding assistant for VS Code and JetBrains from the documentation
Roo Code coding agent for VS Code from the documentation
Kilo Code coding agent for VS Code and the terminal from the documentation
OpenCode coding agent for the terminal from the documentation
Aider coding assistant for the terminal tested
Zed code editor with an agent from the documentation
Open WebUI chat interface you host yourself from the documentation
n8n workflow automation from the documentation
LangChain Python framework tested
LlamaIndex Python framework tested
LiteLLM Python SDK and proxy SDK tested, proxy from the documentation
Vercel AI SDK TypeScript framework tested
OpenAI Agents SDK Python framework for agents tested

Which model

The catalogue lists the models AI Tokens serves today, with their prices and the country where each one runs. This table adds what a tool needs to be told, as we served it on 3 November 2026.

Model Context window Tools Images Reasoning Pick it for
mistral-medium-3.5-128b 262,144 yes yes no code and long tasks
gemma-4-26b 262,144 yes yes no photos of documents, scans, structured data
ministral-3-14b 262,144 yes yes no short answers, classification, the background tasks of chat apps

Tools: we sent each model a request with a tool, with the OpenAI SDK, and it returned the call in OpenAI's shape. A coding agent needs a model with tools.

Context window. Set it in the tool to the number in this table. A tool that does not know it assumes its own default, and may send a conversation longer than the model can read.

Maximum output. Set it to 32,768 tokens or less. The API refuses a larger max_tokens with 422.

Reasoning

The models with an entry in the Reasoning column reason before they answer. The reasoning is not returned: tools that show a model's thinking show nothing for them. It is counted in usage.completion_tokens, billed as output, and it counts against max_tokens. With a low cap the answer comes back cut or empty, with finish_reason: "length".

More in Every parameter.

auto

With "model": "auto", the API chooses the model for each request: today gemma-4-26b for routine work, and mistral-small-4-119b for work that needs reasoning or a long input. It suits chat interfaces and workflows, such as Open WebUI and n8n. Where a tool asks for the context window of auto, give it 262,144, the smaller of the two.

For coding agents, name a model. auto keeps a task on the model it started with, so that the agent does not change model halfway through. A task that started on gemma-4-26b stays within that model's window, even when the files the agent reads grow past it.

What the API does not do

  • Anthropic's Messages API. /v1/messages answers 404 with unknown_endpoint. Tools that speak only Anthropic's format, such as Claude Code, cannot connect directly.
  • Fill-in-the-middle. /v1/completions passes the prompt to the model as written, but refuses suffix. Tab completion built on fill-in-the-middle does not work here: Continue's autocomplete, Zed's edit predictions. Chat, edits and agents do.
  • Streaming on the Responses API. /v1/responses answers 501 to stream: true. Tools that stream and can use either API have to use chat completions; the pages of n8n and the OpenAI Agents SDK show the setting.
  • Parameters it does not know. A field that is not in Every parameter gets a 400 that names it. Some tools send fields of other engines when you fill in their settings, such as top_k, min_p or prompt_cache_key. Leave those settings empty. repetition_penalty is accepted.
  • Embeddings from other models. /v1/embeddings always answers with bge-m3: 1,024 dimensions, at most 32 texts per request. See Embeddings.

/v1/models lists every model AI Tokens serves, and some of them do not chat: bge-m3, bge-reranker-v2-m3, whisper-1, whisper-1-hd, tts-1, and the picture and video models. When a tool fills its model menu from that list, choose a chat model.

Headers

A tool needs no extra header: AI Tokens has one tier, with the same limits for every key. The zone where a request ran comes back in the X-Zona header of the answer.

Search the docs

Type to search…