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.

Checked 2026-10-28

·All guides·Models

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

  1. Add Models → Custom Endpoint.
  2. Group name: UplinkSwitch.
  3. Display name: any; API key: your key from the console. The file references it as an ${input:...} variable, the form the docs use.
  4. API type: Chat Completions.
  5. Replace the contents of chatLanguageModels.json with 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.

chatLanguageModels.json
[
  {
    "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.

model ids
claude-sonnet-5-5
claude-opus-5-5
gpt-6.1-sol
gemini-3.1-pro-preview
deepseek-v4-pro-0813
kimi-k3

Input 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

ModelInput / 1MOutput / 1MCached input / 1MOne 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:

shell
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.

shell
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: the id in 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 carries retry-after in seconds. Wait that long and resend.
  • The model is missing from the picker: restart VS Code, and check that toolCalling is true on the entry, because the picker hides models without it for agents in chat.

Good to know

  • chat.utilityModel and chat.utilitySmallModel can 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

Yes. In VS Code the model picker's Manage Language Models editor has Add Models, then Custom Endpoint, which takes any Chat Completions, Responses or Messages endpoint and writes it to chatLanguageModels.json (VS Code docs, read 2026-10-28). The block on this page points it at https://api.uplinkswitch.com/v1/chat/completions with your UplinkSwitch key.

No. VS Code's docs say BYOK models work without signing in to a GitHub account and without a Copilot plan (read 2026-10-28). The key from our console is prepaid credit billed per token, so the chat side costs what the table above shows and nothing a month.

Yes. claude-sonnet-5-5 and claude-opus-5-5 answer the Chat Completions format at this base URL, so they sit in the same models array as gpt-6.1-sol and deepseek-v4-pro-0813 with no second provider. Claude Sonnet 5.5 is $1.164 per million input tokens and $2.91 per million output tokens here today.

No. VS Code's docs say BYOK applies to chat and utility tasks only; inline suggestions, semantic search and embeddings still go through GitHub (read 2026-10-28). Chat, agents included, runs on the models you add.

Three reasons from the docs (read 2026-10-28): the file was saved but VS Code needs a restart, the model entry has toolCalling false so the picker hides it for agents in chat, or your Copilot Business or Enterprise administrator turned off the "Bring Your Own Language Model Key in VS Code" policy on GitHub.com. Every model on this page has toolCalling true.

Each request bills per token to the balance behind the key and shows on the console Usage page within seconds. A 40,000-input, 1,500-output step on Claude Sonnet 5.5 is $0.0509 at today's rate, and a ten-step task is $0.5093.

Get a key in the console: prepaid credit, no subscription, 30-day price lock.

Join on Telegram
Help