tuxevil-rotator 4.4.4 → 4.4.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/CHANGELOG.md +19 -0
- package/README.md +3 -0
- package/package.json +1 -1
- package/plugins/opencode-discovery/index.mjs +11 -1
- package/src/auto-routing-quality.ts +140 -14
- package/src/compat/model-specs.ts +43 -11
- package/src/compat.ts +99 -6
- package/src/providers/google-antigravity/catalog.ts +36 -1
- package/src/types.ts +153 -10
- package/src/web/lib/colors.ts +68 -4
- package/tools/telemetry-receiver/receiver.js +60 -18
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## [4.4.7] - 2026-11-23
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Refresh Artificial Analysis Intelligence Index routing-quality snapshot (`2026-11-23`) with per-effort scores for Gemini 4 (`gemini-4-neon`, `gemini-4-hydrogen`, `gemini-4-carbon`, `gemini-4-argon`), Gemini 3.8 Flash, Claude 5.5 (`claude-opus-5-5`, `claude-sonnet-5-5`), and OpenAI Codex (`gpt-6.2-astra`, `gpt-6.2-sol`, `gpt-6.1-sol`).
|
|
10
|
+
- Add static model specs, context windows, and distinct dashboard chart colors for Gemini 4 (`carbon`, `neon`, `argon`, `hydrogen` + `-tiered`/`-sonar`), Claude 5.5, GPT-6.1/6.2, and newer Ollama Cloud models.
|
|
11
|
+
|
|
12
|
+
## [4.4.6] - 2026-11-23
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Update `MODEL_PRICING` and the standalone telemetry receiver mirror with official November 2026 API rates for Gemini 4 (`gemini-4-neon`, `gemini-4-hydrogen`, `gemini-4-carbon`, `gemini-4-argon-disabled` plus family fallbacks), Claude 5.5 (`claude-opus-5-5`, `claude-sonnet-5-5` plus `5-5`/`5.5` family fallbacks), OpenAI Codex (`gpt-6.2-astra`, `gpt-6.2-sol`, `gpt-6.1-sol`, `gpt-6.1-terra`), and Ollama Cloud (`beam`, `deepseek-v4.1-flash:1017`, `hy4`, `inkling-2-small`, `kimi-k3.1-pro`, `mimo-v2.6-flash`, `mimo-v2.6-pro`, `minimax-m3.1-flash`, `muse-spark-open`, and updated `mistral-large-4`).
|
|
17
|
+
|
|
18
|
+
## [4.4.5] - 2026-11-23
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Publish `meta.reasoning_efforts` and `meta.default_reasoning_effort` on Antigravity `effortRouting` aliases and adaptive `-tiered` Gemini models (`thinking_budget: -1`) in `GET /v1/models`, and merge discovered effort controls into OpenCode models that previously only declared `capabilities.reasoning.supported: true`, so OpenCode displays effort variants for Gemini and Claude models.
|
|
23
|
+
|
|
5
24
|
## [4.4.4] - 2026-11-21
|
|
6
25
|
|
|
7
26
|
### Fixed
|
package/README.md
CHANGED
|
@@ -55,6 +55,9 @@ Originally built as a multi-account rotator for Google Antigravity. It now gener
|
|
|
55
55
|
|
|
56
56
|
## Current Model Update
|
|
57
57
|
|
|
58
|
+
- **v4.4.7: Artificial Analysis scores, static specs, and dashboard colors**: Refresh the Artificial Analysis Intelligence Index routing-quality snapshot (`2026-11-23`) with exact per-effort scores for Gemini 4 (`neon`, `hydrogen`, `carbon`, `argon`), Gemini 3.8 Flash, Claude 5.5, and OpenAI `gpt-6.1`/`gpt-6.2`, and add static model specs, context windows, and distinct dashboard chart colors for Gemini 4, Claude 5.5, GPT-6.1/6.2, and newer Ollama Cloud models. ([Release notes](https://github.com/tuxevil/tuxevil-rotator/releases/tag/v4.4.7))
|
|
59
|
+
- **v4.4.6: Model pricing refresh**: Add official November 2026 pricing and family fallbacks for Gemini 4 (`neon`, `hydrogen`, `carbon`, `argon`), Claude 5.5 (`opus`, `sonnet`), OpenAI `gpt-6.1`/`gpt-6.2`, and newly published Ollama Cloud models in both the rotator and standalone telemetry receiver. ([Release notes](https://github.com/tuxevil/tuxevil-rotator/releases/tag/v4.4.6))
|
|
60
|
+
- **v4.4.5: Antigravity reasoning effort metadata**: Publish `meta.reasoning_efforts` and `meta.default_reasoning_effort` for Antigravity `effortRouting` aliases and adaptive `-tiered` Gemini models in `GET /v1/models`, and merge discovered effort controls in the OpenCode discovery plugin so Gemini and Claude models expose effort variants. ([Release notes](https://github.com/tuxevil/tuxevil-rotator/releases/tag/v4.4.5))
|
|
58
61
|
- **v4.4.4: Gemini image output**: Deliver generated images through OpenAI Chat, OpenAI Responses, and Anthropic Messages, with support for editing an image on a follow-up turn. Native Gemini responses return structured image parts. ([Release notes](https://github.com/tuxevil/tuxevil-rotator/releases/tag/v4.4.4))
|
|
59
62
|
- **v4.4.3: Account model access and routing visibility**: Enforce provider plan eligibility for direct requests, selection, and retries across Antigravity and Codex. Admission rejections now appear in request history, and cooldown estimates use accounts eligible for the requested model. ([Release notes](https://github.com/tuxevil/tuxevil-rotator/releases/tag/v4.4.3))
|
|
60
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuxevil-rotator",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.7",
|
|
4
4
|
"description": "Multi-provider, multi-account AI proxy rotator with per-model routing, real-time quota tracking, and infringement detection (Google Antigravity, Ollama Cloud)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -291,12 +291,22 @@ export default {
|
|
|
291
291
|
|
|
292
292
|
const toModelInfo = (raw, existingModel) => {
|
|
293
293
|
const { id, modelDef } = mapModelToOpenCode(raw)
|
|
294
|
+
const existingReasoning = existingModel?.capabilities?.reasoning
|
|
295
|
+
const discoveredReasoning = modelDef.capabilities.reasoning
|
|
296
|
+
const mergedReasoning =
|
|
297
|
+
discoveredReasoning || existingReasoning
|
|
298
|
+
? { ...(discoveredReasoning ?? {}), ...(existingReasoning ?? {}) }
|
|
299
|
+
: undefined
|
|
294
300
|
return {
|
|
295
301
|
...modelInfoDefault(resolved.providerID, id),
|
|
296
302
|
...(existingModel ?? {}),
|
|
297
303
|
id: makeModelID(id),
|
|
298
304
|
name: existingModel?.name || modelDef.name,
|
|
299
|
-
capabilities: {
|
|
305
|
+
capabilities: {
|
|
306
|
+
...modelDef.capabilities,
|
|
307
|
+
...(existingModel?.capabilities ?? {}),
|
|
308
|
+
...(mergedReasoning ? { reasoning: mergedReasoning } : {}),
|
|
309
|
+
},
|
|
300
310
|
limit: { ...modelDef.limit, ...(existingModel?.limit ?? {}) },
|
|
301
311
|
...(modelDef.variants ? { variants: [...new Map([...modelDef.variants, ...(Array.isArray(existingModel?.variants) ? existingModel.variants : [])].map(v => [v.id, v])).values()] } : {}),
|
|
302
312
|
}
|
|
@@ -47,24 +47,112 @@ export interface AARoutingAssessment {
|
|
|
47
47
|
relativeToBest?: number;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export const AA_ROUTING_SCORE_SNAPSHOT = "2026-
|
|
50
|
+
export const AA_ROUTING_SCORE_SNAPSHOT = "2026-11-23";
|
|
51
51
|
|
|
52
52
|
const SCORE_RECORDS: Record<string, AAScoreRecord> = {
|
|
53
53
|
"gemini-3.8-flash-high": {
|
|
54
54
|
name: "Gemini 3.8 Flash", effort: "High", scores: { "v4.3.2": 41, "v5.0": 31 },
|
|
55
|
-
source: "https://artificialanalysis.ai/models/
|
|
55
|
+
source: "https://artificialanalysis.ai/models/gemini-3-8-flash",
|
|
56
|
+
},
|
|
57
|
+
"gemini-3.8-flash-medium": {
|
|
58
|
+
name: "Gemini 3.8 Flash", effort: "Medium", scores: { "v5.0": 30 },
|
|
59
|
+
source: "https://artificialanalysis.ai/models/gemini-3-8-flash",
|
|
60
|
+
},
|
|
61
|
+
"gemini-3.8-flash-low": {
|
|
62
|
+
name: "Gemini 3.8 Flash", effort: "Low", scores: { "v5.0": 23 },
|
|
63
|
+
source: "https://artificialanalysis.ai/models/gemini-3-8-flash",
|
|
56
64
|
},
|
|
57
65
|
"gemini-4-argon-high": {
|
|
58
66
|
name: "Gemini 4 Argon", effort: "High", scores: { "v4.3.2": 53, "v5.0": 50 },
|
|
59
|
-
source: "https://artificialanalysis.ai/models/
|
|
67
|
+
source: "https://artificialanalysis.ai/models/gemini-4-argon",
|
|
68
|
+
},
|
|
69
|
+
"gemini-4-argon-medium": {
|
|
70
|
+
name: "Gemini 4 Argon", effort: "Medium", scores: { "v5.0": 48 },
|
|
71
|
+
source: "https://artificialanalysis.ai/models/gemini-4-argon",
|
|
72
|
+
},
|
|
73
|
+
"gemini-4-carbon-high": {
|
|
74
|
+
name: "Gemini 4 Carbon", effort: "High", scores: { "v5.0": 60 },
|
|
75
|
+
source: "https://artificialanalysis.ai/models/gemini-4-carbon",
|
|
76
|
+
},
|
|
77
|
+
"gemini-4-carbon-medium": {
|
|
78
|
+
name: "Gemini 4 Carbon", effort: "Medium", scores: { "v5.0": 58 },
|
|
79
|
+
source: "https://artificialanalysis.ai/models/gemini-4-carbon",
|
|
80
|
+
},
|
|
81
|
+
"gemini-4-carbon-low": {
|
|
82
|
+
name: "Gemini 4 Carbon", effort: "Low", scores: { "v5.0": 54 },
|
|
83
|
+
source: "https://artificialanalysis.ai/models/gemini-4-carbon",
|
|
84
|
+
},
|
|
85
|
+
"gemini-4-neon-xhigh": {
|
|
86
|
+
name: "Gemini 4 Neon", effort: "Xhigh", scores: { "v5.0": 61 },
|
|
87
|
+
source: "https://artificialanalysis.ai/models/gemini-4-neon",
|
|
88
|
+
},
|
|
89
|
+
"gemini-4-neon-high": {
|
|
90
|
+
name: "Gemini 4 Neon", effort: "High", scores: { "v5.0": 60 },
|
|
91
|
+
source: "https://artificialanalysis.ai/models/gemini-4-neon",
|
|
92
|
+
},
|
|
93
|
+
"gemini-4-neon-medium": {
|
|
94
|
+
name: "Gemini 4 Neon", effort: "Medium", scores: { "v5.0": 55 },
|
|
95
|
+
source: "https://artificialanalysis.ai/models/gemini-4-neon",
|
|
96
|
+
},
|
|
97
|
+
"gemini-4-neon-low": {
|
|
98
|
+
name: "Gemini 4 Neon", effort: "Low", scores: { "v5.0": 44 },
|
|
99
|
+
source: "https://artificialanalysis.ai/models/gemini-4-neon",
|
|
100
|
+
},
|
|
101
|
+
"gemini-4-hydrogen-xhigh": {
|
|
102
|
+
name: "Gemini 4 Hydrogen", effort: "Xhigh", scores: { "v5.0": 54 },
|
|
103
|
+
source: "https://artificialanalysis.ai/models/gemini-4-hydrogen",
|
|
104
|
+
},
|
|
105
|
+
"gemini-4-hydrogen-high": {
|
|
106
|
+
name: "Gemini 4 Hydrogen", effort: "High", scores: { "v5.0": 51 },
|
|
107
|
+
source: "https://artificialanalysis.ai/models/gemini-4-hydrogen",
|
|
108
|
+
},
|
|
109
|
+
"gemini-4-hydrogen-medium": {
|
|
110
|
+
name: "Gemini 4 Hydrogen", effort: "Medium", scores: { "v5.0": 41 },
|
|
111
|
+
source: "https://artificialanalysis.ai/models/gemini-4-hydrogen",
|
|
112
|
+
},
|
|
113
|
+
"gemini-4-hydrogen-low": {
|
|
114
|
+
name: "Gemini 4 Hydrogen", effort: "Low", scores: { "v5.0": 27 },
|
|
115
|
+
source: "https://artificialanalysis.ai/models/gemini-4-hydrogen",
|
|
60
116
|
},
|
|
61
117
|
"claude-sonnet-5-5-max": {
|
|
62
|
-
name: "Claude Sonnet 5.5", effort: "Max", scores: { "v4.3.2": 56, "v5.0":
|
|
63
|
-
source: "https://artificialanalysis.ai/models/
|
|
118
|
+
name: "Claude Sonnet 5.5", effort: "Max", scores: { "v4.3.2": 56, "v5.0": 55 },
|
|
119
|
+
source: "https://artificialanalysis.ai/models/claude-sonnet-5-5",
|
|
120
|
+
},
|
|
121
|
+
"claude-sonnet-5-5-xhigh": {
|
|
122
|
+
name: "Claude Sonnet 5.5", effort: "Xhigh", scores: { "v5.0": 50 },
|
|
123
|
+
source: "https://artificialanalysis.ai/models/claude-sonnet-5-5",
|
|
124
|
+
},
|
|
125
|
+
"claude-sonnet-5-5-high": {
|
|
126
|
+
name: "Claude Sonnet 5.5", effort: "High", scores: { "v5.0": 42 },
|
|
127
|
+
source: "https://artificialanalysis.ai/models/claude-sonnet-5-5",
|
|
128
|
+
},
|
|
129
|
+
"claude-sonnet-5-5-medium": {
|
|
130
|
+
name: "Claude Sonnet 5.5", effort: "Medium", scores: { "v5.0": 31 },
|
|
131
|
+
source: "https://artificialanalysis.ai/models/claude-sonnet-5-5",
|
|
132
|
+
},
|
|
133
|
+
"claude-sonnet-5-5-low": {
|
|
134
|
+
name: "Claude Sonnet 5.5", effort: "Low", scores: { "v5.0": 26 },
|
|
135
|
+
source: "https://artificialanalysis.ai/models/claude-sonnet-5-5",
|
|
64
136
|
},
|
|
65
137
|
"claude-opus-5-5-max": {
|
|
66
|
-
name: "Claude Opus 5.5", effort: "Max", scores: { "v4.3.2": 58, "v5.0":
|
|
67
|
-
source: "https://artificialanalysis.ai/models/
|
|
138
|
+
name: "Claude Opus 5.5", effort: "Max", scores: { "v4.3.2": 58, "v5.0": 59 },
|
|
139
|
+
source: "https://artificialanalysis.ai/models/claude-opus-5-5",
|
|
140
|
+
},
|
|
141
|
+
"claude-opus-5-5-xhigh": {
|
|
142
|
+
name: "Claude Opus 5.5", effort: "Xhigh", scores: { "v5.0": 57 },
|
|
143
|
+
source: "https://artificialanalysis.ai/models/claude-opus-5-5",
|
|
144
|
+
},
|
|
145
|
+
"claude-opus-5-5-high": {
|
|
146
|
+
name: "Claude Opus 5.5", effort: "High", scores: { "v5.0": 52 },
|
|
147
|
+
source: "https://artificialanalysis.ai/models/claude-opus-5-5",
|
|
148
|
+
},
|
|
149
|
+
"claude-opus-5-5-medium": {
|
|
150
|
+
name: "Claude Opus 5.5", effort: "Medium", scores: { "v5.0": 48 },
|
|
151
|
+
source: "https://artificialanalysis.ai/models/claude-opus-5-5",
|
|
152
|
+
},
|
|
153
|
+
"claude-opus-5-5-low": {
|
|
154
|
+
name: "Claude Opus 5.5", effort: "Low", scores: { "v5.0": 35 },
|
|
155
|
+
source: "https://artificialanalysis.ai/models/claude-opus-5-5",
|
|
68
156
|
},
|
|
69
157
|
"gpt-6-luna-max": {
|
|
70
158
|
name: "GPT-6 Luna", effort: "Max", scores: { "v4.3.2": 38, "v5.0": 28 },
|
|
@@ -74,6 +162,18 @@ const SCORE_RECORDS: Record<string, AAScoreRecord> = {
|
|
|
74
162
|
name: "Beam", effort: null, scores: { "v4.3.2": 30, "v5.0": 18 },
|
|
75
163
|
source: "https://artificialanalysis.ai/models/comparisons/reflection-beam-vs-step-5",
|
|
76
164
|
},
|
|
165
|
+
"gpt-6.2-astra-max": {
|
|
166
|
+
name: "GPT-6.2 Astra", effort: "Max", scores: { "v5.0": 62 },
|
|
167
|
+
source: "https://artificialanalysis.ai/models/gpt-6-2-astra",
|
|
168
|
+
},
|
|
169
|
+
"gpt-6.2-sol-max": {
|
|
170
|
+
name: "GPT-6.2 Sol", effort: "Max", scores: { "v5.0": 57 },
|
|
171
|
+
source: "https://artificialanalysis.ai/models/gpt-6-2-sol",
|
|
172
|
+
},
|
|
173
|
+
"gpt-6.1-sol-max": {
|
|
174
|
+
name: "GPT-6.1 Sol", effort: "Max", scores: { "v5.0": 55 },
|
|
175
|
+
source: "https://artificialanalysis.ai/models/gpt-6-1-sol",
|
|
176
|
+
},
|
|
77
177
|
"gpt-6-astra-max": {
|
|
78
178
|
name: "GPT-6 Astra", effort: "Max", scores: { "v4.3.2": 53, "v5.0": 57 },
|
|
79
179
|
source: "https://artificialanalysis.ai/models/gpt-6-astra/",
|
|
@@ -159,23 +259,49 @@ const SCORE_RECORDS: Record<string, AAScoreRecord> = {
|
|
|
159
259
|
|
|
160
260
|
/** Exact provider/model allowlist; unknown dynamic catalog entries remain unscored. */
|
|
161
261
|
const ROUTER_ALIASES: Record<string, AARouterAlias> = {
|
|
162
|
-
"google-antigravity/gemini-3.8-flash
|
|
163
|
-
"google-antigravity/gemini-3.8-flash-
|
|
262
|
+
"google-antigravity/gemini-3.8-flash": { scoreId: "gemini-3.8-flash-medium", alignment: "effort-proxy" },
|
|
263
|
+
"google-antigravity/gemini-3.8-flash-tiered": { scoreId: "gemini-3.8-flash-medium", alignment: "effort-proxy" },
|
|
264
|
+
"google-antigravity/gemini-3.8-flash-low": { scoreId: "gemini-3.8-flash-low", alignment: "model-effort-exact" },
|
|
265
|
+
"google-antigravity/gemini-3.8-flash-medium": { scoreId: "gemini-3.8-flash-medium", alignment: "model-effort-exact" },
|
|
164
266
|
"google-antigravity/gemini-3.8-flash-high": { scoreId: "gemini-3.8-flash-high", alignment: "model-effort-exact" },
|
|
165
|
-
"google-antigravity/gemini-4-argon-
|
|
267
|
+
"google-antigravity/gemini-4-argon-low": { scoreId: "gemini-4-argon-medium", alignment: "effort-proxy" },
|
|
268
|
+
"google-antigravity/gemini-4-argon-medium": { scoreId: "gemini-4-argon-medium", alignment: "model-effort-exact" },
|
|
166
269
|
"google-antigravity/gemini-4-argon-high": { scoreId: "gemini-4-argon-high", alignment: "model-effort-exact" },
|
|
167
|
-
"google-antigravity/gemini-4-argon": { scoreId: "gemini-4-argon-
|
|
270
|
+
"google-antigravity/gemini-4-argon": { scoreId: "gemini-4-argon-medium", alignment: "effort-proxy" },
|
|
271
|
+
"google-antigravity/gemini-4-carbon": { scoreId: "gemini-4-carbon-medium", alignment: "effort-proxy" },
|
|
272
|
+
"google-antigravity/gemini-4-carbon-low": { scoreId: "gemini-4-carbon-low", alignment: "model-effort-exact" },
|
|
273
|
+
"google-antigravity/gemini-4-carbon-medium": { scoreId: "gemini-4-carbon-medium", alignment: "model-effort-exact" },
|
|
274
|
+
"google-antigravity/gemini-4-carbon-high": { scoreId: "gemini-4-carbon-high", alignment: "model-effort-exact" },
|
|
275
|
+
"google-antigravity/gemini-4-neon": { scoreId: "gemini-4-neon-high", alignment: "effort-proxy" },
|
|
276
|
+
"google-antigravity/gemini-4-neon-low": { scoreId: "gemini-4-neon-low", alignment: "model-effort-exact" },
|
|
277
|
+
"google-antigravity/gemini-4-neon-medium": { scoreId: "gemini-4-neon-medium", alignment: "model-effort-exact" },
|
|
278
|
+
"google-antigravity/gemini-4-neon-high": { scoreId: "gemini-4-neon-high", alignment: "model-effort-exact" },
|
|
279
|
+
"google-antigravity/gemini-4-neon-xhigh": { scoreId: "gemini-4-neon-xhigh", alignment: "model-effort-exact" },
|
|
280
|
+
"google-antigravity/gemini-4-hydrogen": { scoreId: "gemini-4-hydrogen-high", alignment: "effort-proxy" },
|
|
281
|
+
"google-antigravity/gemini-4-hydrogen-low": { scoreId: "gemini-4-hydrogen-low", alignment: "model-effort-exact" },
|
|
282
|
+
"google-antigravity/gemini-4-hydrogen-medium": { scoreId: "gemini-4-hydrogen-medium", alignment: "model-effort-exact" },
|
|
283
|
+
"google-antigravity/gemini-4-hydrogen-high": { scoreId: "gemini-4-hydrogen-high", alignment: "model-effort-exact" },
|
|
284
|
+
"google-antigravity/gemini-4-hydrogen-xhigh": { scoreId: "gemini-4-hydrogen-xhigh", alignment: "model-effort-exact" },
|
|
285
|
+
"google-antigravity/gemini-4-hydrogen-tiered": { scoreId: "gemini-4-hydrogen-high", alignment: "effort-proxy" },
|
|
286
|
+
"google-antigravity/gemini-4-hydrogen-tiered-high": { scoreId: "gemini-4-hydrogen-high", alignment: "effort-proxy" },
|
|
287
|
+
"google-antigravity/gemini-4-hydrogen-tiered-xhigh": { scoreId: "gemini-4-hydrogen-xhigh", alignment: "effort-proxy" },
|
|
168
288
|
"google-antigravity/claude-sonnet-5-5": { scoreId: "claude-sonnet-5-5-max", alignment: "effort-proxy" },
|
|
169
|
-
"google-antigravity/claude-sonnet-5-5-
|
|
170
|
-
"google-antigravity/claude-sonnet-5-5-
|
|
289
|
+
"google-antigravity/claude-sonnet-5-5-low": { scoreId: "claude-sonnet-5-5-low", alignment: "model-effort-exact" },
|
|
290
|
+
"google-antigravity/claude-sonnet-5-5-medium": { scoreId: "claude-sonnet-5-5-medium", alignment: "model-effort-exact" },
|
|
291
|
+
"google-antigravity/claude-sonnet-5-5-high": { scoreId: "claude-sonnet-5-5-high", alignment: "model-effort-exact" },
|
|
171
292
|
"google-antigravity/claude-opus-5-5": { scoreId: "claude-opus-5-5-max", alignment: "effort-proxy" },
|
|
172
|
-
"google-antigravity/claude-opus-5-5-
|
|
293
|
+
"google-antigravity/claude-opus-5-5-low": { scoreId: "claude-opus-5-5-low", alignment: "model-effort-exact" },
|
|
294
|
+
"google-antigravity/claude-opus-5-5-medium": { scoreId: "claude-opus-5-5-medium", alignment: "model-effort-exact" },
|
|
295
|
+
"google-antigravity/claude-opus-5-5-high": { scoreId: "claude-opus-5-5-high", alignment: "model-effort-exact" },
|
|
173
296
|
"google-antigravity/claude-sonnet-4-6": { scoreId: "claude-sonnet-4-6-max", alignment: "effort-proxy" },
|
|
174
297
|
"google-antigravity/claude-sonnet-4-6-thinking": { scoreId: "claude-sonnet-4-6-max", alignment: "effort-proxy" },
|
|
175
298
|
"google-antigravity/claude-opus-4-6": { scoreId: "claude-opus-4-6-max", alignment: "estimated" },
|
|
176
299
|
"google-antigravity/claude-opus-4-6-thinking": { scoreId: "claude-opus-4-6-max", alignment: "estimated" },
|
|
177
300
|
"google-antigravity/claude-sonnet-4-6-high": { scoreId: "claude-sonnet-4-6-max", alignment: "effort-proxy" },
|
|
178
301
|
"google-antigravity/claude-opus-4-6-high": { scoreId: "claude-opus-4-6-max", alignment: "estimated" },
|
|
302
|
+
"openai-codex/gpt-6.2-astra": { scoreId: "gpt-6.2-astra-max", alignment: "effort-proxy" },
|
|
303
|
+
"openai-codex/gpt-6.2-sol": { scoreId: "gpt-6.2-sol-max", alignment: "effort-proxy" },
|
|
304
|
+
"openai-codex/gpt-6.1-sol": { scoreId: "gpt-6.1-sol-max", alignment: "effort-proxy" },
|
|
179
305
|
"openai-codex/gpt-6-astra": { scoreId: "gpt-6-astra-max", alignment: "effort-proxy" },
|
|
180
306
|
"openai-codex/gpt-6-sol": { scoreId: "gpt-6-sol-max", alignment: "effort-proxy" },
|
|
181
307
|
"openai-codex/gpt-6-luna": { scoreId: "gpt-6-luna-max", alignment: "effort-proxy" },
|
|
@@ -25,17 +25,49 @@ export const DEFAULT_MODEL_SPECS: Record<string, ModelSpec> = {
|
|
|
25
25
|
"gemini-3.6-flash-low": { maxOutputTokens: 65536, thinkingBudget: 1000, isThinking: true, contextWindow: 1_000_000 },
|
|
26
26
|
"gemini-3.6-flash-tiered": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
27
27
|
"gemini-3.7-flash-tiered": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
28
|
-
"gemini-3.8-flash
|
|
29
|
-
"gemini-3.8-flash-
|
|
30
|
-
"gemini-3.8-flash-
|
|
31
|
-
"gemini-
|
|
32
|
-
"gemini-
|
|
33
|
-
"gemini-4-
|
|
34
|
-
"gemini-4-
|
|
35
|
-
"gemini-
|
|
36
|
-
"gemini-
|
|
37
|
-
"gemini-
|
|
38
|
-
"gemini-
|
|
28
|
+
"gemini-3.8-flash": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
29
|
+
"gemini-3.8-flash-tiered": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
30
|
+
"gemini-3.8-flash-high": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
31
|
+
"gemini-3.8-flash-medium": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
32
|
+
"gemini-3.8-flash-low": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
33
|
+
"gemini-4-carbon": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
34
|
+
"gemini-4-carbon-disabled": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
35
|
+
"gemini-4-carbon-high": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
36
|
+
"gemini-4-carbon-medium": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
37
|
+
"gemini-4-carbon-low": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
38
|
+
"gemini-4-argon": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
39
|
+
"gemini-4-argon-disabled": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
40
|
+
"gemini-4-argon-high": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
41
|
+
"gemini-4-argon-medium": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
42
|
+
"gemini-4-argon-low": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
43
|
+
"gemini-4-neon": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
44
|
+
"gemini-4-neon-disabled": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
45
|
+
"gemini-4-neon-xhigh": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
46
|
+
"gemini-4-neon-high": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
47
|
+
"gemini-4-neon-medium": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
48
|
+
"gemini-4-neon-low": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
49
|
+
"gemini-4-hydrogen": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
50
|
+
"gemini-4-hydrogen-disabled":{ maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
51
|
+
"gemini-4-hydrogen-xhigh": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
52
|
+
"gemini-4-hydrogen-high": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
53
|
+
"gemini-4-hydrogen-medium": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
54
|
+
"gemini-4-hydrogen-low": { maxOutputTokens: 262144, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
55
|
+
"gemini-4-hydrogen-tiered": { maxOutputTokens: 262144, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
56
|
+
"gemini-4-hydrogen-tiered-high": { maxOutputTokens: 262144, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
57
|
+
"gemini-4-hydrogen-tiered-xhigh": { maxOutputTokens: 262144, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
58
|
+
"gemini-4-hydrogen-sonar": { maxOutputTokens: 65536, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
59
|
+
"gemini-3.5-flash-lite": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true, contextWindow: 1_000_000 },
|
|
60
|
+
"gemini-3-flash": { maxOutputTokens: 65536, thinkingBudget: 4000, isThinking: true, contextWindow: 1_000_000 },
|
|
61
|
+
"gemini-2.5-flash": { maxOutputTokens: 65535, thinkingBudget: 24576, isThinking: true, contextWindow: 1_000_000 },
|
|
62
|
+
"gemini-2.5-pro": { maxOutputTokens: 65535, thinkingBudget: 1024, isThinking: true, contextWindow: 1_000_000 },
|
|
63
|
+
"claude-opus-5-5": { maxOutputTokens: 128000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
64
|
+
"claude-opus-5-5-high": { maxOutputTokens: 128000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
65
|
+
"claude-opus-5-5-medium": { maxOutputTokens: 128000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
66
|
+
"claude-opus-5-5-low": { maxOutputTokens: 128000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
67
|
+
"claude-sonnet-5-5": { maxOutputTokens: 128000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
68
|
+
"claude-sonnet-5-5-high": { maxOutputTokens: 128000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
69
|
+
"claude-sonnet-5-5-medium": { maxOutputTokens: 128000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
70
|
+
"claude-sonnet-5-5-low": { maxOutputTokens: 128000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
39
71
|
"claude-sonnet-4-6": { maxOutputTokens: 64000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
40
72
|
"claude-sonnet-4-6-thinking":{ maxOutputTokens: 64000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
|
41
73
|
"claude-opus-4-6-thinking": { maxOutputTokens: 64000, thinkingBudget: 32768, isThinking: true, contextWindow: 1_000_000 },
|
package/src/compat.ts
CHANGED
|
@@ -83,6 +83,7 @@ import {
|
|
|
83
83
|
saveResponsesEntry,
|
|
84
84
|
toolArgumentsToObject,
|
|
85
85
|
geminiResponsePartToCompat,
|
|
86
|
+
isTieredEffortModel,
|
|
86
87
|
} from "./providers/google-antigravity/translators.js";
|
|
87
88
|
import {
|
|
88
89
|
openAIToOllamaBody,
|
|
@@ -2599,20 +2600,53 @@ export interface OpenAIModelCatalogEntry {
|
|
|
2599
2600
|
meta: Record<string, unknown>;
|
|
2600
2601
|
}
|
|
2601
2602
|
|
|
2603
|
+
const SCALAR_REASONING_EFFORTS = [
|
|
2604
|
+
"none",
|
|
2605
|
+
"minimal",
|
|
2606
|
+
"low",
|
|
2607
|
+
"medium",
|
|
2608
|
+
"high",
|
|
2609
|
+
"xhigh",
|
|
2610
|
+
"max",
|
|
2611
|
+
] as const;
|
|
2612
|
+
|
|
2613
|
+
const TIERED_REASONING_EFFORTS = ["low", "medium", "high"] as const;
|
|
2614
|
+
|
|
2615
|
+
function withAdaptiveTieredEfforts(model: CompatModelEntry): CompatModelEntry {
|
|
2616
|
+
if (
|
|
2617
|
+
model.isThinking &&
|
|
2618
|
+
model.thinkingBudget === -1 &&
|
|
2619
|
+
getModelFamily(model.id) !== "claude" &&
|
|
2620
|
+
isTieredEffortModel(model.id)
|
|
2621
|
+
) {
|
|
2622
|
+
return {
|
|
2623
|
+
...model,
|
|
2624
|
+
reasoningEfforts: [...TIERED_REASONING_EFFORTS],
|
|
2625
|
+
};
|
|
2626
|
+
}
|
|
2627
|
+
return model;
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2602
2630
|
function getOpenAIAntigravityModels(
|
|
2603
2631
|
source: ModelCatalogSource,
|
|
2604
2632
|
): CompatModelEntry[] {
|
|
2605
2633
|
// Effort aliases stand in for their targets, so filter before swapping them.
|
|
2606
2634
|
const all = getEffectiveAntigravityModels();
|
|
2607
|
-
const result = all
|
|
2635
|
+
const result = all
|
|
2636
|
+
.filter((model) => isModelServed(source, "google-antigravity", model.id))
|
|
2637
|
+
.map(withAdaptiveTieredEfforts);
|
|
2608
2638
|
const rules = getEffortRouting();
|
|
2609
2639
|
if (!rules || Object.keys(rules).length === 0) {
|
|
2610
2640
|
return result;
|
|
2611
2641
|
}
|
|
2612
2642
|
|
|
2643
|
+
const servedById = new Map(result.map((model) => [model.id.toLowerCase(), model]));
|
|
2613
2644
|
const successfulAliases: Array<{
|
|
2614
2645
|
alias: string;
|
|
2615
2646
|
representative: CompatModelEntry;
|
|
2647
|
+
isThinking: boolean;
|
|
2648
|
+
reasoningEfforts?: string[];
|
|
2649
|
+
defaultReasoningEffort?: string;
|
|
2616
2650
|
}> = [];
|
|
2617
2651
|
const hiddenTargetIds = new Set<string>();
|
|
2618
2652
|
const successfulAliasNames = new Set<string>();
|
|
@@ -2641,9 +2675,7 @@ function getOpenAIAntigravityModels(
|
|
|
2641
2675
|
unavailableAliasNames.add(alias.toLowerCase());
|
|
2642
2676
|
continue;
|
|
2643
2677
|
}
|
|
2644
|
-
const representative =
|
|
2645
|
-
(m) => m.id.toLowerCase() === defaultTargetId.toLowerCase(),
|
|
2646
|
-
);
|
|
2678
|
+
const representative = servedById.get(defaultTargetId.toLowerCase());
|
|
2647
2679
|
if (!representative) {
|
|
2648
2680
|
// A default target turned off on the Models page hides the alias; only
|
|
2649
2681
|
// a target missing from the catalog is a configuration problem.
|
|
@@ -2654,7 +2686,47 @@ function getOpenAIAntigravityModels(
|
|
|
2654
2686
|
}
|
|
2655
2687
|
continue;
|
|
2656
2688
|
}
|
|
2657
|
-
|
|
2689
|
+
|
|
2690
|
+
const servedTargetModels: CompatModelEntry[] = [];
|
|
2691
|
+
const servedEffortSet = new Set<string>();
|
|
2692
|
+
for (const [effortKey, targetId] of Object.entries(rule.targets)) {
|
|
2693
|
+
const target = servedById.get(targetId.toLowerCase());
|
|
2694
|
+
if (!target) continue;
|
|
2695
|
+
if (
|
|
2696
|
+
isRequestOff(source, {
|
|
2697
|
+
catalogModel: alias,
|
|
2698
|
+
model: targetId,
|
|
2699
|
+
providerId: "google-antigravity",
|
|
2700
|
+
})
|
|
2701
|
+
) {
|
|
2702
|
+
continue;
|
|
2703
|
+
}
|
|
2704
|
+
servedTargetModels.push(target);
|
|
2705
|
+
servedEffortSet.add(effortKey.trim().toLowerCase());
|
|
2706
|
+
}
|
|
2707
|
+
const aliasEfforts = SCALAR_REASONING_EFFORTS.filter((effort) =>
|
|
2708
|
+
servedEffortSet.has(effort),
|
|
2709
|
+
);
|
|
2710
|
+
const aliasIsThinking =
|
|
2711
|
+
representative.isThinking || servedTargetModels.some((model) => model.isThinking);
|
|
2712
|
+
const hasAliasEffortSelector = aliasEfforts.length >= 2;
|
|
2713
|
+
const normalizedDefaultEffort = defaultEffortKey.trim().toLowerCase();
|
|
2714
|
+
|
|
2715
|
+
successfulAliases.push({
|
|
2716
|
+
alias,
|
|
2717
|
+
representative,
|
|
2718
|
+
isThinking: aliasIsThinking,
|
|
2719
|
+
reasoningEfforts: hasAliasEffortSelector
|
|
2720
|
+
? aliasEfforts
|
|
2721
|
+
: representative.reasoningEfforts,
|
|
2722
|
+
defaultReasoningEffort: hasAliasEffortSelector
|
|
2723
|
+
? aliasEfforts.includes(
|
|
2724
|
+
normalizedDefaultEffort as (typeof SCALAR_REASONING_EFFORTS)[number],
|
|
2725
|
+
)
|
|
2726
|
+
? normalizedDefaultEffort
|
|
2727
|
+
: undefined
|
|
2728
|
+
: representative.defaultReasoningEffort,
|
|
2729
|
+
});
|
|
2658
2730
|
successfulAliasNames.add(alias.toLowerCase());
|
|
2659
2731
|
for (const targetId of Object.values(rule.targets)) {
|
|
2660
2732
|
hiddenTargetIds.add(targetId.toLowerCase());
|
|
@@ -2668,10 +2740,19 @@ function getOpenAIAntigravityModels(
|
|
|
2668
2740
|
!successfulAliasNames.has(m.id.toLowerCase()),
|
|
2669
2741
|
);
|
|
2670
2742
|
|
|
2671
|
-
for (const {
|
|
2743
|
+
for (const {
|
|
2744
|
+
alias,
|
|
2745
|
+
representative,
|
|
2746
|
+
isThinking,
|
|
2747
|
+
reasoningEfforts,
|
|
2748
|
+
defaultReasoningEffort,
|
|
2749
|
+
} of successfulAliases) {
|
|
2672
2750
|
filtered.push({
|
|
2673
2751
|
...representative,
|
|
2674
2752
|
id: alias,
|
|
2753
|
+
isThinking,
|
|
2754
|
+
...(reasoningEfforts ? { reasoningEfforts } : {}),
|
|
2755
|
+
...(defaultReasoningEffort ? { defaultReasoningEffort } : {}),
|
|
2675
2756
|
});
|
|
2676
2757
|
}
|
|
2677
2758
|
|
|
@@ -2706,6 +2787,8 @@ export function buildOpenAIModelCatalog(
|
|
|
2706
2787
|
thinkingBudget,
|
|
2707
2788
|
minThinkingBudget,
|
|
2708
2789
|
isThinking,
|
|
2790
|
+
reasoningEfforts,
|
|
2791
|
+
defaultReasoningEffort,
|
|
2709
2792
|
}) => ({
|
|
2710
2793
|
id,
|
|
2711
2794
|
object: "model",
|
|
@@ -2725,6 +2808,16 @@ export function buildOpenAIModelCatalog(
|
|
|
2725
2808
|
...(minThinkingBudget !== undefined
|
|
2726
2809
|
? { min_thinking_budget: minThinkingBudget }
|
|
2727
2810
|
: {}),
|
|
2811
|
+
...(isThinking && reasoningEfforts && reasoningEfforts.length > 0
|
|
2812
|
+
? { reasoning_efforts: reasoningEfforts }
|
|
2813
|
+
: {}),
|
|
2814
|
+
...(isThinking &&
|
|
2815
|
+
reasoningEfforts &&
|
|
2816
|
+
reasoningEfforts.length > 0 &&
|
|
2817
|
+
defaultReasoningEffort &&
|
|
2818
|
+
reasoningEfforts.includes(defaultReasoningEffort)
|
|
2819
|
+
? { default_reasoning_effort: defaultReasoningEffort }
|
|
2820
|
+
: {}),
|
|
2728
2821
|
},
|
|
2729
2822
|
}),
|
|
2730
2823
|
);
|
|
@@ -26,6 +26,15 @@ export interface AntigravityModelSpec {
|
|
|
26
26
|
* `getAntigravityContextWindow` can do an O(1) lookup.
|
|
27
27
|
*/
|
|
28
28
|
export const ANTIGRAVITY_CONTEXT_WINDOWS: Record<string, number> = {
|
|
29
|
+
// Anthropic Claude 5.5 family — 1M context window per Anthropic docs.
|
|
30
|
+
"claude-opus-5-5": 1_000_000,
|
|
31
|
+
"claude-opus-5-5-high": 1_000_000,
|
|
32
|
+
"claude-opus-5-5-medium": 1_000_000,
|
|
33
|
+
"claude-opus-5-5-low": 1_000_000,
|
|
34
|
+
"claude-sonnet-5-5": 1_000_000,
|
|
35
|
+
"claude-sonnet-5-5-high": 1_000_000,
|
|
36
|
+
"claude-sonnet-5-5-medium": 1_000_000,
|
|
37
|
+
"claude-sonnet-5-5-low": 1_000_000,
|
|
29
38
|
// Anthropic Claude 4.6 family — 1M context window per Anthropic docs.
|
|
30
39
|
"claude-opus-4-6": 1_000_000,
|
|
31
40
|
"claude-opus-4-6-thinking": 1_000_000,
|
|
@@ -39,12 +48,36 @@ export const ANTIGRAVITY_CONTEXT_WINDOWS: Record<string, number> = {
|
|
|
39
48
|
// OpenAI gpt-oss-120b — 131,072 per platform.openai.com/docs/models/gpt-oss-120b.
|
|
40
49
|
"gpt-oss-120b": 131_072,
|
|
41
50
|
"gpt-oss-120b-medium": 131_072,
|
|
42
|
-
// Google Gemini 4
|
|
51
|
+
// Google Gemini 4 family — 1M unified context window per Google Gemini API docs.
|
|
52
|
+
"gemini-4-carbon": 1_000_000,
|
|
53
|
+
"gemini-4-carbon-disabled": 1_000_000,
|
|
54
|
+
"gemini-4-carbon-high": 1_000_000,
|
|
55
|
+
"gemini-4-carbon-medium": 1_000_000,
|
|
56
|
+
"gemini-4-carbon-low": 1_000_000,
|
|
43
57
|
"gemini-4-argon": 1_000_000,
|
|
58
|
+
"gemini-4-argon-disabled": 1_000_000,
|
|
44
59
|
"gemini-4-argon-high": 1_000_000,
|
|
45
60
|
"gemini-4-argon-medium": 1_000_000,
|
|
46
61
|
"gemini-4-argon-low": 1_000_000,
|
|
62
|
+
"gemini-4-neon": 1_000_000,
|
|
63
|
+
"gemini-4-neon-disabled": 1_000_000,
|
|
64
|
+
"gemini-4-neon-xhigh": 1_000_000,
|
|
65
|
+
"gemini-4-neon-high": 1_000_000,
|
|
66
|
+
"gemini-4-neon-medium": 1_000_000,
|
|
67
|
+
"gemini-4-neon-low": 1_000_000,
|
|
68
|
+
"gemini-4-hydrogen": 1_000_000,
|
|
69
|
+
"gemini-4-hydrogen-disabled": 1_000_000,
|
|
70
|
+
"gemini-4-hydrogen-xhigh": 1_000_000,
|
|
71
|
+
"gemini-4-hydrogen-high": 1_000_000,
|
|
72
|
+
"gemini-4-hydrogen-medium": 1_000_000,
|
|
73
|
+
"gemini-4-hydrogen-low": 1_000_000,
|
|
74
|
+
"gemini-4-hydrogen-tiered": 1_000_000,
|
|
75
|
+
"gemini-4-hydrogen-tiered-high": 1_000_000,
|
|
76
|
+
"gemini-4-hydrogen-tiered-xhigh": 1_000_000,
|
|
77
|
+
"gemini-4-hydrogen-sonar": 1_000_000,
|
|
47
78
|
// Google Gemini 3.x — 1M context window per deepmind.google/models/gemini/*.
|
|
79
|
+
"gemini-3.8-flash": 1_000_000,
|
|
80
|
+
"gemini-3.8-flash-tiered": 1_000_000,
|
|
48
81
|
"gemini-3.8-flash-high": 1_000_000,
|
|
49
82
|
"gemini-3.8-flash-medium": 1_000_000,
|
|
50
83
|
"gemini-3.8-flash-low": 1_000_000,
|
|
@@ -124,6 +157,8 @@ export interface CompatModelEntry {
|
|
|
124
157
|
thinkingBudget: number;
|
|
125
158
|
minThinkingBudget?: number;
|
|
126
159
|
isThinking: boolean;
|
|
160
|
+
reasoningEfforts?: string[];
|
|
161
|
+
defaultReasoningEffort?: string;
|
|
127
162
|
}
|
|
128
163
|
|
|
129
164
|
export function getEffectiveAntigravityModels(): CompatModelEntry[] {
|
package/src/types.ts
CHANGED
|
@@ -884,10 +884,22 @@ export interface ModelPricing {
|
|
|
884
884
|
}
|
|
885
885
|
|
|
886
886
|
// Pricing per 1M tokens (USD) — what these would cost on paid APIs.
|
|
887
|
-
// Source audit and estimation limits: docs/model-pricing.md (2026-
|
|
887
|
+
// Source audit and estimation limits: docs/model-pricing.md (2026-11-23).
|
|
888
888
|
export const MODEL_PRICING: Record<string, ModelPricing> = {
|
|
889
889
|
"claude-opus-4-6-thinking": { inputPer1M: 5.0, outputPer1M: 25.0 },
|
|
890
890
|
"claude-sonnet-4-6": { inputPer1M: 3.0, outputPer1M: 15.0 },
|
|
891
|
+
// Official Anthropic pricing verified 2026-11-23:
|
|
892
|
+
// https://platform.claude.com/docs/en/about-claude/pricing
|
|
893
|
+
"claude-opus-5-5": {
|
|
894
|
+
inputPer1M: 4.0,
|
|
895
|
+
outputPer1M: 20.0,
|
|
896
|
+
cachingPer1M: 0.2,
|
|
897
|
+
},
|
|
898
|
+
"claude-sonnet-5-5": {
|
|
899
|
+
inputPer1M: 2.0,
|
|
900
|
+
outputPer1M: 10.0,
|
|
901
|
+
cachingPer1M: 0.1,
|
|
902
|
+
},
|
|
891
903
|
"gemini-3.1-pro": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
892
904
|
"gemini-3.1-pro-low": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
893
905
|
"gemini-3.1-pro-high": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
@@ -937,8 +949,20 @@ export const MODEL_PRICING: Record<string, ModelPricing> = {
|
|
|
937
949
|
cachingStoragePer1MPerHour: 0.5,
|
|
938
950
|
},
|
|
939
951
|
// Gemini 3.8 Flash — introductory public Gemini API pricing verified
|
|
940
|
-
// 2026-
|
|
941
|
-
// separate low/medium/high model ids.
|
|
952
|
+
// 2026-11-23. These rates double on 2027-01-01. Antigravity exposes
|
|
953
|
+
// separate low/medium/high model ids plus effort alias and tiered id.
|
|
954
|
+
"gemini-3.8-flash": {
|
|
955
|
+
inputPer1M: 0.75,
|
|
956
|
+
outputPer1M: 3.75,
|
|
957
|
+
cachingPer1M: 0.075,
|
|
958
|
+
cachingStoragePer1MPerHour: 0.5,
|
|
959
|
+
},
|
|
960
|
+
"gemini-3.8-flash-tiered": {
|
|
961
|
+
inputPer1M: 0.75,
|
|
962
|
+
outputPer1M: 3.75,
|
|
963
|
+
cachingPer1M: 0.075,
|
|
964
|
+
cachingStoragePer1MPerHour: 0.5,
|
|
965
|
+
},
|
|
942
966
|
"gemini-3.8-flash-low": {
|
|
943
967
|
inputPer1M: 0.75,
|
|
944
968
|
outputPer1M: 3.75,
|
|
@@ -957,13 +981,23 @@ export const MODEL_PRICING: Record<string, ModelPricing> = {
|
|
|
957
981
|
cachingPer1M: 0.075,
|
|
958
982
|
cachingStoragePer1MPerHour: 0.5,
|
|
959
983
|
},
|
|
960
|
-
//
|
|
961
|
-
// https://ai.google.dev/gemini-api/docs/pricing (verified 2026-
|
|
984
|
+
// Gemini 4 Carbon & Argon: standard rates through 2026-11-30; then 4/20/0.2.
|
|
985
|
+
// Implicit cache only. https://ai.google.dev/gemini-api/docs/pricing (verified 2026-11-23).
|
|
986
|
+
"gemini-4-carbon": {
|
|
987
|
+
inputPer1M: 2.0,
|
|
988
|
+
outputPer1M: 10.0,
|
|
989
|
+
cachingPer1M: 0.1,
|
|
990
|
+
},
|
|
962
991
|
"gemini-4-argon": {
|
|
963
992
|
inputPer1M: 2.0,
|
|
964
993
|
outputPer1M: 10.0,
|
|
965
994
|
cachingPer1M: 0.1,
|
|
966
995
|
},
|
|
996
|
+
"gemini-4-argon-disabled": {
|
|
997
|
+
inputPer1M: 2.0,
|
|
998
|
+
outputPer1M: 10.0,
|
|
999
|
+
cachingPer1M: 0.1,
|
|
1000
|
+
},
|
|
967
1001
|
"gemini-4-argon-low": {
|
|
968
1002
|
inputPer1M: 2.0,
|
|
969
1003
|
outputPer1M: 10.0,
|
|
@@ -979,12 +1013,94 @@ export const MODEL_PRICING: Record<string, ModelPricing> = {
|
|
|
979
1013
|
outputPer1M: 10.0,
|
|
980
1014
|
cachingPer1M: 0.1,
|
|
981
1015
|
},
|
|
1016
|
+
// Gemini 4 Neon: standard paid tier rates, implicit cache only (verified 2026-11-23).
|
|
1017
|
+
"gemini-4-neon": {
|
|
1018
|
+
inputPer1M: 3.0,
|
|
1019
|
+
outputPer1M: 15.0,
|
|
1020
|
+
cachingPer1M: 0.15,
|
|
1021
|
+
},
|
|
1022
|
+
"gemini-4-neon-low": {
|
|
1023
|
+
inputPer1M: 3.0,
|
|
1024
|
+
outputPer1M: 15.0,
|
|
1025
|
+
cachingPer1M: 0.15,
|
|
1026
|
+
},
|
|
1027
|
+
"gemini-4-neon-medium": {
|
|
1028
|
+
inputPer1M: 3.0,
|
|
1029
|
+
outputPer1M: 15.0,
|
|
1030
|
+
cachingPer1M: 0.15,
|
|
1031
|
+
},
|
|
1032
|
+
"gemini-4-neon-high": {
|
|
1033
|
+
inputPer1M: 3.0,
|
|
1034
|
+
outputPer1M: 15.0,
|
|
1035
|
+
cachingPer1M: 0.15,
|
|
1036
|
+
},
|
|
1037
|
+
"gemini-4-neon-xhigh": {
|
|
1038
|
+
inputPer1M: 3.0,
|
|
1039
|
+
outputPer1M: 15.0,
|
|
1040
|
+
cachingPer1M: 0.15,
|
|
1041
|
+
},
|
|
1042
|
+
// Gemini 4 Hydrogen: standard paid tier rates, implicit cache only (verified 2026-11-23).
|
|
1043
|
+
"gemini-4-hydrogen": {
|
|
1044
|
+
inputPer1M: 1.5,
|
|
1045
|
+
outputPer1M: 7.5,
|
|
1046
|
+
cachingPer1M: 0.075,
|
|
1047
|
+
},
|
|
1048
|
+
"gemini-4-hydrogen-low": {
|
|
1049
|
+
inputPer1M: 1.5,
|
|
1050
|
+
outputPer1M: 7.5,
|
|
1051
|
+
cachingPer1M: 0.075,
|
|
1052
|
+
},
|
|
1053
|
+
"gemini-4-hydrogen-medium": {
|
|
1054
|
+
inputPer1M: 1.5,
|
|
1055
|
+
outputPer1M: 7.5,
|
|
1056
|
+
cachingPer1M: 0.075,
|
|
1057
|
+
},
|
|
1058
|
+
"gemini-4-hydrogen-high": {
|
|
1059
|
+
inputPer1M: 1.5,
|
|
1060
|
+
outputPer1M: 7.5,
|
|
1061
|
+
cachingPer1M: 0.075,
|
|
1062
|
+
},
|
|
1063
|
+
"gemini-4-hydrogen-xhigh": {
|
|
1064
|
+
inputPer1M: 1.5,
|
|
1065
|
+
outputPer1M: 7.5,
|
|
1066
|
+
cachingPer1M: 0.075,
|
|
1067
|
+
},
|
|
1068
|
+
"gemini-4-hydrogen-tiered": {
|
|
1069
|
+
inputPer1M: 1.5,
|
|
1070
|
+
outputPer1M: 7.5,
|
|
1071
|
+
cachingPer1M: 0.075,
|
|
1072
|
+
},
|
|
1073
|
+
"gemini-4-hydrogen-sonar": {
|
|
1074
|
+
inputPer1M: 1.5,
|
|
1075
|
+
outputPer1M: 7.5,
|
|
1076
|
+
cachingPer1M: 0.075,
|
|
1077
|
+
},
|
|
982
1078
|
"gpt-oss-120b-medium": { inputPer1M: 2.0, outputPer1M: 10.0 },
|
|
983
1079
|
|
|
984
|
-
// OpenAI Codex API-equivalent standard rates, checked against
|
|
985
|
-
// https://developers.openai.com/api/docs/pricing on 2026-
|
|
1080
|
+
// OpenAI Codex API-equivalent standard short-context rates, checked against
|
|
1081
|
+
// https://developers.openai.com/api/docs/pricing on 2026-11-23.
|
|
986
1082
|
// Spend logs use aggregate input/output tokens;
|
|
987
1083
|
// cache rates are metadata and are not applied separately.
|
|
1084
|
+
"gpt-6.2-astra": {
|
|
1085
|
+
inputPer1M: 8.0,
|
|
1086
|
+
outputPer1M: 40.0,
|
|
1087
|
+
cachingPer1M: 0.4,
|
|
1088
|
+
},
|
|
1089
|
+
"gpt-6.2-sol": {
|
|
1090
|
+
inputPer1M: 2.0,
|
|
1091
|
+
outputPer1M: 10.0,
|
|
1092
|
+
cachingPer1M: 0.1,
|
|
1093
|
+
},
|
|
1094
|
+
"gpt-6.1-sol": {
|
|
1095
|
+
inputPer1M: 2.0,
|
|
1096
|
+
outputPer1M: 10.0,
|
|
1097
|
+
cachingPer1M: 0.1,
|
|
1098
|
+
},
|
|
1099
|
+
"gpt-6.1-terra": {
|
|
1100
|
+
inputPer1M: 1.0,
|
|
1101
|
+
outputPer1M: 5.0,
|
|
1102
|
+
cachingPer1M: 0.05,
|
|
1103
|
+
},
|
|
988
1104
|
"gpt-6-astra": {
|
|
989
1105
|
inputPer1M: 10.0,
|
|
990
1106
|
outputPer1M: 50.0,
|
|
@@ -1000,7 +1116,7 @@ export const MODEL_PRICING: Record<string, ModelPricing> = {
|
|
|
1000
1116
|
outputPer1M: 0.5,
|
|
1001
1117
|
cachingPer1M: 0.01,
|
|
1002
1118
|
},
|
|
1003
|
-
// Promotional pricing available
|
|
1119
|
+
// Promotional pricing available through 2026-11-30.
|
|
1004
1120
|
"gpt-5.6-sol": {
|
|
1005
1121
|
inputPer1M: 4.0,
|
|
1006
1122
|
outputPer1M: 20.0,
|
|
@@ -1017,26 +1133,35 @@ export const MODEL_PRICING: Record<string, ModelPricing> = {
|
|
|
1017
1133
|
cachingPer1M: 0.02,
|
|
1018
1134
|
},
|
|
1019
1135
|
|
|
1020
|
-
// Ollama Cloud standard USD/1M rates, verified 2026-
|
|
1136
|
+
// Ollama Cloud standard USD/1M rates, verified 2026-11-23:
|
|
1021
1137
|
// https://ollama.com/pricing. Aggregates do not track cache hits or off-peak
|
|
1022
1138
|
// billing, so savings represent standard list-price value, not a net saving.
|
|
1139
|
+
"beam": { inputPer1M: 0.125, outputPer1M: 0.40, cachingPer1M: 0.015 },
|
|
1023
1140
|
"gpt-oss:20b": { inputPer1M: 0.07, outputPer1M: 0.30, cachingPer1M: 0.035 },
|
|
1024
1141
|
"gpt-oss:120b": { inputPer1M: 0.15, outputPer1M: 0.60, cachingPer1M: 0.014 },
|
|
1025
1142
|
"deepseek-v4.1-flash": { inputPer1M: 0.30, outputPer1M: 1.20, cachingPer1M: 0.006 },
|
|
1143
|
+
"deepseek-v4.1-flash:1017": { inputPer1M: 0.30, outputPer1M: 1.20, cachingPer1M: 0.006 },
|
|
1026
1144
|
"deepseek-v4-pro": { inputPer1M: 1.32, outputPer1M: 3.96, cachingPer1M: 0.044 },
|
|
1027
1145
|
"glm-5.2": { inputPer1M: 1.40, outputPer1M: 4.40, cachingPer1M: 0.26 },
|
|
1028
1146
|
"glm-5.3": { inputPer1M: 1.40, outputPer1M: 4.40, cachingPer1M: 0.26 },
|
|
1029
1147
|
"glm-5.3-flash": { inputPer1M: 0.15, outputPer1M: 0.50, cachingPer1M: 0.03 },
|
|
1030
1148
|
"gemma4": { inputPer1M: 0.14, outputPer1M: 0.40, cachingPer1M: 0.05 },
|
|
1031
1149
|
"gemma4:31b": { inputPer1M: 0.14, outputPer1M: 0.40, cachingPer1M: 0.05 },
|
|
1150
|
+
"hy4": { inputPer1M: 0.834, outputPer1M: 2.501, cachingPer1M: 0.042 },
|
|
1151
|
+
"inkling-2-small": { inputPer1M: 0.30, outputPer1M: 1.00, cachingPer1M: 0.03 },
|
|
1032
1152
|
"kimi-k2.6": { inputPer1M: 0.95, outputPer1M: 4.00, cachingPer1M: 0.16 },
|
|
1033
1153
|
"kimi-k2.7-code": { inputPer1M: 0.95, outputPer1M: 4.00, cachingPer1M: 0.19 },
|
|
1034
1154
|
"kimi-k3": { inputPer1M: 3.00, outputPer1M: 15.00, cachingPer1M: 0.30 },
|
|
1155
|
+
"kimi-k3.1-pro": { inputPer1M: 2.00, outputPer1M: 10.00, cachingPer1M: 0.20 },
|
|
1156
|
+
"mimo-v2.6-flash": { inputPer1M: 0.14, outputPer1M: 0.28, cachingPer1M: 0.0028 },
|
|
1157
|
+
"mimo-v2.6-pro": { inputPer1M: 0.435, outputPer1M: 0.87, cachingPer1M: 0.0036 },
|
|
1035
1158
|
"minimax-m2.7": { inputPer1M: 0.30, outputPer1M: 1.20, cachingPer1M: 0.06 },
|
|
1036
1159
|
"minimax-m3": { inputPer1M: 0.60, outputPer1M: 2.40, cachingPer1M: 0.12 },
|
|
1037
|
-
"
|
|
1160
|
+
"minimax-m3.1-flash": { inputPer1M: 0.15, outputPer1M: 0.60, cachingPer1M: 0.015 },
|
|
1161
|
+
"mistral-large-4": { inputPer1M: 0.70, outputPer1M: 2.10, cachingPer1M: 0.07 },
|
|
1038
1162
|
"mistral-large-3": { inputPer1M: 0.50, outputPer1M: 1.50 },
|
|
1039
1163
|
"mistral-large-3:675b": { inputPer1M: 0.50, outputPer1M: 1.50 },
|
|
1164
|
+
"muse-spark-open": { inputPer1M: 1.25, outputPer1M: 4.25, cachingPer1M: 0.15 },
|
|
1040
1165
|
"nemotron-3-nano": { inputPer1M: 0.06, outputPer1M: 0.24 },
|
|
1041
1166
|
"nemotron-3-nano:30b": { inputPer1M: 0.06, outputPer1M: 0.24 },
|
|
1042
1167
|
"nemotron-3-super": { inputPer1M: 0.015, outputPer1M: 0.60, cachingPer1M: 0.015 },
|
|
@@ -1078,12 +1203,30 @@ export function getModelPricing(model: string): ModelPricing | undefined {
|
|
|
1078
1203
|
// version checks explicit so an unrelated model containing "flash" cannot
|
|
1079
1204
|
// inherit Gemini pricing.
|
|
1080
1205
|
if (lower.includes("claude") && lower.includes("opus")) {
|
|
1206
|
+
if (lower.includes("5-5") || lower.includes("5.5")) {
|
|
1207
|
+
return MODEL_PRICING["claude-opus-5-5"];
|
|
1208
|
+
}
|
|
1081
1209
|
return MODEL_PRICING["claude-opus-4-6-thinking"];
|
|
1082
1210
|
}
|
|
1083
1211
|
if (lower.includes("claude") && lower.includes("sonnet")) {
|
|
1212
|
+
if (lower.includes("5-5") || lower.includes("5.5")) {
|
|
1213
|
+
return MODEL_PRICING["claude-sonnet-5-5"];
|
|
1214
|
+
}
|
|
1084
1215
|
return MODEL_PRICING["claude-sonnet-4-6"];
|
|
1085
1216
|
}
|
|
1086
1217
|
if (lower.includes("gemini")) {
|
|
1218
|
+
if (lower.includes("4-carbon") || lower.includes("4.0-carbon")) {
|
|
1219
|
+
return MODEL_PRICING["gemini-4-carbon"];
|
|
1220
|
+
}
|
|
1221
|
+
if (lower.includes("4-argon") || lower.includes("4.0-argon")) {
|
|
1222
|
+
return MODEL_PRICING["gemini-4-argon"];
|
|
1223
|
+
}
|
|
1224
|
+
if (lower.includes("4-neon") || lower.includes("4.0-neon")) {
|
|
1225
|
+
return MODEL_PRICING["gemini-4-neon"];
|
|
1226
|
+
}
|
|
1227
|
+
if (lower.includes("4-hydrogen") || lower.includes("4.0-hydrogen")) {
|
|
1228
|
+
return MODEL_PRICING["gemini-4-hydrogen"];
|
|
1229
|
+
}
|
|
1087
1230
|
if (lower.includes("3.8") && lower.includes("flash")) {
|
|
1088
1231
|
return MODEL_PRICING["gemini-3.8-flash-high"];
|
|
1089
1232
|
}
|
package/src/web/lib/colors.ts
CHANGED
|
@@ -6,14 +6,48 @@ const MODEL_COLORS: Record<string, string> = {
|
|
|
6
6
|
"claude-opus-4-6-thinking": "#b91c1c",
|
|
7
7
|
"claude-opus-4-5-thinking": "#b91c1c",
|
|
8
8
|
"claude-opus-4-5": "#b91c1c",
|
|
9
|
+
"claude-opus-5-5": "#dc2626",
|
|
10
|
+
"claude-opus-5-5-high": "#dc2626",
|
|
11
|
+
"claude-opus-5-5-medium": "#dc2626",
|
|
12
|
+
"claude-opus-5-5-low": "#dc2626",
|
|
9
13
|
"claude-sonnet-4-6": "#ef4444",
|
|
10
14
|
"claude-sonnet-4-6-thinking": "#ef4444",
|
|
11
15
|
"claude-sonnet-4-5": "#ef4444",
|
|
12
16
|
"claude-sonnet-4-5-thinking": "#ef4444",
|
|
17
|
+
"claude-sonnet-5-5": "#f87171",
|
|
18
|
+
"claude-sonnet-5-5-high": "#f87171",
|
|
19
|
+
"claude-sonnet-5-5-medium": "#f87171",
|
|
20
|
+
"claude-sonnet-5-5-low": "#f87171",
|
|
13
21
|
"gpt-oss-120b-medium": "#fca5a5",
|
|
14
22
|
"gpt-oss-120b": "#fca5a5",
|
|
15
23
|
|
|
16
24
|
// Gemini pool, most to least expensive
|
|
25
|
+
"gemini-4-carbon": "#1e3a8a",
|
|
26
|
+
"gemini-4-carbon-disabled": "#1e3a8a",
|
|
27
|
+
"gemini-4-carbon-high": "#1e3a8a",
|
|
28
|
+
"gemini-4-carbon-medium": "#1e40af",
|
|
29
|
+
"gemini-4-carbon-low": "#1d4ed8",
|
|
30
|
+
"gemini-4-neon": "#4338ca",
|
|
31
|
+
"gemini-4-neon-disabled": "#4338ca",
|
|
32
|
+
"gemini-4-neon-xhigh": "#3730a3",
|
|
33
|
+
"gemini-4-neon-high": "#4338ca",
|
|
34
|
+
"gemini-4-neon-medium": "#4f46e5",
|
|
35
|
+
"gemini-4-neon-low": "#6366f1",
|
|
36
|
+
"gemini-4-argon": "#2563eb",
|
|
37
|
+
"gemini-4-argon-disabled": "#60a5fa",
|
|
38
|
+
"gemini-4-argon-high": "#2563eb",
|
|
39
|
+
"gemini-4-argon-medium": "#3b82f6",
|
|
40
|
+
"gemini-4-argon-low": "#60a5fa",
|
|
41
|
+
"gemini-4-hydrogen": "#0369a1",
|
|
42
|
+
"gemini-4-hydrogen-disabled": "#0ea5e9",
|
|
43
|
+
"gemini-4-hydrogen-xhigh": "#0c4a6e",
|
|
44
|
+
"gemini-4-hydrogen-high": "#0369a1",
|
|
45
|
+
"gemini-4-hydrogen-medium": "#0ea5e9",
|
|
46
|
+
"gemini-4-hydrogen-low": "#38bdf8",
|
|
47
|
+
"gemini-4-hydrogen-tiered": "#0369a1",
|
|
48
|
+
"gemini-4-hydrogen-tiered-xhigh": "#0c4a6e",
|
|
49
|
+
"gemini-4-hydrogen-tiered-high": "#0369a1",
|
|
50
|
+
"gemini-4-hydrogen-sonar": "#0ea5e9",
|
|
17
51
|
"gemini-3.1-pro": "#3b82f6",
|
|
18
52
|
"gemini-3.1-pro-high": "#3b82f6",
|
|
19
53
|
"gemini-3.1-pro-low": "#3b82f6",
|
|
@@ -24,10 +58,8 @@ const MODEL_COLORS: Record<string, string> = {
|
|
|
24
58
|
"gemini-3.6-flash-medium": "#38bdf8",
|
|
25
59
|
"gemini-3.6-flash-low": "#38bdf8",
|
|
26
60
|
"gemini-3.6-flash-tiered": "#38bdf8",
|
|
27
|
-
"gemini-
|
|
28
|
-
"gemini-
|
|
29
|
-
"gemini-4-argon-medium": "#3b82f6",
|
|
30
|
-
"gemini-4-argon-low": "#60a5fa",
|
|
61
|
+
"gemini-3.8-flash": "#0284c7",
|
|
62
|
+
"gemini-3.8-flash-tiered": "#0284c7",
|
|
31
63
|
"gemini-3.8-flash-high": "#0284c7",
|
|
32
64
|
"gemini-3.8-flash-medium": "#0284c7",
|
|
33
65
|
"gemini-3.8-flash-low": "#0284c7",
|
|
@@ -36,7 +68,11 @@ const MODEL_COLORS: Record<string, string> = {
|
|
|
36
68
|
|
|
37
69
|
// Codex pool, most to least expensive
|
|
38
70
|
"gpt-6-astra": "#713f12",
|
|
71
|
+
"gpt-6.2-astra": "#854d0e",
|
|
39
72
|
"gpt-6-sol": "#a16207",
|
|
73
|
+
"gpt-6.2-sol": "#b45309",
|
|
74
|
+
"gpt-6.1-sol": "#ca8a04",
|
|
75
|
+
"gpt-6.1-terra": "#facc15",
|
|
40
76
|
"gpt-6-luna": "#fde047",
|
|
41
77
|
"gpt-5.6-sol": "#a16207",
|
|
42
78
|
"gpt-5.6-terra": "#eab308",
|
|
@@ -44,22 +80,35 @@ const MODEL_COLORS: Record<string, string> = {
|
|
|
44
80
|
|
|
45
81
|
// Ollama pool, most to least expensive
|
|
46
82
|
"kimi-k3": "#047857",
|
|
83
|
+
"kimi-k3.1-pro": "#047857",
|
|
47
84
|
"kimi-k2.7-code": "#047857",
|
|
48
85
|
"kimi-k2.6": "#047857",
|
|
86
|
+
"muse-spark-open": "#065f46",
|
|
87
|
+
"hy4": "#059669",
|
|
49
88
|
"qwen3.5:397b": "#0f766e",
|
|
89
|
+
"glm-5.3": "#10b981",
|
|
90
|
+
"glm-5.3-flash": "#34d399",
|
|
50
91
|
"glm-5.2": "#10b981",
|
|
51
92
|
"glm-5.1": "#10b981",
|
|
52
93
|
"nemotron-3-ultra": "#15803d",
|
|
53
94
|
"nemotron-3-super": "#15803d",
|
|
95
|
+
"mistral-large-4": "#22c55e",
|
|
54
96
|
"mistral-large-3:675b": "#22c55e",
|
|
55
97
|
"nemotron-3-nano:30b": "#22c55e",
|
|
98
|
+
"mimo-v2.6-pro": "#16a34a",
|
|
99
|
+
"mimo-v2.6-flash": "#4ade80",
|
|
56
100
|
"gemma4:31b": "#65a30d",
|
|
57
101
|
"minimax-m3": "#84cc16",
|
|
58
102
|
"minimax-m2.7": "#84cc16",
|
|
103
|
+
"minimax-m3.1-flash": "#a3e635",
|
|
59
104
|
"deepseek-v4-pro": "#2dd4bf",
|
|
105
|
+
"deepseek-v4.1-flash": "#5eead4",
|
|
106
|
+
"deepseek-v4.1-flash:1017": "#5eead4",
|
|
107
|
+
"inkling-2-small": "#6ee7b7",
|
|
60
108
|
"gpt-oss:120b": "#86efac",
|
|
61
109
|
"deepseek-v4-flash:preview": "#5eead4",
|
|
62
110
|
"deepseek-v4-flash:0731": "#5eead4",
|
|
111
|
+
"beam": "#bef264",
|
|
63
112
|
"gpt-oss:20b": "#dcfce7",
|
|
64
113
|
|
|
65
114
|
__other__: "#10b981",
|
|
@@ -72,19 +121,29 @@ export function modelColor(model: string | null | undefined): string {
|
|
|
72
121
|
const lower = model.toLowerCase();
|
|
73
122
|
// Family fallbacks for models without an explicit color.
|
|
74
123
|
// Claude pool
|
|
124
|
+
if (lower.indexOf("opus-5-5") !== -1 || lower.indexOf("opus-5.5") !== -1) return "#dc2626";
|
|
75
125
|
if (lower.indexOf("opus") !== -1) return "#b91c1c";
|
|
126
|
+
if (lower.indexOf("sonnet-5-5") !== -1 || lower.indexOf("sonnet-5.5") !== -1) return "#f87171";
|
|
76
127
|
if (lower.indexOf("sonnet") !== -1 || lower.indexOf("claude") !== -1) return "#ef4444";
|
|
77
128
|
if (lower === "gpt-oss-120b" || lower === "gpt-oss-120b-medium") return "#fca5a5";
|
|
78
129
|
|
|
79
130
|
// Gemini pool
|
|
131
|
+
if (lower.indexOf("4-carbon") !== -1) return "#1e3a8a";
|
|
132
|
+
if (lower.indexOf("4-neon") !== -1) return "#4338ca";
|
|
133
|
+
if (lower.indexOf("4-argon") !== -1) return "#2563eb";
|
|
134
|
+
if (lower.indexOf("4-hydrogen") !== -1) return "#0369a1";
|
|
80
135
|
if (lower.indexOf("3.1-pro") !== -1 || lower.indexOf("3-pro") !== -1) return "#3b82f6";
|
|
81
136
|
if (lower.indexOf("3.8-flash") !== -1) return "#0284c7";
|
|
82
137
|
if (lower.indexOf("3.6-flash") !== -1) return "#38bdf8";
|
|
83
138
|
if (lower.indexOf("gemini") !== -1 || lower.indexOf("3-flash") !== -1) return "#93c5fd";
|
|
84
139
|
|
|
85
140
|
// Codex pool
|
|
141
|
+
if (lower.indexOf("gpt-6.2-astra") !== -1) return "#854d0e";
|
|
86
142
|
if (lower.indexOf("gpt-6-astra") !== -1) return "#713f12";
|
|
143
|
+
if (lower.indexOf("gpt-6.2-sol") !== -1) return "#b45309";
|
|
144
|
+
if (lower.indexOf("gpt-6.1-sol") !== -1) return "#ca8a04";
|
|
87
145
|
if (lower.indexOf("gpt-6-sol") !== -1) return "#a16207";
|
|
146
|
+
if (lower.indexOf("gpt-6.1-terra") !== -1) return "#facc15";
|
|
88
147
|
if (lower.indexOf("gpt-6-luna") !== -1) return "#fde047";
|
|
89
148
|
if (lower.indexOf("gpt-5.6-sol") !== -1) return "#a16207";
|
|
90
149
|
if (lower.indexOf("gpt-5.6-terra") !== -1) return "#eab308";
|
|
@@ -92,14 +151,19 @@ export function modelColor(model: string | null | undefined): string {
|
|
|
92
151
|
|
|
93
152
|
// Ollama pool
|
|
94
153
|
if (lower.indexOf("kimi") !== -1) return "#047857";
|
|
154
|
+
if (lower.indexOf("muse-spark") !== -1) return "#065f46";
|
|
155
|
+
if (lower.indexOf("hy4") !== -1) return "#059669";
|
|
95
156
|
if (lower.indexOf("qwen") !== -1) return "#0f766e";
|
|
96
157
|
if (lower.indexOf("glm") !== -1) return "#10b981";
|
|
97
158
|
if (lower.indexOf("nemotron-3-super") !== -1 || lower.indexOf("nemotron-3-ultra") !== -1) return "#15803d";
|
|
98
159
|
if (lower.indexOf("mistral") !== -1 || lower.indexOf("nemotron") !== -1) return "#22c55e";
|
|
160
|
+
if (lower.indexOf("mimo") !== -1) return "#16a34a";
|
|
99
161
|
if (lower.indexOf("gemma") !== -1) return "#65a30d";
|
|
100
162
|
if (lower.indexOf("minimax") !== -1) return "#84cc16";
|
|
101
163
|
if (lower.indexOf("deepseek-v4-pro") !== -1) return "#2dd4bf";
|
|
102
164
|
if (lower.indexOf("deepseek") !== -1) return "#5eead4";
|
|
165
|
+
if (lower.indexOf("inkling") !== -1) return "#6ee7b7";
|
|
166
|
+
if (lower.indexOf("beam") !== -1) return "#bef264";
|
|
103
167
|
if (lower.indexOf("gpt-oss:120b") !== -1) return "#86efac";
|
|
104
168
|
if (lower.indexOf("gpt-oss") !== -1) return "#dcfce7";
|
|
105
169
|
|
|
@@ -336,6 +336,8 @@ function sanitizeTokensByModel(raw) {
|
|
|
336
336
|
const MODEL_PRICING = {
|
|
337
337
|
"claude-opus-4-6-thinking": { inputPer1M: 5.0, outputPer1M: 25.0 },
|
|
338
338
|
"claude-sonnet-4-6": { inputPer1M: 3.0, outputPer1M: 15.0 },
|
|
339
|
+
"claude-opus-5-5": { inputPer1M: 4.0, outputPer1M: 20.0, cachingPer1M: 0.2 },
|
|
340
|
+
"claude-sonnet-5-5": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
339
341
|
"gemini-3.1-pro": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
340
342
|
"gemini-3.1-pro-low": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
341
343
|
"gemini-3.1-pro-high": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
@@ -345,30 +347,67 @@ const MODEL_PRICING = {
|
|
|
345
347
|
"gemini-3.6-flash-medium": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
346
348
|
"gemini-3.6-flash-low": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
347
349
|
"gemini-3.6-flash-tiered": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
348
|
-
// Gemini introductory pricing: see docs/model-pricing.md (2026-
|
|
350
|
+
// Gemini introductory pricing: see docs/model-pricing.md (2026-11-23).
|
|
349
351
|
"gemini-3.7-flash-tiered": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
350
352
|
// Gemini 3.8 Flash uses the same introductory window and doubles on 2027-01-01.
|
|
353
|
+
"gemini-3.8-flash": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
354
|
+
"gemini-3.8-flash-tiered": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
351
355
|
"gemini-3.8-flash-low": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
352
356
|
"gemini-3.8-flash-medium": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
353
357
|
"gemini-3.8-flash-high": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
358
|
+
"gemini-4-carbon": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
359
|
+
"gemini-4-argon": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
360
|
+
"gemini-4-argon-disabled": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
361
|
+
"gemini-4-argon-low": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
362
|
+
"gemini-4-argon-medium": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
363
|
+
"gemini-4-argon-high": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
364
|
+
"gemini-4-neon": { inputPer1M: 3.0, outputPer1M: 15.0, cachingPer1M: 0.15 },
|
|
365
|
+
"gemini-4-neon-low": { inputPer1M: 3.0, outputPer1M: 15.0, cachingPer1M: 0.15 },
|
|
366
|
+
"gemini-4-neon-medium": { inputPer1M: 3.0, outputPer1M: 15.0, cachingPer1M: 0.15 },
|
|
367
|
+
"gemini-4-neon-high": { inputPer1M: 3.0, outputPer1M: 15.0, cachingPer1M: 0.15 },
|
|
368
|
+
"gemini-4-neon-xhigh": { inputPer1M: 3.0, outputPer1M: 15.0, cachingPer1M: 0.15 },
|
|
369
|
+
"gemini-4-hydrogen": { inputPer1M: 1.5, outputPer1M: 7.5, cachingPer1M: 0.075 },
|
|
370
|
+
"gemini-4-hydrogen-low": { inputPer1M: 1.5, outputPer1M: 7.5, cachingPer1M: 0.075 },
|
|
371
|
+
"gemini-4-hydrogen-medium": { inputPer1M: 1.5, outputPer1M: 7.5, cachingPer1M: 0.075 },
|
|
372
|
+
"gemini-4-hydrogen-high": { inputPer1M: 1.5, outputPer1M: 7.5, cachingPer1M: 0.075 },
|
|
373
|
+
"gemini-4-hydrogen-xhigh": { inputPer1M: 1.5, outputPer1M: 7.5, cachingPer1M: 0.075 },
|
|
374
|
+
"gemini-4-hydrogen-tiered": { inputPer1M: 1.5, outputPer1M: 7.5, cachingPer1M: 0.075 },
|
|
375
|
+
"gemini-4-hydrogen-sonar": { inputPer1M: 1.5, outputPer1M: 7.5, cachingPer1M: 0.075 },
|
|
354
376
|
"gpt-oss-120b-medium": { inputPer1M: 2.0, outputPer1M: 10.0 },
|
|
355
377
|
|
|
356
378
|
// Ollama Cloud standard-price models — mirrors MODEL_PRICING in src/types.ts
|
|
379
|
+
"beam": { inputPer1M: 0.125, outputPer1M: 0.40, cachingPer1M: 0.015 },
|
|
357
380
|
"gpt-oss:20b": { inputPer1M: 0.07, outputPer1M: 0.30, cachingPer1M: 0.035 },
|
|
358
381
|
"gpt-oss:120b": { inputPer1M: 0.15, outputPer1M: 0.60, cachingPer1M: 0.014 },
|
|
359
382
|
"deepseek-v4-flash:preview": { inputPer1M: 0.14, outputPer1M: 0.28 },
|
|
360
383
|
"deepseek-v4-flash:0731": { inputPer1M: 0.14, outputPer1M: 0.28, cachingPer1M: 0.0028 },
|
|
384
|
+
"deepseek-v4.1-flash": { inputPer1M: 0.30, outputPer1M: 1.20, cachingPer1M: 0.006 },
|
|
385
|
+
"deepseek-v4.1-flash:1017": { inputPer1M: 0.30, outputPer1M: 1.20, cachingPer1M: 0.006 },
|
|
361
386
|
"deepseek-v4-pro": { inputPer1M: 1.32, outputPer1M: 3.96, cachingPer1M: 0.044 },
|
|
387
|
+
"deepseek-v4-pro:0813": { inputPer1M: 1.74, outputPer1M: 3.48 },
|
|
362
388
|
"qwen3.5:397b": { inputPer1M: 0.60, outputPer1M: 3.60 },
|
|
363
389
|
"glm-5.1": { inputPer1M: 0.80, outputPer1M: 2.56 },
|
|
364
390
|
"glm-5.2": { inputPer1M: 1.40, outputPer1M: 4.40, cachingPer1M: 0.26 },
|
|
391
|
+
"glm-5.3": { inputPer1M: 1.40, outputPer1M: 4.40, cachingPer1M: 0.26 },
|
|
392
|
+
"glm-5.3-flash": { inputPer1M: 0.15, outputPer1M: 0.50, cachingPer1M: 0.03 },
|
|
393
|
+
"gemma4": { inputPer1M: 0.14, outputPer1M: 0.40, cachingPer1M: 0.05 },
|
|
365
394
|
"gemma4:31b": { inputPer1M: 0.14, outputPer1M: 0.40, cachingPer1M: 0.05 },
|
|
395
|
+
"hy4": { inputPer1M: 0.834, outputPer1M: 2.501, cachingPer1M: 0.042 },
|
|
396
|
+
"inkling-2-small": { inputPer1M: 0.30, outputPer1M: 1.00, cachingPer1M: 0.03 },
|
|
366
397
|
"kimi-k2.6": { inputPer1M: 0.95, outputPer1M: 4.00, cachingPer1M: 0.16 },
|
|
367
398
|
"kimi-k2.7-code": { inputPer1M: 0.95, outputPer1M: 4.00, cachingPer1M: 0.19 },
|
|
368
399
|
"kimi-k3": { inputPer1M: 3.00, outputPer1M: 15.00, cachingPer1M: 0.30 },
|
|
400
|
+
"kimi-k3.1-pro": { inputPer1M: 2.00, outputPer1M: 10.00, cachingPer1M: 0.20 },
|
|
401
|
+
"mimo-v2.6-flash": { inputPer1M: 0.14, outputPer1M: 0.28, cachingPer1M: 0.0028 },
|
|
402
|
+
"mimo-v2.6-pro": { inputPer1M: 0.435, outputPer1M: 0.87, cachingPer1M: 0.0036 },
|
|
369
403
|
"minimax-m2.7": { inputPer1M: 0.30, outputPer1M: 1.20, cachingPer1M: 0.06 },
|
|
370
404
|
"minimax-m3": { inputPer1M: 0.60, outputPer1M: 2.40, cachingPer1M: 0.12 },
|
|
405
|
+
"minimax-m3.1-flash": { inputPer1M: 0.15, outputPer1M: 0.60, cachingPer1M: 0.015 },
|
|
406
|
+
"mistral-large-4": { inputPer1M: 0.70, outputPer1M: 2.10, cachingPer1M: 0.07 },
|
|
407
|
+
"mistral-large-3": { inputPer1M: 0.50, outputPer1M: 1.50 },
|
|
371
408
|
"mistral-large-3:675b": { inputPer1M: 0.50, outputPer1M: 1.50 },
|
|
409
|
+
"muse-spark-open": { inputPer1M: 1.25, outputPer1M: 4.25, cachingPer1M: 0.15 },
|
|
410
|
+
"nemotron-3-nano": { inputPer1M: 0.06, outputPer1M: 0.24 },
|
|
372
411
|
"nemotron-3-nano:30b": { inputPer1M: 0.06, outputPer1M: 0.24 },
|
|
373
412
|
"nemotron-3-super": { inputPer1M: 0.015, outputPer1M: 0.60, cachingPer1M: 0.015 },
|
|
374
413
|
"nemotron-3-ultra": { inputPer1M: 0.10, outputPer1M: 3.00, cachingPer1M: 0.10 },
|
|
@@ -384,31 +423,34 @@ const MODEL_PRICING = {
|
|
|
384
423
|
"laguna-s-2.1-free": { inputPer1M: 0.20, outputPer1M: 0.80 },
|
|
385
424
|
|
|
386
425
|
// OpenAI Codex models — mirrors MODEL_PRICING in src/types.ts
|
|
387
|
-
"gpt-
|
|
388
|
-
"gpt-
|
|
389
|
-
"gpt-
|
|
390
|
-
"
|
|
391
|
-
"gemini-4-argon-low": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
392
|
-
"gemini-4-argon-medium": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
393
|
-
"gemini-4-argon-high": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
426
|
+
"gpt-6.2-astra": { inputPer1M: 8.0, outputPer1M: 40.0, cachingPer1M: 0.4 },
|
|
427
|
+
"gpt-6.2-sol": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
428
|
+
"gpt-6.1-sol": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
429
|
+
"gpt-6.1-terra": { inputPer1M: 1.0, outputPer1M: 5.0, cachingPer1M: 0.05 },
|
|
394
430
|
"gpt-6-astra": { inputPer1M: 10.0, outputPer1M: 50.0, cachingPer1M: 1.0 },
|
|
395
431
|
"gpt-6-sol": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.2 },
|
|
396
432
|
"gpt-6-luna": { inputPer1M: 0.1, outputPer1M: 0.5, cachingPer1M: 0.01 },
|
|
397
|
-
"
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"gemma4": { inputPer1M: 0.14, outputPer1M: 0.40, cachingPer1M: 0.05 },
|
|
401
|
-
"mistral-large-4": { inputPer1M: 0.68, outputPer1M: 2.09, cachingPer1M: 0.07 },
|
|
402
|
-
"mistral-large-3": { inputPer1M: 0.50, outputPer1M: 1.50 },
|
|
403
|
-
"nemotron-3-nano": { inputPer1M: 0.06, outputPer1M: 0.24 },
|
|
404
|
-
"deepseek-v4-pro:0813": { inputPer1M: 1.74, outputPer1M: 3.48 },
|
|
433
|
+
"gpt-5.6-sol": { inputPer1M: 4.0, outputPer1M: 20.0, cachingPer1M: 0.40 },
|
|
434
|
+
"gpt-5.6-terra": { inputPer1M: 2.0, outputPer1M: 12.0, cachingPer1M: 0.20 },
|
|
435
|
+
"gpt-5.6-luna": { inputPer1M: 0.20, outputPer1M: 1.20, cachingPer1M: 0.02 },
|
|
405
436
|
};
|
|
406
437
|
|
|
407
438
|
function getModelPricing(model) {
|
|
408
439
|
if (MODEL_PRICING[model]) return MODEL_PRICING[model];
|
|
409
440
|
const lower = (model || "").toLowerCase();
|
|
410
|
-
if (lower
|
|
411
|
-
if (lower.includes("
|
|
441
|
+
if (MODEL_PRICING[lower]) return MODEL_PRICING[lower];
|
|
442
|
+
if (lower.includes("opus")) {
|
|
443
|
+
if (lower.includes("5-5") || lower.includes("5.5")) return MODEL_PRICING["claude-opus-5-5"];
|
|
444
|
+
return MODEL_PRICING["claude-opus-4-6-thinking"];
|
|
445
|
+
}
|
|
446
|
+
if (lower.includes("sonnet")) {
|
|
447
|
+
if (lower.includes("5-5") || lower.includes("5.5")) return MODEL_PRICING["claude-sonnet-5-5"];
|
|
448
|
+
return MODEL_PRICING["claude-sonnet-4-6"];
|
|
449
|
+
}
|
|
450
|
+
if (lower.includes("4-carbon") || lower.includes("4.0-carbon")) return MODEL_PRICING["gemini-4-carbon"];
|
|
451
|
+
if (lower.includes("4-argon") || lower.includes("4.0-argon")) return MODEL_PRICING["gemini-4-argon"];
|
|
452
|
+
if (lower.includes("4-neon") || lower.includes("4.0-neon")) return MODEL_PRICING["gemini-4-neon"];
|
|
453
|
+
if (lower.includes("4-hydrogen") || lower.includes("4.0-hydrogen")) return MODEL_PRICING["gemini-4-hydrogen"];
|
|
412
454
|
if (lower.includes("3.8-flash")) return MODEL_PRICING["gemini-3.8-flash-high"];
|
|
413
455
|
if (lower.includes("3.7-flash")) return MODEL_PRICING["gemini-3.7-flash-tiered"];
|
|
414
456
|
if (lower.includes("3.6-flash")) return MODEL_PRICING["gemini-3.6-flash-high"];
|