GitHub Copilot 接入 / GitHub Copilot API platform
VS Code Copilot 自定义 Routin 模型
VS Code Copilot custom models on Routin
在 Copilot Chat 的自定义模型配置里,把 vendor 设为 customendpoint、apiType 设为 responses,URL 指向 Routin Responses 接口。
In Copilot Chat custom models, set vendor to customendpoint and apiType to responses, then point the URL at Routin’s Responses endpoint.
接入要点 / Setup facts
- 协议 / ProtocolOpenAI Responses API
- Base URL
https://api.routin.ai/v1/responses - 模型 URL 形如 https://api.routin.ai/v1/responses?token={ApiKey},保留 {ApiKey} 占位,Copilot 会替换。 / Use a model URL like https://api.routin.ai/v1/responses?token={ApiKey}. Keep the {ApiKey} placeholder so Copilot can substitute it.
- apiType 为 responses,不是 chat completions。 / apiType is responses, not chat completions.
步骤 / Steps
- 打开 Copilot 模型配置 / Open Copilot model settings
在 VS Code Copilot Chat 面板打开设置,再打开自定义模型配置文件。
Open Copilot Chat settings in VS Code, then the custom model configuration file.
- 添加 RoutinAI 自定义端点 / Add a Routin custom endpoint
vendor 填 customendpoint,apiType 填 responses,为每个目录模型写 id 与 url。
Set vendor to customendpoint and apiType to responses, then add catalog model ids and URLs.
- 在 Copilot Chat 选择模型 / Select the model in Copilot Chat
保存后,在 Copilot Chat 模型列表里选择名称以 RoutinAI 开头的模型。
After saving, pick a model whose name starts with RoutinAI in Copilot Chat.
Copilot 自定义模型片段 / Copilot custom model snippet
{
"name": "RoutinAI",
"vendor": "customendpoint",
"apiType": "responses",
"models": [
{
"id": "gpt-5.5",
"name": "RoutinAI GPT 5.5",
"url": "https://api.routin.ai/v1/responses?token={ApiKey}",
"toolCalling": true,
"vision": true,
"thinking": true
}
]
}下一步 / Next
其他 Agent / Other agents
可选用的聊天模型 / Chat models to try
把目录中的模型 id 填进 GitHub Copilot。价格来自公开目录。 / Use a catalog model id inside GitHub Copilot.
| Model | Provider | Type | Input | Output |
|---|---|---|---|---|
| claude-fable-5 | Anthropic | chat | 10.00 Token / 1M tokens | 50.00 Token / 1M tokens |
| claude-fable-5-1 | Anthropic | chat | 10.00 Token / 1M tokens | 50.00 Token / 1M tokens |
| claude-fable-5-2 | Anthropic | chat | 8.00 Token / 1M tokens | 40.00 Token / 1M tokens |
| claude-haiku-4-5 | Anthropic | chat | 1.00 Token / 1M tokens | 5.00 Token / 1M tokens |
| claude-haiku-4-5-20251001 | Anthropic | chat | 1.00 Token / 1M tokens | 5.00 Token / 1M tokens |
| claude-haiku-5-5 | Anthropic | chat | 0.1000 Token / 1M tokens | 0.5000 Token / 1M tokens |
| claude-opus-4-1-20250805 | Anthropic | chat | 3.00 Token / 1M tokens | 15.00 Token / 1M tokens |
| claude-opus-4-5-20251101 | Anthropic | chat | 5.00 Token / 1M tokens | 25.00 Token / 1M tokens |
模型目录 / Models套餐 / Plans费用计算器 / Cost calculatorCoding Agents文档 / Docs
常见问题 / FAQ
- Copilot 能用 Routin 模型吗? / Can Copilot use Routin models?
- Yes, via VS Code Copilot custom endpoints with apiType responses. 可以,用 Copilot 自定义模型配置。