@@ -16,6 +16,7 @@ export const anthropicModels = {
1616 inputPrice : 3.0 , // $3 per million input tokens (≤200K context)
1717 outputPrice : 15.0 , // $15 per million output tokens (≤200K context)
1818 cacheWritesPrice : 3.75 , // $3.75 per million tokens
19+ cacheWritesPrice1h : 6 , // $6.00 per million tokens (2x input price, 1h cache writes)
1920 cacheReadsPrice : 0.3 , // $0.30 per million tokens
2021 supportsReasoningBudget : true ,
2122 // Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07')
@@ -37,6 +38,7 @@ export const anthropicModels = {
3738 inputPrice : 2.0 , // $2 per million input tokens (introductory pricing through Aug 31, 2026)
3839 outputPrice : 10.0 , // $10 per million output tokens (introductory pricing through Aug 31, 2026)
3940 cacheWritesPrice : 2.5 , // $2.50 per million tokens (introductory pricing through Aug 31, 2026)
41+ cacheWritesPrice1h : 4 , // $4.00 per million tokens (2x input price, 1h cache writes)
4042 cacheReadsPrice : 0.2 , // $0.20 per million tokens (introductory pricing through Aug 31, 2026)
4143 // Sonnet 5 uses the same adaptive-thinking / binary-toggle convention as
4244 // Opus 4.7+ and Fable 5 on the direct Anthropic provider path. Manual
@@ -56,6 +58,7 @@ export const anthropicModels = {
5658 inputPrice : 3.0 , // $3 per million input tokens (≤200K context)
5759 outputPrice : 15.0 , // $15 per million output tokens (≤200K context)
5860 cacheWritesPrice : 3.75 , // $3.75 per million tokens
61+ cacheWritesPrice1h : 6 , // $6.00 per million tokens (2x input price, 1h cache writes)
5962 cacheReadsPrice : 0.3 , // $0.30 per million tokens
6063 supportsReasoningBudget : true ,
6164 // Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07')
@@ -77,6 +80,7 @@ export const anthropicModels = {
7780 inputPrice : 3.0 , // $3 per million input tokens (≤200K context)
7881 outputPrice : 15.0 , // $15 per million output tokens (≤200K context)
7982 cacheWritesPrice : 3.75 , // $3.75 per million tokens
83+ cacheWritesPrice1h : 6 , // $6.00 per million tokens (2x input price, 1h cache writes)
8084 cacheReadsPrice : 0.3 , // $0.30 per million tokens
8185 supportsReasoningBudget : true ,
8286 // Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07')
@@ -98,6 +102,7 @@ export const anthropicModels = {
98102 inputPrice : 5.0 , // $5 per million input tokens (≤200K context)
99103 outputPrice : 25.0 , // $25 per million output tokens (≤200K context)
100104 cacheWritesPrice : 6.25 , // $6.25 per million tokens
105+ cacheWritesPrice1h : 10 , // $10.00 per million tokens (2x input price, 1h cache writes)
101106 cacheReadsPrice : 0.5 , // $0.50 per million tokens
102107 supportsReasoningBudget : true ,
103108 // Tiered pricing for extended context (requires beta flag)
@@ -119,6 +124,7 @@ export const anthropicModels = {
119124 inputPrice : 5.0 , // $5 per million input tokens
120125 outputPrice : 25.0 , // $25 per million output tokens
121126 cacheWritesPrice : 6.25 , // $6.25 per million tokens
127+ cacheWritesPrice1h : 10 , // $10.00 per million tokens (2x input price, 1h cache writes)
122128 cacheReadsPrice : 0.5 , // $0.50 per million tokens
123129 // Keep the hybrid-reasoning capability so Anthropic token-cap handling and
124130 // stored max-token overrides behave the same as before.
@@ -136,6 +142,7 @@ export const anthropicModels = {
136142 inputPrice : 5.0 , // $5 per million input tokens (regular tier)
137143 outputPrice : 25.0 , // $25 per million output tokens (regular tier)
138144 cacheWritesPrice : 6.25 , // $6.25 per million tokens
145+ cacheWritesPrice1h : 10 , // $10.00 per million tokens (2x input price, 1h cache writes)
139146 cacheReadsPrice : 0.5 , // $0.50 per million tokens
140147 // 4.8 inherits the adaptive-thinking model introduced in 4.7 — no breaking
141148 // API changes. supportsReasoningBudget is kept true so the existing token-cap
@@ -154,6 +161,7 @@ export const anthropicModels = {
154161 inputPrice : 5.0 , // $5 per million input tokens
155162 outputPrice : 25.0 , // $25 per million output tokens
156163 cacheWritesPrice : 6.25 , // $6.25 per million tokens
164+ cacheWritesPrice1h : 10 , // $10.00 per million tokens (2x input price, 1h cache writes)
157165 cacheReadsPrice : 0.5 , // $0.50 per million tokens
158166 // Opus 5 uses the same adaptive-thinking / binary-toggle convention as
159167 // Opus 4.7+ and Sonnet 5 on the direct Anthropic provider path. Manual
@@ -172,6 +180,7 @@ export const anthropicModels = {
172180 inputPrice : 4.0 , // $4 per million input tokens
173181 outputPrice : 20.0 , // $20 per million output tokens
174182 cacheWritesPrice : 5.0 , // $5 per million tokens
183+ cacheWritesPrice1h : 8 , // $8.00 per million tokens (2x input price, 1h cache writes)
175184 cacheReadsPrice : 0.2 , // $0.20 per million tokens
176185 // Opus 5.5 always uses adaptive thinking and rejects manual budget_tokens.
177186 supportsReasoningBinary : true ,
@@ -192,6 +201,7 @@ export const anthropicModels = {
192201 inputPrice : 0.1 , // $0.10 per million input tokens
193202 outputPrice : 0.5 , // $0.50 per million output tokens
194203 cacheWritesPrice : 0.125 , // $0.125 per million tokens (5m cache writes)
204+ cacheWritesPrice1h : 0.2 , // $0.20 per million tokens (2x input price, 1h cache writes)
195205 cacheReadsPrice : 0.01 , // $0.01 per million tokens (cache hits / refreshes)
196206 // Haiku 5.5 uses the same adaptive-thinking / binary-toggle convention as
197207 // Sonnet 5 and Opus 5 on the direct Anthropic provider path. Manual
@@ -211,6 +221,7 @@ export const anthropicModels = {
211221 inputPrice : 10.0 , // $10 per million input tokens
212222 outputPrice : 50.0 , // $50 per million output tokens
213223 cacheWritesPrice : 12.5 , // $12.50 per million tokens (5-minute cache)
224+ cacheWritesPrice1h : 20 , // $20.00 per million tokens (2x input price, 1h cache writes)
214225 cacheReadsPrice : 0.25 , // $0.25 per million tokens (2.5% of base input price)
215226 // Fable 5.1 only accepts adaptive thinking (or an omitted thinking field).
216227 // Manual budget_tokens and non-default sampling parameters return a 400.
@@ -228,6 +239,7 @@ export const anthropicModels = {
228239 inputPrice : 10.0 , // $10 per million input tokens
229240 outputPrice : 50.0 , // $50 per million output tokens
230241 cacheWritesPrice : 12.5 , // $12.50 per million tokens
242+ cacheWritesPrice1h : 20 , // $20.00 per million tokens (2x input price, 1h cache writes)
231243 cacheReadsPrice : 1.0 , // $1.00 per million tokens
232244 // Fable 5 uses the same adaptive-thinking / binary-toggle convention as
233245 // Opus 4.7+ on the direct Anthropic provider path.
@@ -245,6 +257,7 @@ export const anthropicModels = {
245257 inputPrice : 5.0 , // $5 per million input tokens
246258 outputPrice : 25.0 , // $25 per million output tokens
247259 cacheWritesPrice : 6.25 , // $6.25 per million tokens
260+ cacheWritesPrice1h : 10 , // $10.00 per million tokens (2x input price, 1h cache writes)
248261 cacheReadsPrice : 0.5 , // $0.50 per million tokens
249262 supportsReasoningBudget : true ,
250263 } ,
@@ -256,6 +269,7 @@ export const anthropicModels = {
256269 inputPrice : 15.0 , // $15 per million input tokens
257270 outputPrice : 75.0 , // $75 per million output tokens
258271 cacheWritesPrice : 18.75 , // $18.75 per million tokens
272+ cacheWritesPrice1h : 30 , // $30.00 per million tokens (2x input price, 1h cache writes)
259273 cacheReadsPrice : 1.5 , // $1.50 per million tokens
260274 supportsReasoningBudget : true ,
261275 } ,
@@ -267,6 +281,7 @@ export const anthropicModels = {
267281 inputPrice : 15.0 , // $15 per million input tokens
268282 outputPrice : 75.0 , // $75 per million output tokens
269283 cacheWritesPrice : 18.75 , // $18.75 per million tokens
284+ cacheWritesPrice1h : 30 , // $30.00 per million tokens (2x input price, 1h cache writes)
270285 cacheReadsPrice : 1.5 , // $1.50 per million tokens
271286 supportsReasoningBudget : true ,
272287 } ,
@@ -278,6 +293,7 @@ export const anthropicModels = {
278293 inputPrice : 3.0 , // $3 per million input tokens
279294 outputPrice : 15.0 , // $15 per million output tokens
280295 cacheWritesPrice : 3.75 , // $3.75 per million tokens
296+ cacheWritesPrice1h : 6 , // $6.00 per million tokens (2x input price, 1h cache writes)
281297 cacheReadsPrice : 0.3 , // $0.30 per million tokens
282298 supportsReasoningBudget : true ,
283299 requiredReasoningBudget : true ,
@@ -290,6 +306,7 @@ export const anthropicModels = {
290306 inputPrice : 3.0 , // $3 per million input tokens
291307 outputPrice : 15.0 , // $15 per million output tokens
292308 cacheWritesPrice : 3.75 , // $3.75 per million tokens
309+ cacheWritesPrice1h : 6 , // $6.00 per million tokens (2x input price, 1h cache writes)
293310 cacheReadsPrice : 0.3 , // $0.30 per million tokens
294311 } ,
295312 "claude-3-5-sonnet-20241022" : {
@@ -300,6 +317,7 @@ export const anthropicModels = {
300317 inputPrice : 3.0 , // $3 per million input tokens
301318 outputPrice : 15.0 , // $15 per million output tokens
302319 cacheWritesPrice : 3.75 , // $3.75 per million tokens
320+ cacheWritesPrice1h : 6 , // $6.00 per million tokens (2x input price, 1h cache writes)
303321 cacheReadsPrice : 0.3 , // $0.30 per million tokens
304322 } ,
305323 "claude-3-5-haiku-20241022" : {
@@ -310,6 +328,7 @@ export const anthropicModels = {
310328 inputPrice : 1.0 ,
311329 outputPrice : 5.0 ,
312330 cacheWritesPrice : 1.25 ,
331+ cacheWritesPrice1h : 2 , // $2.00 per million tokens (2x input price, 1h cache writes)
313332 cacheReadsPrice : 0.1 ,
314333 } ,
315334 "claude-3-opus-20240229" : {
@@ -320,6 +339,7 @@ export const anthropicModels = {
320339 inputPrice : 15.0 ,
321340 outputPrice : 75.0 ,
322341 cacheWritesPrice : 18.75 ,
342+ cacheWritesPrice1h : 30 , // $30.00 per million tokens (2x input price, 1h cache writes)
323343 cacheReadsPrice : 1.5 ,
324344 } ,
325345 "claude-3-haiku-20240307" : {
@@ -330,6 +350,7 @@ export const anthropicModels = {
330350 inputPrice : 0.25 ,
331351 outputPrice : 1.25 ,
332352 cacheWritesPrice : 0.3 ,
353+ cacheWritesPrice1h : 0.5 , // $0.50 per million tokens (2x input price, 1h cache writes)
333354 cacheReadsPrice : 0.03 ,
334355 } ,
335356 "claude-haiku-4-5-20251001" : {
@@ -340,6 +361,7 @@ export const anthropicModels = {
340361 inputPrice : 1.0 ,
341362 outputPrice : 5.0 ,
342363 cacheWritesPrice : 1.25 ,
364+ cacheWritesPrice1h : 2 , // $2.00 per million tokens (2x input price, 1h cache writes)
343365 cacheReadsPrice : 0.1 ,
344366 supportsReasoningBudget : true ,
345367 description :
0 commit comments