Skip to content

Commit 1f823d9

Browse files
RipperMercsclaude
andcommitted
feat(compare): auto-derive defaults from flagship models, surface daily refresh
- pricing.json + worker baseline: every model now carries a tier ('flagship' | 'mid' | 'budget'). Marked Opus 4.7 as the Anthropic flagship; one flagship per provider for clean derivation. - worker daily refresh preserves tier on existing models (mutation in place) and infers tier on newly auto-discovered models via name heuristics (Opus/Ultra/Max -> flagship, Mini/Flash/Nano -> budget). - /compare page derives default selection from flagship Anthropic + flagship OpenAI at runtime, so when Opus 4.8 lands as flagship the page picks it automatically with no code change. - popularComparisons rebuilt at runtime from cross-provider flagship pairs (Anthropic vs OpenAI, Anthropic vs Google, etc). - Added a small mono badge under the H1 showing 'Catalog refreshed YYYY-MM-DD, updates daily' so users see freshness. - User selection wins: once you pick a model the auto-default stops. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent dd73c43 commit 1f823d9

3 files changed

Lines changed: 263 additions & 63 deletions

File tree

data/pricing.json

Lines changed: 131 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,62 @@
1010
{
1111
"id": "claude-opus-4-7",
1212
"name": "Claude Opus 4.7",
13-
"inputPrice": 15.00,
14-
"outputPrice": 75.00,
13+
"inputPrice": 15,
14+
"outputPrice": 75,
1515
"contextWindow": 1000000,
1616
"released": "2026-04",
17-
"capabilities": ["text", "vision", "tool-use", "code"]
17+
"capabilities": [
18+
"text",
19+
"vision",
20+
"tool-use",
21+
"code"
22+
],
23+
"tier": "flagship"
1824
},
1925
{
2026
"id": "claude-opus-4-6",
2127
"name": "Claude Opus 4.6",
22-
"inputPrice": 15.00,
23-
"outputPrice": 75.00,
28+
"inputPrice": 15,
29+
"outputPrice": 75,
2430
"contextWindow": 200000,
2531
"released": "2026-03",
26-
"capabilities": ["text", "vision", "tool-use", "code"]
32+
"capabilities": [
33+
"text",
34+
"vision",
35+
"tool-use",
36+
"code"
37+
],
38+
"tier": "mid"
2739
},
2840
{
2941
"id": "claude-sonnet-4-6",
3042
"name": "Claude Sonnet 4.6",
31-
"inputPrice": 3.00,
32-
"outputPrice": 15.00,
43+
"inputPrice": 3,
44+
"outputPrice": 15,
3345
"contextWindow": 200000,
3446
"released": "2026-03",
35-
"capabilities": ["text", "vision", "tool-use", "code"]
47+
"capabilities": [
48+
"text",
49+
"vision",
50+
"tool-use",
51+
"code"
52+
],
53+
"tier": "mid"
3654
},
3755
{
3856
"id": "claude-haiku-4-5",
3957
"name": "Claude Haiku 4.5",
40-
"inputPrice": 0.80,
41-
"outputPrice": 4.00,
58+
"inputPrice": 0.8,
59+
"outputPrice": 4,
4260
"contextWindow": 200000,
4361
"released": "2025-06",
44-
"capabilities": ["text", "vision", "tool-use", "code"]
62+
"capabilities": [
63+
"text",
64+
"vision",
65+
"tool-use",
66+
"code"
67+
],
68+
"tier": "budget"
4569
}
4670
]
4771
},
@@ -54,38 +78,60 @@
5478
{
5579
"id": "gpt-4o",
5680
"name": "GPT-4o",
57-
"inputPrice": 2.50,
58-
"outputPrice": 10.00,
81+
"inputPrice": 2.5,
82+
"outputPrice": 10,
5983
"contextWindow": 128000,
6084
"released": "2024-05",
61-
"capabilities": ["text", "vision", "tool-use", "code"]
85+
"capabilities": [
86+
"text",
87+
"vision",
88+
"tool-use",
89+
"code"
90+
],
91+
"tier": "flagship"
6292
},
6393
{
6494
"id": "gpt-4o-mini",
6595
"name": "GPT-4o-mini",
6696
"inputPrice": 0.15,
67-
"outputPrice": 0.60,
97+
"outputPrice": 0.6,
6898
"contextWindow": 128000,
6999
"released": "2024-07",
70-
"capabilities": ["text", "vision", "tool-use", "code"]
100+
"capabilities": [
101+
"text",
102+
"vision",
103+
"tool-use",
104+
"code"
105+
],
106+
"tier": "budget"
71107
},
72108
{
73109
"id": "o1",
74110
"name": "o1",
75-
"inputPrice": 15.00,
76-
"outputPrice": 60.00,
111+
"inputPrice": 15,
112+
"outputPrice": 60,
77113
"contextWindow": 200000,
78114
"released": "2024-12",
79-
"capabilities": ["text", "reasoning", "code"]
115+
"capabilities": [
116+
"text",
117+
"reasoning",
118+
"code"
119+
],
120+
"tier": "flagship"
80121
},
81122
{
82123
"id": "o3-mini",
83124
"name": "o3-mini",
84-
"inputPrice": 1.10,
85-
"outputPrice": 4.40,
125+
"inputPrice": 1.1,
126+
"outputPrice": 4.4,
86127
"contextWindow": 200000,
87128
"released": "2025-01",
88-
"capabilities": ["text", "reasoning", "code"]
129+
"capabilities": [
130+
"text",
131+
"reasoning",
132+
"code"
133+
],
134+
"tier": "mid"
89135
}
90136
]
91137
},
@@ -99,19 +145,32 @@
99145
"id": "gemini-2-5-pro",
100146
"name": "Gemini 2.5 Pro",
101147
"inputPrice": 1.25,
102-
"outputPrice": 10.00,
148+
"outputPrice": 10,
103149
"contextWindow": 1000000,
104150
"released": "2025-03",
105-
"capabilities": ["text", "vision", "tool-use", "code", "reasoning"]
151+
"capabilities": [
152+
"text",
153+
"vision",
154+
"tool-use",
155+
"code",
156+
"reasoning"
157+
],
158+
"tier": "flagship"
106159
},
107160
{
108161
"id": "gemini-2-0-flash",
109162
"name": "Gemini 2.0 Flash",
110-
"inputPrice": 0.10,
111-
"outputPrice": 0.40,
163+
"inputPrice": 0.1,
164+
"outputPrice": 0.4,
112165
"contextWindow": 1000000,
113166
"released": "2025-02",
114-
"capabilities": ["text", "vision", "tool-use", "code"]
167+
"capabilities": [
168+
"text",
169+
"vision",
170+
"tool-use",
171+
"code"
172+
],
173+
"tier": "budget"
115174
}
116175
]
117176
},
@@ -130,7 +189,12 @@
130189
"released": "2025-04",
131190
"openSource": true,
132191
"license": "Llama 4 Community License",
133-
"capabilities": ["text", "vision", "code"]
192+
"capabilities": [
193+
"text",
194+
"vision",
195+
"code"
196+
],
197+
"tier": "mid"
134198
},
135199
{
136200
"id": "llama-4-maverick",
@@ -141,7 +205,12 @@
141205
"released": "2025-04",
142206
"openSource": true,
143207
"license": "Llama 4 Community License",
144-
"capabilities": ["text", "vision", "code"]
208+
"capabilities": [
209+
"text",
210+
"vision",
211+
"code"
212+
],
213+
"tier": "flagship"
145214
}
146215
]
147216
},
@@ -154,20 +223,31 @@
154223
{
155224
"id": "mistral-large",
156225
"name": "Mistral Large",
157-
"inputPrice": 2.00,
158-
"outputPrice": 6.00,
226+
"inputPrice": 2,
227+
"outputPrice": 6,
159228
"contextWindow": 128000,
160229
"released": "2025-01",
161-
"capabilities": ["text", "vision", "tool-use", "code"]
230+
"capabilities": [
231+
"text",
232+
"vision",
233+
"tool-use",
234+
"code"
235+
],
236+
"tier": "flagship"
162237
},
163238
{
164239
"id": "mistral-small",
165240
"name": "Mistral Small",
166-
"inputPrice": 0.10,
167-
"outputPrice": 0.30,
241+
"inputPrice": 0.1,
242+
"outputPrice": 0.3,
168243
"contextWindow": 128000,
169244
"released": "2025-01",
170-
"capabilities": ["text", "tool-use", "code"]
245+
"capabilities": [
246+
"text",
247+
"tool-use",
248+
"code"
249+
],
250+
"tier": "budget"
171251
}
172252
]
173253
},
@@ -180,20 +260,30 @@
180260
{
181261
"id": "command-r-plus",
182262
"name": "Command R+",
183-
"inputPrice": 2.50,
184-
"outputPrice": 10.00,
263+
"inputPrice": 2.5,
264+
"outputPrice": 10,
185265
"contextWindow": 128000,
186266
"released": "2024-04",
187-
"capabilities": ["text", "tool-use", "RAG"]
267+
"capabilities": [
268+
"text",
269+
"tool-use",
270+
"RAG"
271+
],
272+
"tier": "flagship"
188273
},
189274
{
190275
"id": "command-r",
191276
"name": "Command R",
192277
"inputPrice": 0.15,
193-
"outputPrice": 0.60,
278+
"outputPrice": 0.6,
194279
"contextWindow": 128000,
195280
"released": "2024-03",
196-
"capabilities": ["text", "tool-use", "RAG"]
281+
"capabilities": [
282+
"text",
283+
"tool-use",
284+
"RAG"
285+
],
286+
"tier": "mid"
197287
}
198288
]
199289
}

0 commit comments

Comments
 (0)