copilot: list each model's long-context tier, as Copilot Chat asks /models (gtliuu on X)
gtliuu on X: Copilot's Claude Opus 5.5 has a 200K and a long tier, and magpie
offered only 200K. magpie asked /models at X-GitHub-Api-Version 2026-01-09,
and at that version Copilot lists only the default tier's
max_prompt_tokens. Copilot Chat 0.68 never sends 2026-01-09:
@vscode/copilot-api 0.5.2's _mixinHeaders sets 2026-08-01 on every Copilot
API request, Models included, over networking.ts's 2026-01-09. At
2026-06-01 and later, /models gives each model its whole window (Opus 5.5
1M) and billing.token_prices with a default tier and a long_context tier.
- The editors' sign-in asks GET /models at 2026-08-01
(copilotModelsVersion). The Copilot CLI's sign-in keeps its own
2026-07-01, which already lists the tiers. Chat requests are unchanged:
Copilot served prompts past the default tier at 2026-01-09. The other
requests still on 2026-01-09 are #6571.
- The window follows Copilot Chat (languageModelAccess.ts and
agentIntent.ts). A long tier at the default's prices gives the whole
window: Claude Opus 5.5 1M, and the Sonnet, Fable and Gemini models
936K or 983K. A long tier with a surcharge keeps the default tier's
prompt as the window agents are told. The whole window becomes
MaxContext, which the user can raise the window to. GPT-6 Luna gets
272K and 872K, and Claude Haiku 5.5 100K and 936K. The whole window is
the limits' max_prompt_tokens, not the long tier's prompt: Grok 4.7's
long tier says 500000, but Copilot takes 372000.
- Price: Copilot's own list (AIU per batch_size tokens / 100 = USD per M)
is the list price, ahead of models.dev. A long tier with a surcharge
becomes a Tier above the default's prompt. Both 2026-06-01's field
names (cache_price, context_max) and 2026-08-01's are read. GPT-4.1's
all-zero list is no price. A flat, older list changes nothing.
Run (base origin/main 7b50e1f2c):
- go test -tags nogui -count=1 -timeout 45m ./internal/provider/...
./internal/catalog/... ./internal/gateway/... ./internal/usage/... on
mote, in a sandbox HOME: all ok (provider 139s, catalog 3s, gateway
918s, usage 42s). Not the whole ./...: mote's suite lock had six suites
queued, and mica's disk is full.
- GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./..., and the
linux and windows builds: ok.
- gofmt -l: clean.
- Fixtures are the owner's account's real /models replies at 2026-01-09,
2026-06-01 and 2026-08-01, trimmed to four models.
- Real use: a -tags dev build in a sandbox HOME with only
github-copilot/apps.json copied, on 127.0.0.1:3476. Its /v1/models
lists copilot/claude-opus-5.5 at 1000000 (200000 before) and
gpt-6-luna at 272000, both priced from Copilot's list. A
584,849-token prompt to copilot/claude-opus-5.5 on /v1/messages got
200 end_turn, billed by Copilot at 233.9 AIU (400 an M, the default
tier's price).
Broken by hand, each red:
- /models asked without copilotModelsVersion: TestCopilotListsTheLongContextTier.
- tiers not applied: that test and TestCopilotTiersAtTheFirstTieredVersion.
- the long tier's prompt over the limits': red on Grok 4.7's 500000.
- context_max not read: TestCopilotTiersAtTheFirstTieredVersion.
- copilotListPrice off: TestCopilotListPriceIsCopilots.
Not tried: a request on a surcharged model raised past its default
tier (GPT-6 Luna over 272K), or a Business or Enterprise account's list.
This commit is contained in:
@@ -1353,6 +1353,17 @@ var copilotAPIHeaders = func() map[string]string {
|
||||
return h
|
||||
}()
|
||||
|
||||
// copilotModelsVersion is the API version the editors' sign-in asks
|
||||
// /models at: the one Copilot Chat 0.68's @vscode/copilot-api (0.5.2)
|
||||
// sends on every Copilot API request it makes, Models among them, over
|
||||
// networking.ts's 2026-01-09. At 2026-01-09 Copilot lists a model with a
|
||||
// long-context tier at its default tier alone (claude-opus-5.5's
|
||||
// max_prompt_tokens 200000); from 2026-06-01 on at its whole window
|
||||
// (1000000) with billing.token_prices' default and long_context tiers
|
||||
// (gtliuu on X). Chat requests keep copilotAPIHeaders' version: Copilot
|
||||
// served a 240K prompt above the default tier at either.
|
||||
const copilotModelsVersion = "2026-08-01"
|
||||
|
||||
type copilotSession struct {
|
||||
Token string `json:"token"`
|
||||
ExpiresAt int64 `json:"expires_at"`
|
||||
@@ -1793,6 +1804,10 @@ func copilotModels(ctx context.Context, app copilotApp) ([]catalog.Model, error)
|
||||
for k, v := range s.headers() {
|
||||
req.Header.Set(k, v)
|
||||
}
|
||||
if !s.direct {
|
||||
// the CLI's own version lists the tiers already
|
||||
req.Header.Set("X-GitHub-Api-Version", copilotModelsVersion)
|
||||
}
|
||||
res, err := Keyed(http.DefaultClient).Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -1810,7 +1825,8 @@ func copilotModels(ctx context.Context, app copilotApp) ([]catalog.Model, error)
|
||||
Fallback bool `json:"is_chat_fallback"`
|
||||
Endpoints []string `json:"supported_endpoints"`
|
||||
Billing *struct {
|
||||
Premium bool `json:"is_premium"`
|
||||
Premium bool `json:"is_premium"`
|
||||
Prices copilotTokenPrices `json:"token_prices"`
|
||||
} `json:"billing"`
|
||||
Capabilities struct {
|
||||
Type string `json:"type"`
|
||||
@@ -1887,11 +1903,15 @@ func copilotModels(ctx context.Context, app copilotApp) ([]catalog.Model, error)
|
||||
default:
|
||||
continue // not the account's to enable: it answers 403
|
||||
}
|
||||
out = append(out, catalog.Model{ID: m.ID, Name: m.Name, Efforts: m.Capabilities.Supports.Efforts, APIs: copilotAPIs(m.Endpoints),
|
||||
mm := catalog.Model{ID: m.ID, Name: m.Name, Efforts: m.Capabilities.Supports.Efforts, APIs: copilotAPIs(m.Endpoints),
|
||||
// the prompt this account's Copilot takes for the model (936K
|
||||
// for gemini-4-carbon), not models.dev's window for the id
|
||||
// (1048576): over it Copilot answers 400 (codealc on X)
|
||||
Context: catalog.Window(m.Capabilities.Limits.Prompt)})
|
||||
Context: catalog.Window(m.Capabilities.Limits.Prompt)}
|
||||
if m.Billing != nil {
|
||||
m.Billing.Prices.apply(&mm)
|
||||
}
|
||||
out = append(out, mm)
|
||||
}
|
||||
// Auto, which Copilot's clients offer every account beside the models
|
||||
// it lists, and the only choice a Student plan has: an account whose
|
||||
@@ -1926,3 +1946,107 @@ func copilotDrawsModel(typ, id string) bool {
|
||||
}
|
||||
return catalog.DrawsID(id)
|
||||
}
|
||||
|
||||
// copilotTier is one tier of a Copilot model's billing.token_prices, from
|
||||
// API version 2026-06-01 on: prices in AIUs a batch_size of tokens (one
|
||||
// AIU a hundredth of a dollar), up to the tier's prompt. 2026-06-01 names
|
||||
// the cache read and the prompt cache_price and context_max, 2026-08-01
|
||||
// cache_read_price and max_prompt_tokens.
|
||||
type copilotTier struct {
|
||||
Input float64 `json:"input_price"`
|
||||
Output float64 `json:"output_price"`
|
||||
CacheRead float64 `json:"cache_read_price"`
|
||||
Cache float64 `json:"cache_price"`
|
||||
CacheWrite float64 `json:"cache_write_price"`
|
||||
CacheWrite1h float64 `json:"cache_write_1h_price"`
|
||||
Prompt int `json:"max_prompt_tokens"`
|
||||
ContextMax int `json:"context_max"`
|
||||
}
|
||||
|
||||
func (t copilotTier) prompt() int {
|
||||
if t.Prompt > 0 {
|
||||
return t.Prompt
|
||||
}
|
||||
return t.ContextMax
|
||||
}
|
||||
|
||||
func (t copilotTier) cacheRead() float64 {
|
||||
if t.CacheRead > 0 {
|
||||
return t.CacheRead
|
||||
}
|
||||
return t.Cache
|
||||
}
|
||||
|
||||
// samePrice is Copilot Chat's test for a long tier that costs nothing
|
||||
// more (languageModelAccess.ts drops such a tier).
|
||||
func (t copilotTier) samePrice(o copilotTier) bool {
|
||||
return t.Input == o.Input && t.Output == o.Output && t.cacheRead() == o.cacheRead() &&
|
||||
t.CacheWrite == o.CacheWrite && t.CacheWrite1h == o.CacheWrite1h
|
||||
}
|
||||
|
||||
type copilotTokenPrices struct {
|
||||
Batch float64 `json:"batch_size"`
|
||||
Default *copilotTier `json:"default"`
|
||||
Long *copilotTier `json:"long_context"`
|
||||
}
|
||||
|
||||
// apply sets m's window and price from its Copilot tiers, the way Copilot
|
||||
// Chat picks them: a long tier at the default's prices makes the whole
|
||||
// window the one agents are told (claude-opus-5.5's 1M); a long tier
|
||||
// that costs more keeps the default tier's prompt as the window and the
|
||||
// long one as the most it may be raised to (gpt-6-luna's 272K and 872K),
|
||||
// priced by a Tier above the default's prompt. With no tiers listed (an
|
||||
// older version's flat prices) m is left as it is.
|
||||
func (tp copilotTokenPrices) apply(m *catalog.Model) {
|
||||
d := tp.Default
|
||||
if d == nil {
|
||||
return
|
||||
}
|
||||
long := tp.Long
|
||||
// the whole window is the prompt the model's limits say Copilot
|
||||
// takes, else the long tier's: grok-4.7's long tier says 500000 while
|
||||
// Copilot takes 372000
|
||||
full := m.Context
|
||||
if full == 0 && long != nil {
|
||||
full = catalog.Window(long.prompt())
|
||||
}
|
||||
if long != nil && long.samePrice(*d) {
|
||||
m.Context = full
|
||||
long = nil
|
||||
}
|
||||
if long != nil {
|
||||
if w := catalog.Window(d.prompt()); w > 0 && w < full {
|
||||
m.Context, m.MaxContext = w, full
|
||||
}
|
||||
}
|
||||
if d.Input == 0 && d.Output == 0 {
|
||||
// gpt-4.1's all-zero list, batch_size 0: no price, not a free one
|
||||
return
|
||||
}
|
||||
batch := tp.Batch
|
||||
if batch <= 0 {
|
||||
batch = 1e6
|
||||
}
|
||||
usd := func(aiu float64) float64 { return aiu * (1e6 / batch) / 100 }
|
||||
p := &catalog.Price{Input: usd(d.Input), Output: usd(d.Output), CacheRead: usd(d.cacheRead()),
|
||||
CacheWrite: usd(d.CacheWrite), CacheWrite1h: usd(d.CacheWrite1h)}
|
||||
if long != nil && m.MaxContext > 0 {
|
||||
p.Tiers = []catalog.Tier{{Above: m.Context, Input: usd(long.Input), Output: usd(long.Output),
|
||||
CacheRead: usd(long.cacheRead()), CacheWrite: usd(long.CacheWrite), CacheWrite1h: usd(long.CacheWrite1h)}}
|
||||
}
|
||||
m.Price = p
|
||||
}
|
||||
|
||||
// copilotListPrice is what Copilot's own /models listed the model at for
|
||||
// this account (billing.token_prices), with its long-context tier.
|
||||
func (p Provider) copilotListPrice(model string) (catalog.Price, bool) {
|
||||
if p.ID != "copilot" {
|
||||
return catalog.Price{}, false
|
||||
}
|
||||
for _, m := range p.liveByID(model) {
|
||||
if m.Price != nil {
|
||||
return *m.Price, true
|
||||
}
|
||||
}
|
||||
return catalog.Price{}, false
|
||||
}
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
package provider
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/yetone/magpie/internal/catalog"
|
||||
)
|
||||
|
||||
// copilotVersionedAPI answers /models with the real reply Copilot gave
|
||||
// at the version asked (testdata/copilot-models-<version>.json: the
|
||||
// owner's account, four of its models), and keeps the versions asked.
|
||||
func copilotVersionedAPI(t *testing.T) (*httptest.Server, func() []string) {
|
||||
t.Helper()
|
||||
var mu sync.Mutex
|
||||
var asked []string
|
||||
api := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
v := r.Header.Get("X-GitHub-Api-Version")
|
||||
mu.Lock()
|
||||
asked = append(asked, v)
|
||||
mu.Unlock()
|
||||
b, err := os.ReadFile("testdata/copilot-models-" + v + ".json")
|
||||
if err != nil {
|
||||
// a version these fixtures don't have: the oldest's reply
|
||||
b, _ = os.ReadFile("testdata/copilot-models-2026-01-09.json")
|
||||
}
|
||||
w.Write(b)
|
||||
}))
|
||||
t.Cleanup(api.Close)
|
||||
return api, func() []string {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
return append([]string(nil), asked...)
|
||||
}
|
||||
}
|
||||
|
||||
func copilotTestModels(t *testing.T, s copilotSession) map[string]catalog.Model {
|
||||
t.Helper()
|
||||
copilotSessions = map[string]copilotSession{"gho_long": s}
|
||||
ms, err := copilotModels(context.Background(), copilotApp{User: "octocat", Token: "gho_long"})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
got := map[string]catalog.Model{}
|
||||
for _, m := range ms {
|
||||
got[m.ID] = m
|
||||
}
|
||||
return got
|
||||
}
|
||||
|
||||
func copilotTestSession(api string, direct bool) copilotSession {
|
||||
s := copilotSession{Token: "sess", ExpiresAt: time.Now().Add(time.Hour).Unix(), direct: direct}
|
||||
s.Endpoints.API = api
|
||||
return s
|
||||
}
|
||||
|
||||
// Copilot Chat asks /models at the version its @vscode/copilot-api sets
|
||||
// on every request (2026-08-01), where a model's long-context tier is
|
||||
// listed; at 2026-01-09 Claude Opus 5.5 was 200K alone (gtliuu on X). A
|
||||
// long tier at the default's prices is the window agents are told
|
||||
// (Opus 5.5's 1M). One that costs more, as Copilot Chat does, keeps the
|
||||
// default tier's prompt as the window and the long one as the most it
|
||||
// may be raised to (GPT-6 Luna's 272K and 872K), priced above 272K at
|
||||
// the long tier's prices.
|
||||
func TestCopilotListsTheLongContextTier(t *testing.T) {
|
||||
signIn(t)
|
||||
api, asked := copilotVersionedAPI(t)
|
||||
got := copilotTestModels(t, copilotTestSession(api.URL, false))
|
||||
if v := asked(); len(v) != 1 || v[0] != "2026-08-01" {
|
||||
t.Fatalf("/models asked at %q; want 2026-08-01", v)
|
||||
}
|
||||
p := Provider{ID: "copilot"}
|
||||
|
||||
opus := got["claude-opus-5.5"]
|
||||
if w := p.WindowOf(opus); w != 1000000 {
|
||||
t.Errorf("claude-opus-5.5 window %d; want 1000000", w)
|
||||
}
|
||||
if opus.Price == nil || opus.Price.Input != 4 || opus.Price.Output != 20 || opus.Price.CacheRead != 0.2 ||
|
||||
opus.Price.CacheWrite != 5 || opus.Price.CacheWrite1h != 8 || len(opus.Price.Tiers) != 0 {
|
||||
t.Errorf("claude-opus-5.5 price %+v; want 4/20, cache 0.2/5/8, no tier", opus.Price)
|
||||
}
|
||||
|
||||
luna := got["gpt-6-luna"]
|
||||
if w := p.WindowOf(luna); w != 272000 || luna.MaxContext != 872000 {
|
||||
t.Errorf("gpt-6-luna window %d most %d; want 272000 and 872000", w, luna.MaxContext)
|
||||
}
|
||||
want := catalog.Price{Input: 0.1, Output: 0.5, CacheRead: 0.01, CacheWrite: 0.125,
|
||||
Tiers: []catalog.Tier{{Above: 272000, Input: 0.2, Output: 0.75, CacheRead: 0.02, CacheWrite: 0.25}}}
|
||||
if luna.Price == nil || !samePrice(*luna.Price, want) {
|
||||
t.Errorf("gpt-6-luna price %+v; want %+v", luna.Price, want)
|
||||
}
|
||||
// raised to its long tier by the user, it is told that
|
||||
p.Contexts = map[string]int{"gpt-6-luna": 872000}
|
||||
if w := p.WindowOf(luna); w != 872000 {
|
||||
t.Errorf("gpt-6-luna set to 872000: window %d", w)
|
||||
}
|
||||
|
||||
// Grok 4.7's long tier says 500000, its limits 372000: Copilot takes
|
||||
// the limits' prompt
|
||||
if m := got["grok-4.7"]; m.Context != 200000 || m.MaxContext != 372000 {
|
||||
t.Errorf("grok-4.7 window %d most %d; want 200000 and 372000", m.Context, m.MaxContext)
|
||||
}
|
||||
|
||||
// GPT-4.1 lists every price 0 (batch_size 0): not a price at all
|
||||
if m := got["gpt-4.1"]; m.Price != nil || m.Context != 128000 {
|
||||
t.Errorf("gpt-4.1 price %+v window %d; want none and 128000", m.Price, m.Context)
|
||||
}
|
||||
}
|
||||
|
||||
// 2026-06-01 names a tier's prompt context_max and its cache read
|
||||
// cache_price; read the same.
|
||||
func TestCopilotTiersAtTheFirstTieredVersion(t *testing.T) {
|
||||
b, err := os.ReadFile("testdata/copilot-models-2026-06-01.json")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
signIn(t)
|
||||
api := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write(b) }))
|
||||
defer api.Close()
|
||||
luna := copilotTestModels(t, copilotTestSession(api.URL, false))["gpt-6-luna"]
|
||||
if luna.Context != 272000 || luna.MaxContext != 872000 || luna.Price == nil ||
|
||||
luna.Price.CacheRead != 0.01 || len(luna.Price.Tiers) != 1 || luna.Price.Tiers[0].CacheRead != 0.02 {
|
||||
t.Errorf("gpt-6-luna at 2026-06-01: window %d most %d price %+v", luna.Context, luna.MaxContext, luna.Price)
|
||||
}
|
||||
}
|
||||
|
||||
// The Copilot CLI's sign-in asks /models at the CLI's own version, as
|
||||
// the CLI does; and a reply in the older flat shape changes nothing.
|
||||
func TestCopilotCLIKeepsItsModelsVersion(t *testing.T) {
|
||||
signIn(t)
|
||||
api, asked := copilotVersionedAPI(t)
|
||||
got := copilotTestModels(t, copilotTestSession(api.URL, true))
|
||||
if v := asked(); len(v) != 1 || v[0] != copilotCLIHeaders["X-GitHub-Api-Version"] {
|
||||
t.Fatalf("CLI /models asked at %q; want %q", v, copilotCLIHeaders["X-GitHub-Api-Version"])
|
||||
}
|
||||
// served the 2026-01-09 reply: flat nano-AIU prices, no tiers
|
||||
if m := got["claude-opus-5.5"]; m.Context != 200000 || m.MaxContext != 0 || m.Price != nil {
|
||||
t.Errorf("flat reply: claude-opus-5.5 window %d most %d price %+v; want 200000, 0, none", m.Context, m.MaxContext, m.Price)
|
||||
}
|
||||
}
|
||||
|
||||
// What Copilot listed the model at is its list price, over models.dev's.
|
||||
func TestCopilotListPriceIsCopilots(t *testing.T) {
|
||||
signIn(t)
|
||||
luna := catalog.Model{ID: "gpt-6-luna", Context: 272000, MaxContext: 872000,
|
||||
Price: &catalog.Price{Input: 0.1, Output: 0.5, Tiers: []catalog.Tier{{Above: 272000, Input: 0.2, Output: 0.75}}}}
|
||||
if err := catalog.SaveLive("copilot", copilotBase, []catalog.Model{luna}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
pr, ok := Provider{ID: "copilot"}.ListPrice("gpt-6-luna")
|
||||
if !ok || !samePrice(pr, *luna.Price) {
|
||||
t.Errorf("ListPrice %+v %v; want Copilot's %+v", pr, ok, *luna.Price)
|
||||
}
|
||||
}
|
||||
|
||||
func samePrice(a, b catalog.Price) bool {
|
||||
if a.Input != b.Input || a.Output != b.Output || a.CacheRead != b.CacheRead || a.CacheWrite != b.CacheWrite ||
|
||||
a.CacheWrite1h != b.CacheWrite1h || len(a.Tiers) != len(b.Tiers) {
|
||||
return false
|
||||
}
|
||||
for i := range a.Tiers {
|
||||
if a.Tiers[i] != b.Tiers[i] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
@@ -2409,6 +2409,9 @@ func (p Provider) listPriceIn(c priceCats, model string) (catalog.Price, bool, i
|
||||
if pr, ok := p.remotePrice(model); ok {
|
||||
return pr, true, pricedOwn
|
||||
}
|
||||
if pr, ok := p.copilotListPrice(model); ok {
|
||||
return pr, true, pricedOwn
|
||||
}
|
||||
if p.clineFreeModel(model) || p.kiloFreeModel(model) || p.codexReviewFree(model) {
|
||||
// served at no cost: not at the price of the model it is free of
|
||||
return catalog.Price{}, true, pricedOwn
|
||||
|
||||
@@ -0,0 +1,276 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"billing": {
|
||||
"restricted_to": [
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"cache_price": 20000000000,
|
||||
"input_price": 400000000000,
|
||||
"output_price": 2000000000000
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "claude-opus-5.5",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 328000,
|
||||
"max_non_streaming_output_tokens": 16000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 200000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"adaptive_thinking": true,
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "claude-opus-5.5",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "powerful",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "high",
|
||||
"name": "Claude Opus 5.5",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest Claude Opus 5.5 model from Anthropic. [Learn more about how GitHub Copilot serves Claude Opus 5.5](https://gh.io/copilot-claude-opus)."
|
||||
},
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/v1/messages",
|
||||
"/chat/completions"
|
||||
],
|
||||
"vendor": "Anthropic",
|
||||
"version": "claude-opus-5.5"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"restricted_to": [
|
||||
"free",
|
||||
"edu",
|
||||
"pro",
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"cache_price": 1000000000,
|
||||
"input_price": 10000000000,
|
||||
"output_price": 50000000000
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "gpt-6-luna",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 400000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 272000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"none",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "gpt-6-luna",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "lightweight",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "low",
|
||||
"name": "GPT-6 Luna",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest GPT-6 Luna model from OpenAI. [Learn more about how GitHub Copilot serves GPT-6 Luna](https://gh.io/copilot-openai)."
|
||||
},
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/responses",
|
||||
"ws:/responses"
|
||||
],
|
||||
"vendor": "OpenAI",
|
||||
"version": "gpt-6-luna"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"restricted_to": [
|
||||
"pro",
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"cache_price": 50000000000,
|
||||
"input_price": 200000000000,
|
||||
"output_price": 600000000000
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "grok-4.7",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 328000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 200000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "grok-4.7",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "versatile",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "medium",
|
||||
"name": "Grok 4.7",
|
||||
"object": "model",
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/responses"
|
||||
],
|
||||
"vendor": "xAI",
|
||||
"version": "grok-4.7"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"token_prices": {
|
||||
"batch_size": 0,
|
||||
"cache_price": 0,
|
||||
"input_price": 0,
|
||||
"output_price": 0
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "gpt-4.1",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 128000,
|
||||
"max_output_tokens": 16384,
|
||||
"max_prompt_tokens": 128000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "gpt-4.1",
|
||||
"info_messages": [
|
||||
{
|
||||
"code": "model_pending_deprecation",
|
||||
"message": "GPT-4.1 has a planned deprecation date of 2026-06-01."
|
||||
}
|
||||
],
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "versatile",
|
||||
"model_picker_enabled": false,
|
||||
"model_picker_price_category": "medium",
|
||||
"name": "GPT-4.1",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest GPT-4.1 model from OpenAI. [Learn more about how GitHub Copilot serves GPT-4.1](https://docs.github.com/en/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task#gpt-41)."
|
||||
},
|
||||
"preview": false,
|
||||
"vendor": "Azure OpenAI",
|
||||
"version": "gpt-4.1-2025-04-14"
|
||||
}
|
||||
],
|
||||
"object": "list"
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"billing": {
|
||||
"restricted_to": [
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"default": {
|
||||
"cache_price": 20,
|
||||
"cache_write_1h_price": 800,
|
||||
"cache_write_price": 500,
|
||||
"context_max": 200000,
|
||||
"input_price": 400,
|
||||
"output_price": 2000
|
||||
},
|
||||
"long_context": {
|
||||
"cache_price": 20,
|
||||
"cache_write_1h_price": 800,
|
||||
"cache_write_price": 500,
|
||||
"context_max": 1000000,
|
||||
"input_price": 400,
|
||||
"output_price": 2000
|
||||
}
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "claude-opus-5.5",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 1000000,
|
||||
"max_non_streaming_output_tokens": 16000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 1000000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"adaptive_thinking": true,
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "claude-opus-5.5",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "powerful",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "high",
|
||||
"name": "Claude Opus 5.5",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest Claude Opus 5.5 model from Anthropic. [Learn more about how GitHub Copilot serves Claude Opus 5.5](https://gh.io/copilot-claude-opus)."
|
||||
},
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/v1/messages",
|
||||
"/chat/completions"
|
||||
],
|
||||
"vendor": "Anthropic",
|
||||
"version": "claude-opus-5.5"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"restricted_to": [
|
||||
"free",
|
||||
"edu",
|
||||
"pro",
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"default": {
|
||||
"cache_price": 1,
|
||||
"cache_write_price": 12,
|
||||
"context_max": 272000,
|
||||
"input_price": 10,
|
||||
"output_price": 50
|
||||
},
|
||||
"long_context": {
|
||||
"cache_price": 2,
|
||||
"cache_write_price": 25,
|
||||
"context_max": 872000,
|
||||
"input_price": 20,
|
||||
"output_price": 75
|
||||
}
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "gpt-6-luna",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 1000000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 872000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"none",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "gpt-6-luna",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "lightweight",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "low",
|
||||
"name": "GPT-6 Luna",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest GPT-6 Luna model from OpenAI. [Learn more about how GitHub Copilot serves GPT-6 Luna](https://gh.io/copilot-openai)."
|
||||
},
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/responses",
|
||||
"ws:/responses"
|
||||
],
|
||||
"vendor": "OpenAI",
|
||||
"version": "gpt-6-luna"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"restricted_to": [
|
||||
"pro",
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"default": {
|
||||
"cache_price": 50,
|
||||
"cache_write_price": 0,
|
||||
"context_max": 200000,
|
||||
"input_price": 200,
|
||||
"output_price": 600
|
||||
},
|
||||
"long_context": {
|
||||
"cache_price": 100,
|
||||
"cache_write_price": 0,
|
||||
"context_max": 500000,
|
||||
"input_price": 400,
|
||||
"output_price": 1200
|
||||
}
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "grok-4.7",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 500000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 372000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "grok-4.7",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "versatile",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "medium",
|
||||
"name": "Grok 4.7",
|
||||
"object": "model",
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/responses"
|
||||
],
|
||||
"vendor": "xAI",
|
||||
"version": "grok-4.7"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"token_prices": {
|
||||
"batch_size": 0,
|
||||
"default": {
|
||||
"cache_price": 0,
|
||||
"cache_write_price": 0,
|
||||
"input_price": 0,
|
||||
"output_price": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "gpt-4.1",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 128000,
|
||||
"max_output_tokens": 16384,
|
||||
"max_prompt_tokens": 128000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "gpt-4.1",
|
||||
"info_messages": [
|
||||
{
|
||||
"code": "model_pending_deprecation",
|
||||
"message": "GPT-4.1 has a planned deprecation date of 2026-06-01."
|
||||
}
|
||||
],
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "versatile",
|
||||
"model_picker_enabled": false,
|
||||
"model_picker_price_category": "medium",
|
||||
"name": "GPT-4.1",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest GPT-4.1 model from OpenAI. [Learn more about how GitHub Copilot serves GPT-4.1](https://docs.github.com/en/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task#gpt-41)."
|
||||
},
|
||||
"preview": false,
|
||||
"vendor": "Azure OpenAI",
|
||||
"version": "gpt-4.1-2025-04-14"
|
||||
}
|
||||
],
|
||||
"object": "list"
|
||||
}
|
||||
@@ -0,0 +1,317 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"billing": {
|
||||
"auto_discount": 0.1,
|
||||
"restricted_to": [
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"default": {
|
||||
"cache_read_price": 20,
|
||||
"cache_write_1h_price": 800,
|
||||
"cache_write_price": 500,
|
||||
"input_price": 400,
|
||||
"max_prompt_tokens": 200000,
|
||||
"output_price": 2000
|
||||
},
|
||||
"long_context": {
|
||||
"cache_read_price": 20,
|
||||
"cache_write_1h_price": 800,
|
||||
"cache_write_price": 500,
|
||||
"input_price": 400,
|
||||
"max_prompt_tokens": 1000000,
|
||||
"output_price": 2000
|
||||
}
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "claude-opus-5.5",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 1000000,
|
||||
"max_non_streaming_output_tokens": 16000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 1000000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"adaptive_thinking": true,
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "claude-opus-5.5",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "powerful",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "high",
|
||||
"name": "Claude Opus 5.5",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest Claude Opus 5.5 model from Anthropic. [Learn more about how GitHub Copilot serves Claude Opus 5.5](https://gh.io/copilot-claude-opus)."
|
||||
},
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/v1/messages",
|
||||
"/chat/completions"
|
||||
],
|
||||
"vendor": "Anthropic",
|
||||
"version": "claude-opus-5.5"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"auto_discount": 0.1,
|
||||
"restricted_to": [
|
||||
"free",
|
||||
"edu",
|
||||
"pro",
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"default": {
|
||||
"cache_read_price": 1,
|
||||
"cache_write_price": 12.5,
|
||||
"input_price": 10,
|
||||
"max_prompt_tokens": 272000,
|
||||
"output_price": 50
|
||||
},
|
||||
"long_context": {
|
||||
"cache_read_price": 2,
|
||||
"cache_write_price": 25,
|
||||
"input_price": 20,
|
||||
"max_prompt_tokens": 872000,
|
||||
"output_price": 75
|
||||
}
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "gpt-6-luna",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 1000000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 872000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"none",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "gpt-6-luna",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "lightweight",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "low",
|
||||
"name": "GPT-6 Luna",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest GPT-6 Luna model from OpenAI. [Learn more about how GitHub Copilot serves GPT-6 Luna](https://gh.io/copilot-openai)."
|
||||
},
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/responses",
|
||||
"ws:/responses"
|
||||
],
|
||||
"vendor": "OpenAI",
|
||||
"version": "gpt-6-luna"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"restricted_to": [
|
||||
"pro",
|
||||
"pro_plus",
|
||||
"business",
|
||||
"enterprise",
|
||||
"max"
|
||||
],
|
||||
"token_prices": {
|
||||
"batch_size": 1000000,
|
||||
"default": {
|
||||
"cache_read_price": 50,
|
||||
"cache_write_price": 0,
|
||||
"input_price": 200,
|
||||
"max_prompt_tokens": 200000,
|
||||
"output_price": 600
|
||||
},
|
||||
"long_context": {
|
||||
"cache_read_price": 100,
|
||||
"cache_write_price": 0,
|
||||
"input_price": 400,
|
||||
"max_prompt_tokens": 500000,
|
||||
"output_price": 1200
|
||||
}
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "grok-4.7",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 500000,
|
||||
"max_output_tokens": 128000,
|
||||
"max_prompt_tokens": 372000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"reasoning_effort": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh"
|
||||
],
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "grok-4.7",
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "versatile",
|
||||
"model_picker_enabled": true,
|
||||
"model_picker_price_category": "medium",
|
||||
"name": "Grok 4.7",
|
||||
"object": "model",
|
||||
"preview": false,
|
||||
"supported_endpoints": [
|
||||
"/responses"
|
||||
],
|
||||
"vendor": "xAI",
|
||||
"version": "grok-4.7"
|
||||
},
|
||||
{
|
||||
"billing": {
|
||||
"auto_discount": 0.1,
|
||||
"token_prices": {
|
||||
"batch_size": 0,
|
||||
"default": {
|
||||
"cache_read_price": 0,
|
||||
"cache_write_price": 0,
|
||||
"input_price": 0,
|
||||
"output_price": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"family": "gpt-4.1",
|
||||
"limits": {
|
||||
"max_context_window_tokens": 128000,
|
||||
"max_output_tokens": 16384,
|
||||
"max_prompt_tokens": 128000,
|
||||
"vision": {
|
||||
"max_prompt_image_size": 3145728,
|
||||
"max_prompt_images": 1,
|
||||
"supported_media_types": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/gif",
|
||||
"application/pdf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"object": "model_capabilities",
|
||||
"supports": {
|
||||
"parallel_tool_calls": true,
|
||||
"streaming": true,
|
||||
"structured_outputs": true,
|
||||
"tool_calls": true,
|
||||
"vision": true
|
||||
},
|
||||
"tokenizer": "o200k_base",
|
||||
"type": "chat"
|
||||
},
|
||||
"id": "gpt-4.1",
|
||||
"info_messages": [
|
||||
{
|
||||
"code": "model_pending_deprecation",
|
||||
"message": "GPT-4.1 has a planned deprecation date of 2026-06-01."
|
||||
}
|
||||
],
|
||||
"is_chat_default": false,
|
||||
"is_chat_fallback": false,
|
||||
"model_picker_category": "versatile",
|
||||
"model_picker_enabled": false,
|
||||
"model_picker_price_category": "medium",
|
||||
"name": "GPT-4.1",
|
||||
"object": "model",
|
||||
"policy": {
|
||||
"state": "enabled",
|
||||
"terms": "Enable access to the latest GPT-4.1 model from OpenAI. [Learn more about how GitHub Copilot serves GPT-4.1](https://docs.github.com/en/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task#gpt-41)."
|
||||
},
|
||||
"preview": false,
|
||||
"vendor": "Azure OpenAI",
|
||||
"version": "gpt-4.1-2025-04-14"
|
||||
}
|
||||
],
|
||||
"object": "list"
|
||||
}
|
||||
Reference in New Issue
Block a user