Skip to content

Commit 6b06504

Browse files
authored
Merge pull request #44600 from github/repo-sync
Repo sync
2 parents 4a11090 + 82c6d58 commit 6b06504

5 files changed

Lines changed: 83 additions & 24 deletions

File tree

content/copilot/reference/ai-models/supported-models.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ The latest {% data variables.product.prodname_copilot_short %} models support th
6969
Choosing a larger context window or higher reasoning will impact {% data variables.product.prodname_ai_credits_short %} consumption; more tokens will be consumed, so more credits will be used. For this reason, we recommend that you use the regular context window and regular reasoning by default, selecting the larger context window and higher reasoning for more complex tasks only.
7070

7171
> [!NOTE]
72-
> These extended capabilities are available in {% data variables.product.prodname_vscode %} and {% data variables.copilot.copilot_cli_short %} only.
72+
> * These extended capabilities are available in {% data variables.product.prodname_vscode %} and {% data variables.copilot.copilot_cli_short %} only.
73+
> * Some models have extended capability pricing see [AUTOTITLE](/copilot/reference/copilot-billing/models-and-pricing#pricing-tables)
7374
7475
{% rowheaders %}
7576

content/copilot/reference/copilot-billing/models-and-pricing.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ All prices are **per 1 million tokens**.
3131

3232
### OpenAI
3333

34-
| Model | Release status | Category | Input | Cached input | Output |
35-
| --- | --- | --- | ---: | ---: | ---: |
34+
{% data reusables.copilot.extended-context-pricing %}
35+
36+
| Model | Release status | Category | Tier | Threshold (input tokens) | Input | Cached input | Output |
37+
| --- | --- | --- | --- | --- | ---: | ---: | ---: |
3638
| {% for entry in tables.copilot.models-and-pricing %}{% if entry.provider == "openai" %} |
37-
| {{ entry.model }} | {{ entry.release_status }} | {{ entry.category }} | {{ entry.input }} | {{ entry.cached_input }} | {{ entry.output }} |
39+
| {{ entry.model }} | {{ entry.release_status }} | {{ entry.category }} | {{ entry.tier }} | {{ entry.threshold }} | {{ entry.input }} | {{ entry.cached_input }} | {{ entry.output }} |
3840
| {% endif %}{% endfor %} |
3941

40-
[^1]: {% data variables.copilot.copilot_gpt_5_mini %} is an included model.
41-
[^2]: {% data variables.copilot.copilot_gpt_54 %} pricing applies to prompts with ≤272K tokens.
4242

4343
### Anthropic
4444

@@ -52,15 +52,14 @@ Anthropic models include a cache write cost in addition to cached input.
5252

5353
### Google
5454

55-
| Model | Release status | Category | Input | Cached input | Output |
56-
| --- | --- | --- | ---: | ---: | ---: |
55+
{% data reusables.copilot.extended-context-pricing %}
56+
57+
| Model | Release status | Category | Tier | Threshold (input tokens) | Input | Cached input | Output |
58+
| --- | --- | --- | --- | --- | ---: | ---: | ---: |
5759
| {% for entry in tables.copilot.models-and-pricing %}{% if entry.provider == "google" %} |
58-
| {{ entry.model }} | {{ entry.release_status }} | {{ entry.category }} | {{ entry.input }} | {{ entry.cached_input }} | {{ entry.output }} |
60+
| {{ entry.model }} | {{ entry.release_status }} | {{ entry.category }} | {{ entry.tier }} | {{ entry.threshold }} | {{ entry.input }} | {{ entry.cached_input }} | {{ entry.output }} |
5961
| {% endif %}{% endfor %} |
6062

61-
[^5]: {% data variables.copilot.copilot_gemini_25_pro %} and {% data variables.copilot.copilot_gemini_31_pro %} pricing applies to prompts with ≤200K tokens.
62-
[^6]: {% data variables.copilot.copilot_gemini_3_flash %} has no long-context surcharge.
63-
6463
### Fine-tuned ({% data variables.product.github %})
6564

6665
| Model | Release status | Category | Input | Cached input | Output |
@@ -69,8 +68,6 @@ Anthropic models include a cache write cost in addition to cached input.
6968
| {{ entry.model }} | {{ entry.release_status }} | {{ entry.category }} | {{ entry.input }} | {{ entry.cached_input }} | {{ entry.output }} |
7069
| {% endif %}{% endfor %} |
7170

72-
[^7]: {% data variables.copilot.copilot_raptor_mini %} uses {% data variables.copilot.copilot_gpt_5_mini %} pricing.
73-
7471
### Microsoft
7572

7673
| Model | Release status | Category | Input | Cached input | Output |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
> [!NOTE] Models with a **Long context** tier, offer extended capabilities and longer context windows. See [AUTOTITLE](/copilot/reference/ai-models/supported-models#models-with-extended-capabilities)

data/tables/copilot/models-and-pricing.yml

Lines changed: 62 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
# - input: Input token price per 1M tokens.
1313
# - cached_input: Cached input token price per 1M tokens.
1414
# - output: Output token price per 1M tokens.
15+
# - threshold: Input token threshold for pricing tier (OpenAI and Google only).
16+
# - tier: Pricing tier label (OpenAI and Google only).
1517
# - cache_write: Cache write price per 1M tokens (Anthropic only).
1618
# - notes: Optional notes about the model.
1719

1820
# OpenAI
1921

20-
- model: 'GPT-5 mini[^1]'
22+
- model: 'GPT-5 mini'
2123
provider: openai
2224
release_status: GA
2325
category: Lightweight
26+
threshold: Not applicable
27+
tier: Default
2428
input: $0.25
2529
cached_input: $0.025
2630
output: $2.00
@@ -29,6 +33,8 @@
2933
provider: openai
3034
release_status: GA
3135
category: Versatile
36+
threshold: Not applicable
37+
tier: Default
3238
input: $1.75
3339
cached_input: $0.175
3440
output: $14.00
@@ -37,6 +43,8 @@
3743
provider: openai
3844
release_status: GA
3945
category: Powerful
46+
threshold: Not applicable
47+
tier: Default
4048
input: $1.75
4149
cached_input: $0.175
4250
output: $14.00
@@ -45,23 +53,38 @@
4553
provider: openai
4654
release_status: GA
4755
category: Powerful
56+
threshold: Not applicable
57+
tier: Default
4858
input: $1.75
4959
cached_input: $0.175
5060
output: $14.00
5161

52-
- model: 'GPT-5.4[^2]'
62+
- model: 'GPT-5.4'
5363
provider: openai
5464
release_status: GA
5565
category: Versatile
66+
threshold: '≤ 272K'
67+
tier: Default
5668
input: $2.50
5769
cached_input: $0.25
5870
output: $15.00
59-
notes: "Prompts \u2264272K tokens"
71+
72+
- model: GPT-5.4
73+
provider: openai
74+
release_status: GA
75+
category: Versatile
76+
threshold: '> 272K'
77+
tier: Long context
78+
input: $5.00
79+
cached_input: $0.50
80+
output: $22.50
6081

6182
- model: GPT-5.4 mini
6283
provider: openai
6384
release_status: GA
6485
category: Lightweight
86+
threshold: Not applicable
87+
tier: Default
6588
input: $0.75
6689
cached_input: $0.075
6790
output: $4.50
@@ -70,6 +93,8 @@
7093
provider: openai
7194
release_status: GA
7295
category: Lightweight
96+
threshold: Not applicable
97+
tier: Default
7398
input: $0.20
7499
cached_input: $0.02
75100
output: $1.25
@@ -78,10 +103,22 @@
78103
provider: openai
79104
release_status: GA
80105
category: Powerful
106+
threshold: '≤ 272K'
107+
tier: Default
81108
input: $5.00
82109
cached_input: $0.50
83110
output: $30.00
84111

112+
- model: GPT-5.5
113+
provider: openai
114+
release_status: GA
115+
category: Powerful
116+
threshold: '> 272K'
117+
tier: 'Long context'
118+
input: $10.00
119+
cached_input: $1.00
120+
output: $45.00
121+
85122
# Anthropic
86123
- model: Claude Haiku 4.5
87124
provider: anthropic
@@ -156,37 +193,52 @@
156193
cache_write: $6.25
157194

158195
# Google
159-
- model: 'Gemini 2.5 Pro[^5]'
196+
- model: 'Gemini 2.5 Pro'
160197
provider: google
161198
release_status: GA
162199
category: Powerful
200+
threshold: 'Not applicable'
201+
tier: 'Default'
163202
input: $1.25
164203
cached_input: $0.125
165204
output: $10.00
166-
notes: "Prompts \u2264200K tokens"
167205

168-
- model: 'Gemini 3 Flash[^6]'
206+
- model: 'Gemini 3 Flash'
169207
provider: google
170208
release_status: Public preview
171209
category: Lightweight
210+
threshold: 'Not applicable'
211+
tier: 'Default'
172212
input: $0.50
173213
cached_input: $0.05
174214
output: $3.00
175-
notes: No long-context surcharge
176215

177-
- model: 'Gemini 3.1 Pro[^5]'
216+
- model: 'Gemini 3.1 Pro'
178217
provider: google
179218
release_status: Public preview
180219
category: Powerful
220+
threshold: '≤ 200K'
221+
tier: 'Default'
181222
input: $2.00
182223
cached_input: $0.20
183224
output: $12.00
184-
notes: "Prompts \u2264200K tokens"
225+
226+
- model: 'Gemini 3.1 Pro'
227+
provider: google
228+
release_status: Public preview
229+
category: Powerful
230+
threshold: '> 200K'
231+
tier: 'Long context'
232+
input: $4.00
233+
cached_input: $0.40
234+
output: $18.00
185235

186236
- model: 'Gemini 3.5 Flash'
187237
provider: google
188238
release_status: GA
189239
category: Lightweight
240+
threshold: 'Not applicable'
241+
tier: 'Default'
190242
input: $1.50
191243
cached_input: $0.15
192244
output: $9.00
@@ -201,7 +253,7 @@
201253
output: $4.50
202254

203255
# Fine-tuned (GitHub)
204-
- model: 'Raptor mini[^7]'
256+
- model: 'Raptor mini'
205257
provider: github
206258
release_status: Public preview
207259
category: Versatile

src/data-directory/lib/data-schemas/tables/copilot/models-and-pricing.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ const modelsAndPricingSchema = {
4848
type: 'string',
4949
lintable: true,
5050
},
51+
threshold: {
52+
type: 'string',
53+
lintable: true,
54+
},
55+
tier: {
56+
type: 'string',
57+
lintable: true,
58+
},
5159
cache_write: {
5260
type: 'string',
5361
lintable: true,

0 commit comments

Comments
 (0)