GitHub Copilot Chat
One key, every chat model on the list in Copilot's model picker, billed per token with no subscription. The chatLanguageModels.json block is below.
At the end you have an UplinkSwitch group in the GitHub Copilot Chat model picker in VS Code, with one API key from the console and any chat model on the list as an entry, Claude included. Each request bills per token to the balance behind that key, no subscription, and the live table below is what the models in the block cost today.
What you need
- VS Code with the GitHub Copilot Chat extension. A GitHub sign-in is not required for models you add this way (VS Code docs, read 2026-10-28).
- One key from the console, created for Copilot alone so its requests sit apart from any other tool on the Usage page.
- The base URL:
https://api.uplinkswitch.com/v1. The config below uses the full chat endpoint under it.
Where the settings are
Open the model picker in the Chat view and select Manage Language Models (the gear icon), or run Chat: Manage Language Models from the Command Palette. Select Add Models, then Custom Endpoint. VS Code asks for a group name (the label in the picker), a display name, the API key and the API type, then opens chatLanguageModels.json for the model details.
Custom Endpoint replaced the earlier OpenAI Compatible provider and the github.copilot.chat.customOAIModels setting, which the docs mark deprecated. Source: https://code.visualstudio.com/docs/copilot/customization/language-models, read 2026-10-28.
Steps
- Add Models → Custom Endpoint.
- Group name:
UplinkSwitch. - Display name: any; API key: your key from the console. The file references it as an
${input:...}variable, the form the docs use. - API type: Chat Completions.
- Replace the contents of
chatLanguageModels.jsonwith the block below and save. Restart VS Code if the group does not appear in the picker.
The chatLanguageModels.json block
One provider, the models you want as entries. Context window and maximum output come from the live catalog, so the block matches each model page today; VS Code derives maxInputTokens from contextWindow minus maxOutputTokens. Any other chat id on the Models page works as a further entry with the same url.
[
{
"name": "UplinkSwitch",
"vendor": "customendpoint",
"apiKey": "${input:uplinkswitchApiKey}",
"apiType": "chat-completions",
"models": [
{
"id": "claude-sonnet-5-5",
"name": "Claude Sonnet 5.5",
"url": "https://api.uplinkswitch.com/v1/chat/completions",
"toolCalling": true,
"vision": true,
"contextWindow": 1000000,
"maxOutputTokens": 128000
},
{
"id": "claude-opus-5-5",
"name": "Claude Opus 5.5",
"url": "https://api.uplinkswitch.com/v1/chat/completions",
"toolCalling": true,
"vision": true,
"contextWindow": 1000000,
"maxOutputTokens": 128000
},
{
"id": "gpt-6.1-sol",
"name": "GPT-6.1 Sol",
"url": "https://api.uplinkswitch.com/v1/chat/completions",
"toolCalling": true,
"vision": true,
"contextWindow": 1050000,
"maxOutputTokens": 128000
},
{
"id": "gemini-3.1-pro-preview",
"name": "Gemini 3.1 Pro Preview",
"url": "https://api.uplinkswitch.com/v1/chat/completions",
"toolCalling": true,
"vision": true,
"contextWindow": 1048576,
"maxOutputTokens": 65536
},
{
"id": "deepseek-v4-pro-0813",
"name": "DeepSeek V4 Pro 0813",
"url": "https://api.uplinkswitch.com/v1/chat/completions",
"toolCalling": true,
"vision": false,
"contextWindow": 1048576,
"maxOutputTokens": 393216
},
{
"id": "kimi-k3",
"name": "Kimi K3",
"url": "https://api.uplinkswitch.com/v1/chat/completions",
"toolCalling": true,
"vision": true,
"contextWindow": 1048576,
"maxOutputTokens": 1048576
}
]
}
]apiKey as ${input:uplinkswitchApiKey} keeps the key out of the file, the input-variable form the docs use. Chat Completions sends it as Authorization: Bearer by itself; no requestHeaders entry is needed.
Which models to add
Agents in Copilot chat need tool calling, which every chat model here supports, so no id on the list is a dead end. The six in the block cover the usual spread: a flagship for planning and hard edits, a long-context model for whole-repository questions, and a lower-input-price model for the many small steps.
claude-sonnet-5-5
claude-opus-5-5
gpt-6.1-sol
gemini-3.1-pro-preview
deepseek-v4-pro-0813
kimi-k3Input price decides the bill, because Copilot sends the open files and every tool result back on each step. Pick by the input column below. vision is set where the model page lists image input, so the picker lets you attach screenshots to those models.
Price per token
| Model | Input / 1M | Output / 1M | Cached input / 1M | One step, 40,000 in + 1,500 out |
|---|---|---|---|---|
| Claude Sonnet 5.5 | $1.164 | $2.91 | $0.075 | $0.0509 |
| Claude Opus 5.5 | $2.716 | $9.70 | $0.1455 | $0.1232 |
| GPT-6.1 Sol | $0.582 | $2.91 | $0.0582 | $0.0276 |
| Gemini 3.1 Pro Preview | $1.20 | $7.20 | $0.12 | $0.0588 |
| DeepSeek V4 Pro 0813 | $0.792 | $1.188 | $0.0625 | $0.0335 |
| Kimi K3 | $0.90 | $4.50 | $0.12 | $0.0428 |
USD per million tokens, live from GET /v1/catalog. The last column is one agent step at this base URL, nothing counted at the cached rate.
Cached input bills at the cache-read price on the model page by itself; there is no switch to set. Every request shows on the console Usage page within seconds with its tokens and charge, filterable by key and model.
Check it
Confirm the key before you open the picker:
curl https://api.uplinkswitch.com/v1/models -H "Authorization: Bearer sk-uplink-live-..."Then one request. x-uplink-request-id names it, and on a non-streamed answer x-uplink-charge is what it cost in USD.
curl -i https://api.uplinkswitch.com/v1/chat/completions \
-H "Authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model": "claude-sonnet-5-5", "messages": [{"role": "user", "content": "Say ok."}]}'Errors you will see
401 invalid_api_key: the key is wrong or revoked. Remove the provider in the Language Models editor, add it again and paste the key from the console.402 insufficient_balance: the balance does not cover the request. Top up in the console.402 monthly_limit_reached: the key hit the monthly spend limit you set on it. Raise it in the console, or wait for the first of the month.404 model_not_found: theidin the file is not on the Models page at this base URL. Copy the id from the page rather than typing it.403 scope_denied: the key carries a model allowlist and this id is not on it. Pick an allowed id or use a key without the limit.429 rate_limited: the key hit its requests-per-minute or concurrency limit. The response carriesretry-afterin seconds. Wait that long and resend.- The model is missing from the picker: restart VS Code, and check that
toolCallingistrueon the entry, because the picker hides models without it for agents in chat.
Good to know
chat.utilityModelandchat.utilitySmallModelcan point at a BYOK model for titles, summaries and commit messages; give them a lower-priced id from the table.- The same base URL works in Cline, Cursor, Kilo Code and OpenCode. One balance serves all of them; a key per tool keeps the spend apart on the Usage page.
Questions
Get a key in the console: prepaid credit, no subscription, 30-day price lock.