VS Code
Use Tokener.ai models in VS Code through the Custom Endpoint provider.
VS Code can use Tokener.ai models in Chat through its Custom Endpoint provider. Requests use your Tokener.ai API key and bill against your organization's credits like other model API traffic.
Configure
- Create a key in API keys.
- Run
Chat: Manage Language Modelsfrom the Command Palette. - Select Add Models, then Custom Endpoint.
- Use
Tokener.aias the group name, enter the API key, and select Chat Completions. - VS Code opens
chatLanguageModels.json. Keep the secret-backedapiKeyreference that VS Code created and configure the provider as follows:
JSON
[
{
"name": "Tokener.ai",
"vendor": "customendpoint",
"apiKey": "${input:tokenerApiKey}",
"apiType": "chat-completions",
"models": [
{
"id": "deepseek-v4-flash",
"name": "deepseek-v4-flash",
"url": "https://api.tokener.dev/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 900000,
"maxOutputTokens": 16000
},
{
"id": "deepseek-v4-pro",
"name": "deepseek-v4-pro",
"url": "https://api.tokener.dev/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 900000,
"maxOutputTokens": 16000
},
{
"id": "glm-5.2",
"name": "glm-5.2",
"url": "https://api.tokener.dev/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 900000,
"maxOutputTokens": 16000
},
{
"id": "gpt-5.6-luna",
"name": "gpt-5.6-luna",
"url": "https://api.tokener.dev/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 900000,
"maxOutputTokens": 16000
},
{
"id": "gpt-5.6-sol",
"name": "gpt-5.6-sol",
"url": "https://api.tokener.dev/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 900000,
"maxOutputTokens": 16000
},
{
"id": "gpt-5.6-terra",
"name": "gpt-5.6-terra",
"url": "https://api.tokener.dev/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 900000,
"maxOutputTokens": 16000,
"modelOptions": {
"reasoning_effort": "none"
}
},
{
"id": "kimi-k3",
"name": "kimi-k3",
"url": "https://api.tokener.dev/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 900000,
"maxOutputTokens": 16000,
"modelOptions": {
"temperature": 1,
"top_p": 0.95
}
}
]
}
]The example lists the models available when this page was updated. It uses a conservative 900k input and 16k output client budget within the published 1M-class context. The Models catalog is the source of truth for current model ids and context windows. Do not store or commit a plaintext API key in this file.
Select and verify
Save the file, open Chat, and select a model from the model picker. Ask a short question first, then use Agent mode for a tool-calling check.
- If the picker only shows Auto, trust the workspace and leave Restricted Mode.
- If the models do not appear after saving, restart VS Code.
- For Agent Host sessions in the Agents window, enable
chat.agentHost.byokModels.enabledand restart the Agent Host process. - Do not force
tool_choicetorequiredfor DeepSeek thinking models. VS Code's default automatic tool selection is compatible.