copilot-custom-endpoint 1.3.5 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/pricing.md +56 -54
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
VS Code lets you add your own language-model endpoint via a small JSON config file. Many providers advertise "OpenAI-compatible" APIs but reject the exact request shapes VS Code sends. This repo collects **real, tested setups** — one per provider — plus a tiny local proxy that smooths over the rough edges when needed.
|
|
8
8
|
|
|
9
|
-
If [OpenRouter](https://openrouter.ai) is blocked by your network
|
|
9
|
+
If [OpenRouter](https://openrouter.ai) is blocked by your network or too generic for your model's quirks, this is the workaround.
|
|
10
10
|
|
|
11
11
|
## How it works (4 steps)
|
|
12
12
|
|
package/docs/pricing.md
CHANGED
|
@@ -22,43 +22,43 @@ All prices below are in **USD per 1M tokens** (non-cached). To convert to AI cre
|
|
|
22
22
|
|
|
23
23
|
These are the models available through GitHub Copilot's model roster as of June 1, 2026.
|
|
24
24
|
|
|
25
|
-
| Model | Provider | Tier | Input (per 1M) | Cached input | Output (per 1M) | Context |
|
|
26
|
-
| --------------------- | --------- | ----------- | -------------- | ------------ | --------------- |
|
|
27
|
-
| **
|
|
28
|
-
| **
|
|
29
|
-
| **
|
|
30
|
-
| **
|
|
31
|
-
| **
|
|
32
|
-
| **
|
|
33
|
-
| **
|
|
34
|
-
| **
|
|
35
|
-
| **
|
|
36
|
-
| **
|
|
37
|
-
| **
|
|
38
|
-
| **
|
|
39
|
-
| **
|
|
25
|
+
| Model | Provider | Tier | Input (per 1M) | Cached input | Output (per 1M) | Context window |
|
|
26
|
+
| --------------------- | --------- | ----------- | -------------- | ------------ | --------------- | -------------- |
|
|
27
|
+
| **Raptor mini** | GitHub | Versatile | $0.25 | $0.025 | $2.00 | 264K |
|
|
28
|
+
| **Gemini 3 Flash** | Google | Lightweight | $0.50 | $0.05 | $3.00 | 173K |
|
|
29
|
+
| **GPT-5.4 mini** | OpenAI | Lightweight | $0.75 | $0.075 | $4.50 | 400K |
|
|
30
|
+
| **Claude Haiku 4.5** | Anthropic | Versatile | $1.00 | $0.10 | $5.00 | 160K |
|
|
31
|
+
| **Gemini 2.5 Pro** | Google | Powerful | $1.25¹ | $0.125 | $10.00¹ | 173K |
|
|
32
|
+
| **Gemini 3.5 Flash** | Google | Lightweight | $1.50 | $0.15 | $9.00 | 1M |
|
|
33
|
+
| **GPT-5.3-Codex** | OpenAI | Powerful | $1.75 | $0.175 | $14.00 | 400K |
|
|
34
|
+
| **Gemini 3.1 Pro** | Google | Powerful | $2.00¹ | $0.20 | $12.00¹ | 1M |
|
|
35
|
+
| **GPT-5.4** | OpenAI | Versatile | $2.50 | $0.25 | $15.00 | 1M |
|
|
36
|
+
| **Claude Sonnet 4.6** | Anthropic | Versatile | $3.00 | $0.30 | $15.00 | 1M |
|
|
37
|
+
| **Claude Opus 4.8** | Anthropic | Powerful | $5.00 | $0.50 | $25.00 | 1M |
|
|
38
|
+
| **Claude Opus 4.7** | Anthropic | Powerful | $5.00 | $0.50 | $25.00 | 1M |
|
|
39
|
+
| **GPT-5.5** | OpenAI | Powerful | $5.00 | $0.50 | $30.00 | 1M |
|
|
40
40
|
|
|
41
41
|
¹ Gemini 3.1 Pro and 2.5 Pro pricing applies to prompts ≤200K tokens.
|
|
42
42
|
|
|
43
43
|
## Custom-endpoint alternatives
|
|
44
44
|
|
|
45
|
-
| Model | Provider | Input (per 1M) | Output (per 1M) | Context window |
|
|
46
|
-
| --------------------- | --------- | ----------------------------- | --------------------------------------- | -------------- |
|
|
47
|
-
| **
|
|
48
|
-
| **
|
|
49
|
-
| **Kimi K2.6** | Moonshot | $0.16 | $0.95 (non-thinking) / $4.00 (thinking) | 256K |
|
|
50
|
-
| **
|
|
51
|
-
| **MiMo V2.5** | Xiaomi | $0.40 | $2.00 | 1M |
|
|
52
|
-
| **
|
|
53
|
-
| **
|
|
54
|
-
| **
|
|
55
|
-
| **
|
|
56
|
-
| **GLM
|
|
57
|
-
| **
|
|
45
|
+
| Model | Provider | Input (per 1M) | Cached input | Output (per 1M) | Context window |
|
|
46
|
+
| --------------------- | --------- | ----------------------------- | ----------------------------- | --------------------------------------- | -------------- |
|
|
47
|
+
| **MiMo V2 Flash** | Xiaomi | $0.10 | $0.01 | $0.30 | 256K |
|
|
48
|
+
| **DeepSeek V4 Flash** | DeepSeek | $0.14 | $0.0028 | $0.28 | 1M |
|
|
49
|
+
| **Kimi K2.6** | Moonshot | $0.16 | — | $0.95 (non-thinking) / $4.00 (thinking) | 256K |
|
|
50
|
+
| **Qwen 3.7 Plus** | DashScope | $0.40 (≤256K) / $1.20 (>256K) | — | $1.60 (≤256K) / $4.80 (>256K) | 1M |
|
|
51
|
+
| **MiMo V2.5** | Xiaomi | $0.40 | $0.08 | $2.00 | 1M |
|
|
52
|
+
| **DeepSeek V4 Pro** | DeepSeek | $0.435 | $0.003625 | $0.87 | 1M |
|
|
53
|
+
| **MiniMax M3** | MiniMax | $0.60 (≤512K) / $1.20 (>512K) | $0.12 (≤512K) / $0.24 (>512K) | $2.40 (≤512K) / $4.80 (>512K) | 1M |
|
|
54
|
+
| **MiMo V2.5 Pro** | Xiaomi | $1.00 | $0.20 | $3.00 | 1M |
|
|
55
|
+
| **GLM 5V Turbo** | Z.ai | $1.20 | $0.24 | $4.00 | 200K |
|
|
56
|
+
| **GLM 5.1** | Z.ai | $1.40 | $0.26 | $4.40 | 200K |
|
|
57
|
+
| **Qwen 3.7 Max** | DashScope | $2.50 (≤1M) | — | $7.50 (≤1M) | 1M |
|
|
58
58
|
|
|
59
59
|
> **Notes:**
|
|
60
60
|
>
|
|
61
|
-
> - **DeepSeek V4** input pricing shown is the **cache miss** price. Cache hits are significantly cheaper ($0.0028/M for Flash, $0.
|
|
61
|
+
> - **DeepSeek V4** input pricing shown is the **cache miss** price. Cache hits are significantly cheaper ($0.0028/M for Flash, $0.003625/M for Pro).
|
|
62
62
|
> - **MiMo** input pricing shown is the **cache miss** price. Cache hits are 5× cheaper for V2.5 Pro ($0.20/M) and V2.5 ($0.08/M), and 10× cheaper for V2 Flash ($0.01/M).
|
|
63
63
|
> - **Gemini 3 Flash** is priced at $0.50/MTok input (text/image/video) and $1.00/MTok input for audio.
|
|
64
64
|
> - **Anthropic (Claude)** models also have a cache write cost ($6.25/MTok for Opus, $3.75/MTok for Sonnet, $1.25/MTok for Haiku). Opus 4.7+ use a new tokenizer that may use up to 35% more tokens for the same text.
|
|
@@ -66,7 +66,8 @@ These are the models available through GitHub Copilot's model roster as of June
|
|
|
66
66
|
> - **Qwen** models use **tiered pricing** — determined by total input tokens per request. Prices above are for non-thinking mode.
|
|
67
67
|
> - **Kimi K2.6** pricing is from the **Moonshot platform** (direct). Via DashScope: $0.89 input / $3.71 output.
|
|
68
68
|
> - **DashScope** offers a **free quota** of 1M input + 1M output tokens per model, valid for 90 days.
|
|
69
|
-
> - **MiniMax M3** uses **tiered pricing** — input price doubles above 512K input tokens. A 7-day 50% off promotion is available for new accounts.
|
|
69
|
+
> - **MiniMax M3** uses **tiered pricing** — input price doubles above 512K input tokens. Cache hits are priced at 20% of the input rate ($0.12/M ≤512K, $0.24/M >512K). A 7-day 50% off promotion is available for new accounts.
|
|
70
|
+
> - **GLM** models support prompt caching — cache hits are priced at $0.24/M for 5V Turbo and $0.26/M for 5.1.
|
|
70
71
|
> - **MiMo** offers a **Token Plan** subscription model with discounted rates and a free cache-writing promotion.
|
|
71
72
|
> - For typical Copilot chat usage (short-to-medium prompts), you'll almost always fall in the lowest pricing tier.
|
|
72
73
|
|
|
@@ -74,31 +75,32 @@ These are the models available through GitHub Copilot's model roster as of June
|
|
|
74
75
|
|
|
75
76
|
For a typical coding session (~10K input + ~2K output tokens per turn, 50 turns):
|
|
76
77
|
|
|
77
|
-
| Model | Estimated session cost |
|
|
78
|
-
| ------------------------ | ---------------------- |
|
|
79
|
-
| MiMo V2 Flash
|
|
80
|
-
| DeepSeek V4 Flash
|
|
81
|
-
| Kimi K2.6 (non-thinking) | ~$0.18 |
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
| Qwen 3.7 Plus | ~$0.36 |
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
| Gemini
|
|
94
|
-
| Gemini 3.
|
|
95
|
-
|
|
|
96
|
-
| GPT-5.
|
|
97
|
-
|
|
|
98
|
-
| Claude
|
|
99
|
-
|
|
|
78
|
+
| Model | Estimated session cost |
|
|
79
|
+
| ------------------------ | ---------------------- |
|
|
80
|
+
| MiMo V2 Flash | ~$0.08 |
|
|
81
|
+
| DeepSeek V4 Flash | ~$0.10 |
|
|
82
|
+
| Kimi K2.6 (non-thinking) | ~$0.18 |
|
|
83
|
+
| DeepSeek V4 Pro | ~$0.30 |
|
|
84
|
+
| Raptor mini | ~$0.33 |
|
|
85
|
+
| Qwen 3.7 Plus | ~$0.36 |
|
|
86
|
+
| MiMo V2.5 | ~$0.40 |
|
|
87
|
+
| Kimi K2.6 (thinking) | ~$0.48 |
|
|
88
|
+
| MiniMax M3 | ~$0.54 |
|
|
89
|
+
| Gemini 3 Flash | ~$0.55 |
|
|
90
|
+
| MiMo V2.5 Pro | ~$0.80 |
|
|
91
|
+
| GPT-5.4 mini | ~$0.83 |
|
|
92
|
+
| Claude Haiku 4.5 | ~$1.00 |
|
|
93
|
+
| Qwen 3.7 Max | ~$1.33 |
|
|
94
|
+
| Gemini 2.5 Pro | ~$1.63 |
|
|
95
|
+
| Gemini 3.5 Flash | ~$1.65 |
|
|
96
|
+
| Gemini 3.1 Pro | ~$2.20 |
|
|
97
|
+
| GPT-5.3-Codex | ~$2.28 |
|
|
98
|
+
| GPT-5.4 | ~$2.75 |
|
|
99
|
+
| Claude Sonnet 4.6 | ~$3.00 |
|
|
100
|
+
| Claude Opus 4.8 / 4.7 | ~$5.00 |
|
|
101
|
+
| GPT-5.5 | ~$5.50 |
|
|
100
102
|
|
|
101
|
-
> **How long does 7,000 credits last?** A Pro+ subscriber running 50-turn sessions could afford roughly **13 GPT-5.5 sessions**, **23 Opus sessions**, or **212 Raptor mini sessions** per month — or mix and match.
|
|
103
|
+
> **How long does 7,000 credits last?** A Pro+ subscriber running 50-turn sessions could afford roughly **13 GPT-5.5 sessions**, **23 Opus sessions**, or **212 Raptor mini sessions** per month — or mix and match. (Multiply session cost by 100 to convert to AI credits.)
|
|
102
104
|
|
|
103
105
|
> Prices last verified: June 1, 2026. Always check the official pages for the latest rates:
|
|
104
106
|
>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-custom-endpoint",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Local proxies for VS Code Copilot custom endpoints — Kimi K2 & Qwen 3.x",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -55,4 +55,4 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"dotenv": "^17.4.2"
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
}
|