Integraties
Koppel je AI-codeagent
Tokonomix biedt een OpenAI-compatibel endpoint én een MCP-server, zodat elke grote codeagent met één config-aanpassing verbinding kan maken. Gebruik single-model calls voor snelheid — of stel model: "tokonomix-consensus" in op kritieke calls voor een cross-family oordeel.
https://tokonomix.ai/api/v1https://tokonomix.ai/api/anthropicnpx tokonomix-mcpWaarom Tokonomix
Routing is een basisfunctie. Consensus is het verschil.
Elke router stuurt een prompt door naar een model. Tokonomix voegt een cross-family raad toe: drie proposer-modellen uit verschillende families beantwoorden onafhankelijk, waarna een judge de antwoorden synthetiseert en meningsverschillen markeert. Blind-spot-detectie pikt op wat elk afzonderlijk model mist.
model: "tokonomix-consensus"— stel dit eenmalig per call in om de volledige raad te activerenModelselectie
Welk model en endpoint moet mijn agent gebruiken?
Kies op basis van wat je agent doet en wissel het model id op elk moment — elk model in de catalogus werkt via dezelfde sleutel.
| Wat je agent doet | Gebruik dit |
|---|---|
| Bewerkt bestanden / roept tools aan en streamt antwoorden (de meeste coding agents) | Een Anthropic-model via het Anthropic-endpoint (tools + streaming werken allebei) |
| Roept tools aan maar heeft geen streaming nodig (elk model) | Het OpenAI-compatibele endpoint met één model id |
| Wil tools én streaming op een niet-Anthropic-model | Gebruik voorlopig non-streaming — streaming tool-calls voor andere providers is nog niet beschikbaar |
| Gewone chat, geen tools | Elk endpoint; streaming is prima |
| Wil een cross-model verdict (consensus) op een antwoord met hoge inzet | Stel model in op tokonomix-consensus op het OpenAI-compatibele endpoint — let op: consensus weigert tool-aanvragen (geen tool-calling) |
Endpoint & API-referentie (technisch)
anthropic-messages → https://tokonomix.ai/api/anthropic — tools ✓, streaming ✓ (gebruik een Anthropic-model). openai-completions → https://tokonomix.ai/api/v1 — tools ✓ (single-model passthrough), streaming met tools nog niet beschikbaar. Gewone chat: streaming werkt op beide. Consensus: openai-completions, model tokonomix-consensus, geen tools. Wissel het model id naar een willekeurige slug die GET /api/v1/models teruggeeft.
Claude Code
CLIAnthropic's officiële CLI-coderingsagent voor de terminal.
# Option A — Anthropic wire-format passthrough
export ANTHROPIC_BASE_URL=https://tokonomix.ai/api/anthropic
export ANTHROPIC_API_KEY=tok-your-key
claude
# Option B — add the MCP server for consensus tools
claude mcp add tokonomix -- npx -y tokonomix-mcp \
--api-key tok-your-keyConsensustip
MCP-tools bevatten tokonomix_consensus_ask — roep dit aan bij elke riskante refactor of ontwerpbeslissing voor een cross-family oordeel.
Aider
CLITerminal pair-programmer die bestanden bewerkt en commits voor je uitvoert.
export OPENAI_API_BASE=https://tokonomix.ai/api/v1
export OPENAI_API_KEY=tok-your-key
# Route any call through consensus
aider --model openai/tokonomix-consensus
# Or target a specific model
aider --model openai/anthropic/claude-sonnet-4-6Consensustip
Stel --model openai/tokonomix-consensus in voor architectuurdiscussies; gebruik een enkel model voor grootschalige regelaanpassingen.
Autonome VS Code-agent — leest, bewerkt, voert terminals uit.
# Cline → Settings (gear icon) → API Provider: "OpenAI Compatible"
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model ID : anthropic/claude-sonnet-4-6
# Opt-in: consensus for planning/review (no tool-calling)
# Model ID : tokonomix-consensus
# or any slug from GET /api/v1/modelsConsensustip
Stel modelId in op tokonomix-consensus voor Cline's "Architect"-modustaken; schakel over naar een direct model-slug voor snelle inline bewerkingen.
Autonome fork van Cline met extra workflowmodi (Architect, Debug, Ask).
// Roo Code Settings → API Provider: "OpenAI Compatible"
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model ID : anthropic/claude-sonnet-4-6
// Opt-in: consensus for planning/review (no tool-calling)
// Model ID : tokonomix-consensusConsensustip
Gebruik een directe model-slug voor Roo's tool-calling-modi (Code, Debug); schakel over naar tokonomix-consensus als opt-in voor Architect-planningsstappen zonder tool calls.
Continue.dev
IDE extensionVS Code / JetBrains coding-assistent met chat, autocomplete en context.
# ~/.continue/config.yaml
models:
- name: Tokonomix Consensus
provider: openai
model: tokonomix-consensus
apiBase: https://tokonomix.ai/api/v1
apiKey: tok-your-key
- name: Tokonomix (Claude direct)
provider: openai
model: anthropic/claude-sonnet-4-6
apiBase: https://tokonomix.ai/api/v1
apiKey: tok-your-keyConsensustip
Voeg beide vermeldingen toe — gebruik consensus in Continue's chat voor kritieke reviews, het directe model voor autocomplete (lagere latentie).
Cursor
IDEAI-native fork van VS Code met Composer-agent en inline bewerkingen.
// Cursor Settings → Models → Override OpenAI Base URL
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model : tokonomix-consensus
// Note: base-URL override applies to Cursor Chat (Cmd+L) only.
// Composer / inline-edit / autocomplete use Cursor's own backend.Consensustip
Cursor Chat met model=tokonomix-consensus geeft je consensus voor ontwerpgesprekken; Composer blijft Cursor's eigen routing gebruiken.
Block's open-source autonome agent — installeert, voert uit, test.
# host + key via environment (NOT config.yaml)
export OPENAI_HOST=https://tokonomix.ai/api/v1
export OPENAI_API_KEY=tok-your-key
# ~/.config/goose/config.yaml
GOOSE_PROVIDER: openai
GOOSE_MODEL: anthropic/claude-sonnet-4-6
# Opt-in: consensus for planning/review (no tool-calling)
# GOOSE_MODEL: tokonomix-consensusConsensustip
Goose voert lange autonome sessies uit met tool calls — stel het standaardmodel in op een directe slug. Gebruik tokonomix-consensus als opt-in voor puur planningsstappen zonder tool calls.
Open-source software-ontwikkelagent (voorheen OpenDevin) — autonome PR-auteur.
# docker run / .env
LLM_BASE_URL=https://tokonomix.ai/api/v1
LLM_API_KEY=tok-your-key
LLM_MODEL=openai/anthropic/claude-sonnet-4-6
# Opt-in: consensus for planning/review (no tool-calling)
# LLM_MODEL=openai/tokonomix-consensus
# Or via UI: Settings → LLM → Advanced Settings
# Base URL : https://tokonomix.ai/api/v1
# Model : openai/anthropic/claude-sonnet-4-6Consensustip
OpenHands stuurt volledige feature branches aan met tool calls — stel het standaardmodel in op een directe slug. Gebruik tokonomix-consensus als opt-in voor planning/architectuurstappen zonder tool calls.
Zed
IDESnelle Rust-gebaseerde editor met native AI-paneel en multi-buffer-agent.
// ~/.config/zed/settings.json
{
"language_models": {
"openai_compatible": {
"api_url": "https://tokonomix.ai/api/v1",
"available_models": [
{
"name": "tokonomix-consensus",
"display_name": "Tokonomix Consensus",
"max_tokens": 128000
}
]
}
}
}Consensustip
Gebruik tokonomix-consensus in Zed's AI-paneel voor multi-bestand architectuurvragen; schakel over naar een direct model voor aanvullingen.
Kilo Code
VS Code extensionVS Code-agent gericht op volledige taakafronding met contextbeheer.
// Kilo Code Settings → Providers → + Custom Provider
Provider ID : tokonomix
Display Name : Tokonomix
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model : tokonomix-consensusConsensustip
Kilo haalt de modellijst automatisch op van het endpoint — kies tokonomix-consensus voor Kilo's planningsstappen.
Codeium's AI-native IDE met Cascade flow-agent.
// Windsurf MCP config (via Extension settings or mcp.json)
{
"mcpServers": {
"tokonomix": {
"command": "npx",
"args": ["-y", "tokonomix-mcp"],
"env": {
"TOKONOMIX_API_KEY": "tok-your-key"
}
}
}
}Consensustip
Windsurf's base-URL-override is beperkt tot BYOK Anthropic; gebruik in plaats daarvan de MCP-server om consensustools binnen Cascade te krijgen.
OpenClaw
CLI + VS CodePrivacy-first open-source agent met beveiligde netwerk-fetchpaden.
// openclaw.json
{
"agents": { "defaults": { "model": { "primary": "tokonomix/tokonomix-consensus" } } },
"models": {
"providers": {
"tokonomix": {
"baseUrl": "https://tokonomix.ai/api/v1",
"apiKey": "${TOKONOMIX_API_KEY}",
"api": "openai-completions",
"models": [{ "id": "tokonomix-consensus", "name": "Tokonomix Consensus" }]
}
}
}
}Consensustip
OpenClaw's vertrouwensmodel sluit aan bij Tokonomix's filosofie: jij beheert het netwerkpad; stel tokonomix-consensus in als standaard voor elke plantaak.
claude-code-router
CLI proxyProxy-laag die Claude Code-verzoeken op basis van kosten/capaciteit naar elke backend routeert.
// ~/.claude-code-router/config.json
{
"Providers": [
{
"name": "tokonomix",
"api_base_url": "https://tokonomix.ai/api/v1/chat/completions",
"api_key": "tok-your-key",
"models": ["tokonomix-consensus", "anthropic/claude-sonnet-4-6"]
}
],
"Router": {
"default": "tokonomix,tokonomix-consensus"
}
}Consensustip
claude-code-router kan specifieke Claude model-ID's mappen naar tokonomix-consensus voor complexe aanroepen en een goedkoper direct model voor boilerplate.
Void
IDEOpen-source VS Code-fork — direct-to-provider, zero relay-architectuur.
// Void Settings → AI → Provider → OpenAI Compatible
API Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model : tokonomix-consensus
// Note: Void 2026 development is officially paused.
// Last release still works; configuration above applies.Consensustip
Void's zero-relay-architectuur betekent dat je Tokonomix-sleutel rechtstreeks naar het endpoint gaat — geen logging door derden tussen je prompt en de consensus-engine.
Tabby
Self-hosted serverSelf-hosted coding-assistent met codecompletering en chat.
# config.toml (Tabby server)
[model.chat.http]
kind = "openai/chat"
api_endpoint = "https://tokonomix.ai/api/v1"
api_key = "tok-your-key"
model_name = "tokonomix-consensus"Consensustip
Tabby bedient een heel team vanuit één server — het routeren van het chatmodel naar tokonomix-consensus geeft elke ontwikkelaar op de instantie een consensus-ondersteund antwoord.
Alibaba's open-source AI-codereviewer (CLI `ocr`) — diff-verankerde bevindingen.
# Tool-call passthrough needs the Anthropic-compatible endpoint;
# the OpenAI-compat /api/v1 path is consensus-only and strips tool-calls.
ocr config set llm.url https://tokonomix.ai/api/anthropic/v1/messages
ocr config set llm.auth_token tok-your-key
ocr config set llm.model anthropic/claude-sonnet-4-6
ocr config set llm.use_anthropic true
ocr review --from origin/main --to HEAD --format jsonConsensustip
Voor een multi-model review geeft de native tokonomix-consensus-review-slug (in ontwikkeling) diff-verankerde bevindingen als JSON via de consensus-pijplijn — geen client-side tool-calling nodig.
Qwen Code
CLIAgentische coding CLI (Gemini-CLI-fork) die het OpenAI-protocol spreekt.
// ~/.qwen/settings.json
{
"modelProviders": {
"openai": [
{ "id": "tokonomix-consensus", "name": "Tokonomix Consensus",
"baseUrl": "https://tokonomix.ai/api/v1", "envKey": "TOKONOMIX_API_KEY" }
]
},
"model": { "name": "tokonomix-consensus" }
}Consensustip
Stel model.name in op tokonomix-consensus voor zware redeneerrondes; schakel over naar een snel slug voor bewerkingen met hoog volume.
LibreChat
Chat UISelf-hosted multi-model chat UI — voegt elke OpenAI-compatibele API toe als endpoint.
# librechat.yaml
endpoints:
custom:
- name: "Tokonomix"
apiKey: "${TOKONOMIX_API_KEY}"
baseURL: "https://tokonomix.ai/api/v1"
models:
default: ["tokonomix-consensus", "anthropic/claude-sonnet-4-6"]
fetch: trueConsensustip
Zet tokonomix-consensus in de endpoint-modellen zodat elke gebruiker op de instantie een consensus-ondersteund antwoord krijgt via de selector.
OpenAI's open-source terminal-coderingsagent — aangepaste modelproviders via config.toml.
# ~/.codex/config.toml
model = "anthropic/claude-sonnet-4-6"
model_provider = "tokonomix"
# Opt-in: consensus for planning/review (no tool-calling)
# model = "tokonomix-consensus"
[model_providers.tokonomix]
name = "Tokonomix"
base_url = "https://tokonomix.ai/api/v1"
env_key = "TOKONOMIX_API_KEY"
wire_api = "chat"Consensustip
Wijs het model naar tokonomix-consensus bij riskante refactors; gereserveerde ID's (openai/ollama/lmstudio) zijn niet herbruikbaar, geef de provider een andere naam zoals tokonomix.
opencode
CLIOpen-source terminal coding agent (SST) — provider-agnostisch via de AI SDK.
// opencode.json
{
"provider": {
"tokonomix": {
"npm": "@ai-sdk/openai-compatible",
"name": "Tokonomix",
"options": {
"baseURL": "https://tokonomix.ai/api/v1",
"apiKey": "{env:TOKONOMIX_API_KEY}"
},
"models": { "tokonomix-consensus": { "name": "Tokonomix Consensus" } }
}
}
}Consensustip
Selecteer tokonomix-consensus voor de zware redeneerrondes; een snelle directe slug houdt bewerkingen met hoog volume goedkoop.
Crush
CLICharm's glamoureuze terminal coding agent — model-agnostisch via crush.json.
// crush.json
{
"providers": {
"tokonomix": {
"type": "openai-compat",
"base_url": "https://tokonomix.ai/api/v1",
"api_key": "$TOKONOMIX_API_KEY",
"models": [
{ "id": "tokonomix-consensus", "name": "Tokonomix Consensus",
"context_window": 200000, "default_max_tokens": 8192 }
]
}
}
}Consensustip
Gebruik type openai-compat (niet openai) voor Tokonomix; wijs Crush naar tokonomix-consensus voor risicovolle wijzigingen.
bolt.diy
Web app builderOpen-source in-browser AI-appbouwer — OpenAILike-provider via env.
# .env.local
OPENAI_LIKE_API_BASE_URL=https://tokonomix.ai/api/v1
OPENAI_LIKE_API_KEY=tok-your-key
# UI: Provider → OpenAILike, Model → tokonomix-consensusConsensustip
Kies tokonomix-consensus uit de OpenAILike-modellenlijst bij het opzetten van architectuur; een snelle slug houdt iteratieve bewerkingen goedkoop.
Open WebUI
Chat UISelf-hosted ChatGPT-stijl interface — voegt elke OpenAI-compatible API toe als verbinding.
# Environment (docker run / compose)
OPENAI_API_BASE_URL=https://tokonomix.ai/api/v1
OPENAI_API_KEY=tok-your-key
# Or UI: Admin → Settings → Connections → OpenAI APIConsensustip
Voeg tokonomix-consensus toe aan de verbinding zodat elke gebruiker op de instantie een consensus-ondersteund antwoord krijgt via de modelkiezer.
AnythingLLM
Desktop + self-hostedAll-in-one AI-app (RAG + agents) — Generic OpenAI-provider wijst naar elk endpoint.
# LLM Preference → Generic OpenAI (or env)
GENERIC_OPEN_AI_BASE_PATH=https://tokonomix.ai/api/v1
GENERIC_OPEN_AI_MODEL_PREF=tokonomix-consensus
GENERIC_OPEN_AI_API_KEY=tok-your-key
GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT=200000Consensustip
Stel het model in op tokonomix-consensus voor antwoorden op hoge inzet over je geïndexeerde documenten; gebruik een snelle slug voor routinematige RAG-queries.
Hermes
OpenAI-compatible base URLConnect Nous Research's self-improving, self-hosted agent to 132 models behind one key — and add cross-family consensus to every autonomous run.
# See full guide at /integrations/hermesConsensustip
Natuurlijke-taal terminalagent die code uitvoert
interpreter \
--api_base "https://tokonomix.ai/api/v1" \
--api_key "tok_live_your-key" \
--model "openai/anthropic/claude-sonnet-4-6"
# Opt-in: consensus for planning/review (no tool-calling)
# --model "openai/tokonomix-consensus"
# or in Python:
from interpreter import interpreter
interpreter.llm.api_base = "https://tokonomix.ai/api/v1"
interpreter.llm.api_key = "tok_live_your-key"
interpreter.llm.model = "openai/anthropic/claude-sonnet-4-6"
interpreter.chat()Consensustip
Open Interpreter voert de code van het model uit — gebruik openai/tokonomix-consensus vóór alles wat onomkeerbaar is, en een directe slug voor routineopdrachten.
Terminalassistent die code en tools uitvoert
# ~/.config/gptme/config.toml
[[providers]]
name = "tokonomix"
base_url = "https://tokonomix.ai/api/v1"
api_key = "tok_live_your-key"
default_model = "anthropic/claude-sonnet-4-6"
# Opt-in: consensus for planning/review (no tool-calling)
# default_model = "tokonomix-consensus"
# then: gptme --model tokonomix/anthropic/claude-sonnet-4-6 "..."Consensustip
Stel tokonomix-consensus in als model voordat gptme een risicovolle stap uitvoert; gebruik een snelle directe slug voor routinematige shell- en bestandswerkzaamheden.
Neovim AI-chat en inline-bewerkingsplugin
require("codecompanion").setup({
adapters = {
http = {
tokonomix = function()
return require("codecompanion.adapters").extend("openai_compatible", {
env = {
url = "https://tokonomix.ai",
api_key = "tok_live_your-key",
chat_url = "/api/v1/chat/completions",
},
schema = { model = { default = "anthropic/claude-sonnet-4-6" } },
-- Opt-in: consensus for planning/review (no tool-calling)
-- schema = { model = { default = "tokonomix-consensus" } },
})
end,
},
},
})Consensustip
Gebruik tokonomix-consensus als vangnet voordat je een inline diff accepteert; een directe slug houdt alledaagse chats en bewerkingen snel.
Cursor-achtige AI-codeeroplugin voor Neovim
require("avante").setup({
provider = "tokonomix",
providers = {
tokonomix = {
__inherited_from = "openai",
endpoint = "https://tokonomix.ai/api/v1",
model = "anthropic/claude-sonnet-4-6",
-- Opt-in: consensus for planning/review (no tool-calling)
-- model = "tokonomix-consensus",
api_key_name = "TOKONOMIX_API_KEY",
},
},
})
-- export TOKONOMIX_API_KEY=tok_live_your-keyConsensustip
Wijs Avante naar tokonomix-consensus om een risicovolle agentische refactor te controleren voordat die wordt toegepast; gebruik een directe slug voor routinematige bewerkingen.
Mods
CLICharm CLI die shell-uitvoer door een LLM stuurt
# mods --settings -> apis: section
apis:
tokonomix:
base-url: https://tokonomix.ai/api/v1
api-key-env: TOKONOMIX_API_KEY
models:
tokonomix-consensus:
aliases: ["consensus"]
max-input-chars: 392000
# export TOKONOMIX_API_KEY=tok_live_your-key
# mods -m consensus "explain this" < file.goConsensustip
Gebruik tokonomix-consensus als alias om een gegenereerde opdracht te controleren voordat je die uitvoert; een snelle directe slug voor routinematig pipen.
Twinny
VS Code extensionVS Code-extensie voor code-aanvulling en chat
// Twinny -> Manage Providers -> add provider:
// Provider type: openai
// Hostname: tokonomix.ai
// Port: 443
// Protocol: https
// API Path: /api/v1/chat/completions
// API Key: tok_live_your-key
// Model Name: tokonomix-consensusConsensustip
Stel het model in op tokonomix-consensus voor een cross-model controle voordat je een chatsuggestie vertrouwt; een directe slug voor snelle aanvulling.
Simon Willison's command-line LLM client en bibliotheek.
# ~/.config/io.datasette.llm/extra-openai-models.yaml
- model_id: anthropic/claude-sonnet-4-6
model_name: anthropic/claude-sonnet-4-6
api_base: "https://tokonomix.ai/api/v1"
api_key_name: tokonomix
supports_tools: true
# Opt-in: consensus for planning/review (no tool-calling)
- model_id: tokonomix-consensus
model_name: tokonomix-consensus
api_base: "https://tokonomix.ai/api/v1"
api_key_name: tokonomix
# then: llm keys set tokonomix (paste tok-your-key)
# llm -m anthropic/claude-sonnet-4-6 "Explain quorum sensing"Consensustip
Wijs een model_id naar tokonomix-consensus voor complexe of agentische queries; voeg een tweede vermelding toe op een directe slug voor routinematige eenvoudige opdrachten.
Local-first desktop AI-assistent met externe endpoints.
# Jan -> Settings -> Model Providers -> + (OpenAI-compatible)
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
# Add Model -> id: anthropic/claude-sonnet-4-6
# then pick anthropic/claude-sonnet-4-6 in the model picker and chat
# Opt-in: consensus for planning/review (no tool-calling)
# Add Model -> id: tokonomix-consensusConsensustip
Geef het model de naam tokonomix-consensus voor risicovolle gesprekken; voeg een directe slug toe in de modelselectie voor snelle alledaagse vragen.
CodeGPT
VS Code extensionVS Code AI-codeerextensie met aangepaste providers.
# CodeGPT panel -> select model -> Provider: Custom
Model : tokonomix-consensus
API Key : tok-your-key
Endpoint : https://tokonomix.ai/api/v1
# Connect (BYOK; the Custom provider needs a Pro/Teams plan)Consensustip
Wijs de Custom provider naar tokonomix-consensus voor risicovolle antwoorden in de editor; schakel over naar een directe slug voor routinematige aanvullingen.
Alles-in-één Rust LLM CLI, shell en REPL.
# ~/.config/aichat/config.yaml
clients:
- type: openai-compatible
name: tokonomix
api_base: https://tokonomix.ai/api/v1
api_key: tok-your-key
models:
- name: anthropic/claude-sonnet-4-6
supports_function_calling: true
# Opt-in: consensus for planning/review (no tool-calling)
- name: tokonomix-consensus
# aichat -m tokonomix:anthropic/claude-sonnet-4-6 "refactor this"Consensustip
Selecteer tokonomix:tokonomix-consensus voor zware redeneerrondes; voeg een direct model toe aan de client voor bewerkingen met hoog volume.
gp.nvim
Neovim pluginNeovim AI-plugin voor chat en codebewerkingen.
require("gp").setup({
providers = {
tokonomix = {
endpoint = "https://tokonomix.ai/api/v1/chat/completions",
secret = os.getenv("TOKONOMIX_API_KEY"), -- tok-your-key
},
},
agents = {
{ provider = "tokonomix", name = "Tokonomix", chat = true, command = true,
model = { model = "tokonomix-consensus" } },
},
})Consensustip
Geef het agentmodel de naam tokonomix-consensus voor risicovolle prompts in de editor; definieer een tweede agent op een directe slug voor routinechat.
Model Context Protocol
Voeg consensus toe als tool, niet alleen als model
De MCP-server stelt tokonomix_consensus_ask beschikbaar als aanroepbare tool. Elke MCP-geschikte agent (Claude Code, Cursor, Cline, Windsurf, Zed) kan die mid-sessie aanroepen — zonder het basismodel te wijzigen.
// Any MCP-capable agent (Claude Code, Cursor, Cline, Windsurf…)
{
"mcpServers": {
"tokonomix": {
"command": "npx",
"args": ["-y", "tokonomix-mcp"],
"env": {
"TOKONOMIX_API_KEY": "tok-your-key"
}
}
}
}
// Available MCP tools:
// tokonomix_consensus_ask — multi-model consensus on any question
// tokonomix_get_balance — check remaining token balance
// tokonomix_list_models — enumerate available models
// tokonomix_single_ask — single-model call with full token accountingCross-family consensus
Drie proposer-modellen uit verschillende families beantwoorden onafhankelijk voordat een judge synthetiseert.
Judge-scoring
Een onafhankelijk judge-model beoordeelt en verzoent voorstellen, en markeert meningsverschillen expliciet.
Blind-spot-detectie
Pikt gevallen op waarbij alle proposers het eens zijn maar collectief fout zitten — de cross-family check die het single-model pad mist.
Volledige token-trace
Elke token, elk model, elke kostenpost — uitgesplitst per call in je dashboard.
Tool calling
Tool calling / Function calling
De gateway ondersteunt het OpenAI tool-calling protocol op single-model passthrough calls. Stuur een tools-array (JSON Schema functiedefinities) mee bij elk POST /api/v1/chat/completions-verzoek naar een model met de tools-capability. De respons volgt de standaard OpenAI-vorm met message.tool_calls[] en finish_reason: "tool_calls".
Tool calling vereist een directe provider/model-id-slug. Consensus-modus weigert tools — de synthesepipeline kan tool calls niet samenvoegen over proposers.
Streaming tool-deltas (stream: true) worden nog niet ondersteund. Laat stream weg of stel het in op false om tool_calls in de JSON-respons te ontvangen.
Voorbeeldverzoek
curl https://tokonomix.ai/api/v1/chat/completions \
-H "Authorization: Bearer tok-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4-6",
"messages": [
{"role": "user", "content": "What is the weather in Amsterdam?"}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a city",
"parameters": {
"type": "object",
"properties": {
"city": {"type": "string", "description": "City name"}
},
"required": ["city"]
}
}
}
],
"tool_choice": "auto"
}'Voorbeeldrespons (finish_reason: "tool_calls")
{
"id": "chatcmpl-...",
"object": "chat.completion",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": null,
"tool_calls": [{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{"city":"Amsterdam"}"
}
}]
},
"finish_reason": "tool_calls"
}]
}Vervolgstap: stuur het toolresultaat terug
curl https://tokonomix.ai/api/v1/chat/completions \
-H "Authorization: Bearer tok-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4-6",
"messages": [
{"role": "user", "content": "What is the weather in Amsterdam?"},
{
"role": "assistant",
"content": null,
"tool_calls": [{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{"city":"Amsterdam"}"
}
}]
},
{
"role": "tool",
"tool_call_id": "call_abc123",
"content": "{"temperature":"18°C","condition":"Partly cloudy"}"
}
]
}'Modellen met tool-capability vinden
Vraag de modelcatalogus op gefilterd op tools-capable modellen:
GET /api/v1/models?supports=tools
Authorization: Bearer tok-your-keyAPI-changelog
API-changelog
- — Tool calling live op de gateway (single-model passthrough, non-streaming).
Klaar om te verbinden?
Maak een gratis account aan, genereer een API-sleutel en plak die in een van de configs hierboven.