@chenlongapps/opencode-token-usage 0.4.16 → 0.4.17

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.
@@ -1,5 +1,5 @@
1
1
  export declare const GENERATED_PRICE_SNAPSHOT: {
2
- readonly verified: "2026-10-23";
2
+ readonly verified: "2026-10-24";
3
3
  readonly source: "https://models.dev/api.json";
4
4
  readonly entries: readonly [{
5
5
  readonly providerID: "ai21";
@@ -31,9 +31,15 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
31
31
  readonly prices: readonly [{
32
32
  readonly input: 0.05;
33
33
  readonly output: 0.4;
34
+ readonly cache: {
35
+ readonly read: 0.01;
36
+ };
34
37
  }, {
35
38
  readonly input: 0.25;
36
39
  readonly output: 2;
40
+ readonly cache: {
41
+ readonly read: 0.05;
42
+ };
37
43
  readonly tier: {
38
44
  readonly type: "context";
39
45
  readonly size: 256000;
@@ -69,10 +75,16 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
69
75
  readonly input: 0.4;
70
76
  readonly output: 1.2;
71
77
  readonly reasoning: 4;
78
+ readonly cache: {
79
+ readonly read: 0.08;
80
+ };
72
81
  }, {
73
82
  readonly input: 1.2;
74
83
  readonly output: 3.6;
75
84
  readonly reasoning: 12;
85
+ readonly cache: {
86
+ readonly read: 0.24;
87
+ };
76
88
  readonly tier: {
77
89
  readonly type: "context";
78
90
  readonly size: 256000;
@@ -119,34 +131,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
119
131
  readonly output: 0.63;
120
132
  }];
121
133
  readonly released: "2024-01-25";
122
- }, {
123
- readonly providerID: "alibaba";
124
- readonly id: "qwen2-5-14b-instruct";
125
- readonly prices: readonly [{
126
- readonly input: 0.35;
127
- readonly output: 1.4;
128
- }];
129
- }, {
130
- readonly providerID: "alibaba";
131
- readonly id: "qwen2-5-32b-instruct";
132
- readonly prices: readonly [{
133
- readonly input: 0.7;
134
- readonly output: 2.8;
135
- }];
136
- }, {
137
- readonly providerID: "alibaba";
138
- readonly id: "qwen2-5-72b-instruct";
139
- readonly prices: readonly [{
140
- readonly input: 1.4;
141
- readonly output: 5.6;
142
- }];
143
- }, {
144
- readonly providerID: "alibaba";
145
- readonly id: "qwen2-5-7b-instruct";
146
- readonly prices: readonly [{
147
- readonly input: 0.175;
148
- readonly output: 0.7;
149
- }];
150
134
  }, {
151
135
  readonly providerID: "alibaba";
152
136
  readonly id: "qwen2-5-omni-7b";
@@ -154,20 +138,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
154
138
  readonly input: 0.1;
155
139
  readonly output: 0.4;
156
140
  }];
157
- }, {
158
- readonly providerID: "alibaba";
159
- readonly id: "qwen2-5-vl-72b-instruct";
160
- readonly prices: readonly [{
161
- readonly input: 2.8;
162
- readonly output: 8.4;
163
- }];
164
- }, {
165
- readonly providerID: "alibaba";
166
- readonly id: "qwen2-5-vl-7b-instruct";
167
- readonly prices: readonly [{
168
- readonly input: 0.35;
169
- readonly output: 1.05;
170
- }];
171
141
  }, {
172
142
  readonly providerID: "alibaba";
173
143
  readonly id: "qwen3-14b";
@@ -248,9 +218,15 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
248
218
  readonly prices: readonly [{
249
219
  readonly input: 0.3;
250
220
  readonly output: 1.5;
221
+ readonly cache: {
222
+ readonly read: 0.06;
223
+ };
251
224
  }, {
252
225
  readonly input: 0.5;
253
226
  readonly output: 2.5;
227
+ readonly cache: {
228
+ readonly read: 0.1;
229
+ };
254
230
  readonly tier: {
255
231
  readonly type: "context";
256
232
  readonly size: 32000;
@@ -258,6 +234,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
258
234
  }, {
259
235
  readonly input: 0.8;
260
236
  readonly output: 4;
237
+ readonly cache: {
238
+ readonly read: 0.16;
239
+ };
261
240
  readonly tier: {
262
241
  readonly type: "context";
263
242
  readonly size: 128000;
@@ -265,6 +244,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
265
244
  }, {
266
245
  readonly input: 1.6;
267
246
  readonly output: 9.6;
247
+ readonly cache: {
248
+ readonly read: 0.32;
249
+ };
268
250
  readonly tier: {
269
251
  readonly type: "context";
270
252
  readonly size: 256000;
@@ -323,9 +305,15 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
323
305
  readonly prices: readonly [{
324
306
  readonly input: 0.2;
325
307
  readonly output: 1.6;
308
+ readonly cache: {
309
+ readonly read: 0.04;
310
+ };
326
311
  }, {
327
312
  readonly input: 0.3;
328
313
  readonly output: 2.4;
314
+ readonly cache: {
315
+ readonly read: 0.06;
316
+ };
329
317
  readonly tier: {
330
318
  readonly type: "context";
331
319
  readonly size: 32000;
@@ -333,6 +321,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
333
321
  }, {
334
322
  readonly input: 0.6;
335
323
  readonly output: 4.8;
324
+ readonly cache: {
325
+ readonly read: 0.12;
326
+ };
336
327
  readonly tier: {
337
328
  readonly type: "context";
338
329
  readonly size: 128000;
@@ -473,13 +464,13 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
473
464
  readonly input: 0.03;
474
465
  readonly output: 0.13;
475
466
  readonly cache: {
476
- readonly read: 0.003;
467
+ readonly read: 0.006;
477
468
  };
478
469
  }, {
479
470
  readonly input: 0.1;
480
471
  readonly output: 0.4;
481
472
  readonly cache: {
482
- readonly read: 0.01;
473
+ readonly read: 0.02;
483
474
  };
484
475
  readonly tier: {
485
476
  readonly type: "context";
@@ -489,7 +480,7 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
489
480
  readonly input: 0.2;
490
481
  readonly output: 0.8;
491
482
  readonly cache: {
492
- readonly read: 0.02;
483
+ readonly read: 0.04;
493
484
  };
494
485
  readonly tier: {
495
486
  readonly type: "context";
@@ -515,13 +506,13 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
515
506
  readonly input: 0.4;
516
507
  readonly output: 1.6;
517
508
  readonly cache: {
518
- readonly read: 0.04;
509
+ readonly read: 0.08;
519
510
  };
520
511
  }, {
521
512
  readonly input: 1.2;
522
513
  readonly output: 4.8;
523
514
  readonly cache: {
524
- readonly read: 0.12;
515
+ readonly read: 0.24;
525
516
  };
526
517
  readonly tier: {
527
518
  readonly type: "context";
@@ -1521,14 +1512,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1521
1512
  readonly output: 2;
1522
1513
  }];
1523
1514
  readonly released: "2025-12-09";
1524
- }, {
1525
- readonly providerID: "mistral";
1526
- readonly id: "devstral-medium-2507";
1527
- readonly prices: readonly [{
1528
- readonly input: 0.4;
1529
- readonly output: 2;
1530
- }];
1531
- readonly released: "2025-07-10";
1532
1515
  }, {
1533
1516
  readonly providerID: "mistral";
1534
1517
  readonly id: "devstral-medium-latest";
@@ -1537,22 +1520,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1537
1520
  readonly output: 2;
1538
1521
  }];
1539
1522
  readonly released: "2025-12-02";
1540
- }, {
1541
- readonly providerID: "mistral";
1542
- readonly id: "devstral-small-2505";
1543
- readonly prices: readonly [{
1544
- readonly input: 0.1;
1545
- readonly output: 0.3;
1546
- }];
1547
- readonly released: "2025-05-07";
1548
- }, {
1549
- readonly providerID: "mistral";
1550
- readonly id: "devstral-small-2507";
1551
- readonly prices: readonly [{
1552
- readonly input: 0.1;
1553
- readonly output: 0.3;
1554
- }];
1555
- readonly released: "2025-07-10";
1556
1523
  }, {
1557
1524
  readonly providerID: "mistral";
1558
1525
  readonly id: "labs-devstral-small-2512";
@@ -1624,14 +1591,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1624
1591
  };
1625
1592
  }];
1626
1593
  readonly released: "2024-10-01";
1627
- }, {
1628
- readonly providerID: "mistral";
1629
- readonly id: "mistral-large-2411";
1630
- readonly prices: readonly [{
1631
- readonly input: 2;
1632
- readonly output: 6;
1633
- }];
1634
- readonly released: "2024-11-18";
1635
1594
  }, {
1636
1595
  readonly providerID: "mistral";
1637
1596
  readonly id: "mistral-large-2512";
@@ -1703,14 +1662,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1703
1662
  };
1704
1663
  }];
1705
1664
  readonly released: "2026-04-29";
1706
- }, {
1707
- readonly providerID: "mistral";
1708
- readonly id: "mistral-nemo";
1709
- readonly prices: readonly [{
1710
- readonly input: 0.15;
1711
- readonly output: 0.15;
1712
- }];
1713
- readonly released: "2024-07-01";
1714
1665
  }, {
1715
1666
  readonly providerID: "mistral";
1716
1667
  readonly id: "mistral-small-2506";
@@ -1757,14 +1708,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1757
1708
  readonly output: 0.15;
1758
1709
  }];
1759
1710
  readonly released: "2024-09-01";
1760
- }, {
1761
- readonly providerID: "mistral";
1762
- readonly id: "pixtral-large-latest";
1763
- readonly prices: readonly [{
1764
- readonly input: 2;
1765
- readonly output: 6;
1766
- }];
1767
- readonly released: "2024-11-01";
1768
1711
  }, {
1769
1712
  readonly providerID: "mistral";
1770
1713
  readonly id: "voxtral-small-2507";
@@ -1826,6 +1769,30 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1826
1769
  };
1827
1770
  }];
1828
1771
  readonly released: "2026-07-16";
1772
+ }, {
1773
+ readonly providerID: "moonshotai";
1774
+ readonly id: "kimi-k3.1-pro";
1775
+ readonly prices: readonly [{
1776
+ readonly input: 2;
1777
+ readonly output: 10;
1778
+ readonly cache: {
1779
+ readonly read: 0.2;
1780
+ readonly write: 2;
1781
+ };
1782
+ }];
1783
+ readonly released: "2026-10-23";
1784
+ }, {
1785
+ readonly providerID: "moonshotai";
1786
+ readonly id: "kimi-k3.1-pro-highspeed";
1787
+ readonly prices: readonly [{
1788
+ readonly input: 4;
1789
+ readonly output: 20;
1790
+ readonly cache: {
1791
+ readonly read: 0.2;
1792
+ readonly write: 4;
1793
+ };
1794
+ }];
1795
+ readonly released: "2026-10-23";
1829
1796
  }, {
1830
1797
  readonly providerID: "nvidia";
1831
1798
  readonly id: "nvidia/llama-3.1-nemotron-70b-instruct";
@@ -2905,28 +2872,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
2905
2872
  };
2906
2873
  }];
2907
2874
  readonly released: "2026-08-03";
2908
- }, {
2909
- readonly providerID: "stepfun-ai";
2910
- readonly id: "step-1-32k";
2911
- readonly prices: readonly [{
2912
- readonly input: 2.05;
2913
- readonly output: 9.59;
2914
- readonly cache: {
2915
- readonly read: 0.41;
2916
- };
2917
- }];
2918
- readonly released: "2025-01-01";
2919
- }, {
2920
- readonly providerID: "stepfun-ai";
2921
- readonly id: "step-2-16k";
2922
- readonly prices: readonly [{
2923
- readonly input: 5.21;
2924
- readonly output: 16.44;
2925
- readonly cache: {
2926
- readonly read: 1.04;
2927
- };
2928
- }];
2929
- readonly released: "2025-01-01";
2930
2875
  }, {
2931
2876
  readonly providerID: "stepfun-ai";
2932
2877
  readonly id: "step-3.5-flash";
@@ -3498,39 +3443,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
3498
3443
  };
3499
3444
  }];
3500
3445
  readonly released: "2026-04-16";
3501
- }, {
3502
- readonly providerID: "xiaomi";
3503
- readonly id: "mimo-v2-flash";
3504
- readonly prices: readonly [{
3505
- readonly input: 0.14;
3506
- readonly output: 0.28;
3507
- readonly cache: {
3508
- readonly read: 0.0028;
3509
- };
3510
- }];
3511
- readonly released: "2025-12-16";
3512
- }, {
3513
- readonly providerID: "xiaomi";
3514
- readonly id: "mimo-v2-omni";
3515
- readonly prices: readonly [{
3516
- readonly input: 0.14;
3517
- readonly output: 0.28;
3518
- readonly cache: {
3519
- readonly read: 0.0028;
3520
- };
3521
- }];
3522
- readonly released: "2026-03-18";
3523
- }, {
3524
- readonly providerID: "xiaomi";
3525
- readonly id: "mimo-v2-pro";
3526
- readonly prices: readonly [{
3527
- readonly input: 0.435;
3528
- readonly output: 0.87;
3529
- readonly cache: {
3530
- readonly read: 0.0036;
3531
- };
3532
- }];
3533
- readonly released: "2026-03-18";
3534
3446
  }, {
3535
3447
  readonly providerID: "xiaomi";
3536
3448
  readonly id: "mimo-v2.5";
@@ -1,41 +1,35 @@
1
1
  export const GENERATED_PRICE_SNAPSHOT = {
2
- verified: "2026-10-23",
2
+ verified: "2026-10-24",
3
3
  source: "https://models.dev/api.json",
4
4
  entries: [
5
5
  { "providerID": "ai21", "id": "jamba-large", "prices": [{ "input": 2, "output": 8 }], "released": "2025-07-03" },
6
6
  { "providerID": "ai21", "id": "jamba-mini", "prices": [{ "input": 0.2, "output": 0.4 }], "released": "2026-01-08" },
7
7
  { "providerID": "alibaba", "id": "qvq-max", "prices": [{ "input": 1.2, "output": 4.8 }], "released": "2025-03-25" },
8
- { "providerID": "alibaba", "id": "qwen-flash", "prices": [{ "input": 0.05, "output": 0.4 }, { "input": 0.25, "output": 2, "tier": { "type": "context", "size": 256000 } }], "released": "2025-07-28" },
8
+ { "providerID": "alibaba", "id": "qwen-flash", "prices": [{ "input": 0.05, "output": 0.4, "cache": { "read": 0.01 } }, { "input": 0.25, "output": 2, "cache": { "read": 0.05 }, "tier": { "type": "context", "size": 256000 } }], "released": "2025-07-28" },
9
9
  { "providerID": "alibaba", "id": "qwen-max", "prices": [{ "input": 1.6, "output": 6.4 }], "released": "2024-04-03" },
10
10
  { "providerID": "alibaba", "id": "qwen-mt-plus", "prices": [{ "input": 2.46, "output": 7.37 }] },
11
11
  { "providerID": "alibaba", "id": "qwen-mt-turbo", "prices": [{ "input": 0.16, "output": 0.49 }] },
12
- { "providerID": "alibaba", "id": "qwen-plus", "prices": [{ "input": 0.4, "output": 1.2, "reasoning": 4 }, { "input": 1.2, "output": 3.6, "reasoning": 12, "tier": { "type": "context", "size": 256000 } }], "released": "2024-01-25" },
12
+ { "providerID": "alibaba", "id": "qwen-plus", "prices": [{ "input": 0.4, "output": 1.2, "reasoning": 4, "cache": { "read": 0.08 } }, { "input": 1.2, "output": 3.6, "reasoning": 12, "cache": { "read": 0.24 }, "tier": { "type": "context", "size": 256000 } }], "released": "2024-01-25" },
13
13
  { "providerID": "alibaba", "id": "qwen-plus-character-ja", "prices": [{ "input": 0.5, "output": 1.4 }] },
14
14
  { "providerID": "alibaba", "id": "qwen-turbo", "prices": [{ "input": 0.05, "output": 0.2, "reasoning": 0.5 }], "released": "2024-11-01" },
15
15
  { "providerID": "alibaba", "id": "qwen-vl-max", "prices": [{ "input": 0.8, "output": 3.2 }], "released": "2024-04-08" },
16
16
  { "providerID": "alibaba", "id": "qwen-vl-ocr", "prices": [{ "input": 0.07, "output": 0.16 }], "released": "2024-10-28" },
17
17
  { "providerID": "alibaba", "id": "qwen-vl-plus", "prices": [{ "input": 0.21, "output": 0.63 }], "released": "2024-01-25" },
18
- { "providerID": "alibaba", "id": "qwen2-5-14b-instruct", "prices": [{ "input": 0.35, "output": 1.4 }] },
19
- { "providerID": "alibaba", "id": "qwen2-5-32b-instruct", "prices": [{ "input": 0.7, "output": 2.8 }] },
20
- { "providerID": "alibaba", "id": "qwen2-5-72b-instruct", "prices": [{ "input": 1.4, "output": 5.6 }] },
21
- { "providerID": "alibaba", "id": "qwen2-5-7b-instruct", "prices": [{ "input": 0.175, "output": 0.7 }] },
22
18
  { "providerID": "alibaba", "id": "qwen2-5-omni-7b", "prices": [{ "input": 0.1, "output": 0.4 }] },
23
- { "providerID": "alibaba", "id": "qwen2-5-vl-72b-instruct", "prices": [{ "input": 2.8, "output": 8.4 }] },
24
- { "providerID": "alibaba", "id": "qwen2-5-vl-7b-instruct", "prices": [{ "input": 0.35, "output": 1.05 }] },
25
19
  { "providerID": "alibaba", "id": "qwen3-14b", "prices": [{ "input": 0.35, "output": 1.4, "reasoning": 4.2 }] },
26
20
  { "providerID": "alibaba", "id": "qwen3-235b-a22b", "prices": [{ "input": 0.7, "output": 2.8, "reasoning": 8.4 }] },
27
21
  { "providerID": "alibaba", "id": "qwen3-32b", "prices": [{ "input": 0.7, "output": 2.8, "reasoning": 8.4 }] },
28
22
  { "providerID": "alibaba", "id": "qwen3-8b", "prices": [{ "input": 0.18, "output": 0.7, "reasoning": 2.1 }] },
29
23
  { "providerID": "alibaba", "id": "qwen3-coder-30b-a3b-instruct", "prices": [{ "input": 0.45, "output": 2.25 }, { "input": 0.75, "output": 3.75, "tier": { "type": "context", "size": 32000 } }, { "input": 1.2, "output": 6, "tier": { "type": "context", "size": 128000 } }] },
30
24
  { "providerID": "alibaba", "id": "qwen3-coder-480b-a35b-instruct", "prices": [{ "input": 1.5, "output": 7.5 }, { "input": 2.7, "output": 13.5, "tier": { "type": "context", "size": 32000 } }, { "input": 4.5, "output": 22.5, "tier": { "type": "context", "size": 128000 } }] },
31
- { "providerID": "alibaba", "id": "qwen3-coder-flash", "prices": [{ "input": 0.3, "output": 1.5 }, { "input": 0.5, "output": 2.5, "tier": { "type": "context", "size": 32000 } }, { "input": 0.8, "output": 4, "tier": { "type": "context", "size": 128000 } }, { "input": 1.6, "output": 9.6, "tier": { "type": "context", "size": 256000 } }], "released": "2025-07-28" },
25
+ { "providerID": "alibaba", "id": "qwen3-coder-flash", "prices": [{ "input": 0.3, "output": 1.5, "cache": { "read": 0.06 } }, { "input": 0.5, "output": 2.5, "cache": { "read": 0.1 }, "tier": { "type": "context", "size": 32000 } }, { "input": 0.8, "output": 4, "cache": { "read": 0.16 }, "tier": { "type": "context", "size": 128000 } }, { "input": 1.6, "output": 9.6, "cache": { "read": 0.32 }, "tier": { "type": "context", "size": 256000 } }], "released": "2025-07-28" },
32
26
  { "providerID": "alibaba", "id": "qwen3-coder-plus", "prices": [{ "input": 1, "output": 5 }], "released": "2025-07-23" },
33
27
  { "providerID": "alibaba", "id": "qwen3-max", "prices": [{ "input": 1.2, "output": 6 }], "released": "2025-09-23" },
34
28
  { "providerID": "alibaba", "id": "qwen3-next-80b-a3b-instruct", "prices": [{ "input": 0.5, "output": 2 }] },
35
29
  { "providerID": "alibaba", "id": "qwen3-next-80b-a3b-thinking", "prices": [{ "input": 0.5, "output": 6 }] },
36
30
  { "providerID": "alibaba", "id": "qwen3-vl-235b-a22b", "prices": [{ "input": 0.7, "output": 2.8, "reasoning": 8.4 }] },
37
31
  { "providerID": "alibaba", "id": "qwen3-vl-30b-a3b", "prices": [{ "input": 0.2, "output": 0.8, "reasoning": 2.4 }] },
38
- { "providerID": "alibaba", "id": "qwen3-vl-plus", "prices": [{ "input": 0.2, "output": 1.6 }, { "input": 0.3, "output": 2.4, "tier": { "type": "context", "size": 32000 } }, { "input": 0.6, "output": 4.8, "tier": { "type": "context", "size": 128000 } }], "released": "2025-09-23" },
32
+ { "providerID": "alibaba", "id": "qwen3-vl-plus", "prices": [{ "input": 0.2, "output": 1.6, "cache": { "read": 0.04 } }, { "input": 0.3, "output": 2.4, "cache": { "read": 0.06 }, "tier": { "type": "context", "size": 32000 } }, { "input": 0.6, "output": 4.8, "cache": { "read": 0.12 }, "tier": { "type": "context", "size": 128000 } }], "released": "2025-09-23" },
39
33
  { "providerID": "alibaba", "id": "qwen3.5-122b-a10b", "prices": [{ "input": 0.4, "output": 3.2 }], "released": "2026-02-23" },
40
34
  { "providerID": "alibaba", "id": "qwen3.5-27b", "prices": [{ "input": 0.3, "output": 2.4 }], "released": "2026-02-23" },
41
35
  { "providerID": "alibaba", "id": "qwen3.5-35b-a3b", "prices": [{ "input": 0.25, "output": 2 }], "released": "2026-02-23" },
@@ -47,9 +41,9 @@ export const GENERATED_PRICE_SNAPSHOT = {
47
41
  { "providerID": "alibaba", "id": "qwen3.6-flash", "prices": [{ "input": 0.25, "output": 1.5, "cache": { "read": 0.025 } }, { "input": 1, "output": 4, "cache": { "read": 0.1 }, "tier": { "type": "context", "size": 256000 } }], "released": "2026-04-27" },
48
42
  { "providerID": "alibaba", "id": "qwen3.6-max-preview", "prices": [{ "input": 1.3, "output": 7.8, "cache": { "read": 0.13 } }], "released": "2026-04-20" },
49
43
  { "providerID": "alibaba", "id": "qwen3.6-plus", "prices": [{ "input": 0.5, "output": 3, "cache": { "read": 0.05 } }, { "input": 2, "output": 6, "cache": { "read": 0.2 }, "tier": { "type": "context", "size": 256000 } }], "released": "2026-04-02" },
50
- { "providerID": "alibaba", "id": "qwen3.7-flash", "prices": [{ "input": 0.03, "output": 0.13, "cache": { "read": 0.003 } }, { "input": 0.1, "output": 0.4, "cache": { "read": 0.01 }, "tier": { "type": "context", "size": 32000 } }, { "input": 0.2, "output": 0.8, "cache": { "read": 0.02 }, "tier": { "type": "context", "size": 256000 } }], "released": "2026-07-15" },
44
+ { "providerID": "alibaba", "id": "qwen3.7-flash", "prices": [{ "input": 0.03, "output": 0.13, "cache": { "read": 0.006 } }, { "input": 0.1, "output": 0.4, "cache": { "read": 0.02 }, "tier": { "type": "context", "size": 32000 } }, { "input": 0.2, "output": 0.8, "cache": { "read": 0.04 }, "tier": { "type": "context", "size": 256000 } }], "released": "2026-07-15" },
51
45
  { "providerID": "alibaba", "id": "qwen3.7-max", "prices": [{ "input": 2.5, "output": 7.5, "cache": { "read": 0.5 } }], "released": "2026-05-21" },
52
- { "providerID": "alibaba", "id": "qwen3.7-plus", "prices": [{ "input": 0.4, "output": 1.6, "cache": { "read": 0.04 } }, { "input": 1.2, "output": 4.8, "cache": { "read": 0.12 }, "tier": { "type": "context", "size": 256000 } }], "released": "2026-06-02" },
46
+ { "providerID": "alibaba", "id": "qwen3.7-plus", "prices": [{ "input": 0.4, "output": 1.6, "cache": { "read": 0.08 } }, { "input": 1.2, "output": 4.8, "cache": { "read": 0.24 }, "tier": { "type": "context", "size": 256000 } }], "released": "2026-06-02" },
53
47
  { "providerID": "alibaba", "id": "qwen3.8-flash", "prices": [{ "input": 0.15, "output": 0.47, "cache": { "read": 0.016 } }], "released": "2026-08-26" },
54
48
  { "providerID": "alibaba", "id": "qwen3.8-max", "prices": [{ "input": 2, "output": 6, "cache": { "read": 0.25 } }], "released": "2026-08-03" },
55
49
  { "providerID": "alibaba", "id": "qwen3.8-omni-flash", "prices": [{ "input": 0.15, "output": 0.47, "cache": { "read": 0.016 } }], "released": "2026-09-17" },
@@ -134,10 +128,7 @@ export const GENERATED_PRICE_SNAPSHOT = {
134
128
  { "providerID": "mistral", "id": "codestral-latest", "prices": [{ "input": 0.3, "output": 0.9, "cache": { "read": 0.03 } }], "released": "2024-05-29" },
135
129
  { "providerID": "mistral", "id": "devstral-2512", "prices": [{ "input": 0.4, "output": 2 }], "released": "2025-12-09" },
136
130
  { "providerID": "mistral", "id": "devstral-latest", "prices": [{ "input": 0.4, "output": 2 }], "released": "2025-12-09" },
137
- { "providerID": "mistral", "id": "devstral-medium-2507", "prices": [{ "input": 0.4, "output": 2 }], "released": "2025-07-10" },
138
131
  { "providerID": "mistral", "id": "devstral-medium-latest", "prices": [{ "input": 0.4, "output": 2 }], "released": "2025-12-02" },
139
- { "providerID": "mistral", "id": "devstral-small-2505", "prices": [{ "input": 0.1, "output": 0.3 }], "released": "2025-05-07" },
140
- { "providerID": "mistral", "id": "devstral-small-2507", "prices": [{ "input": 0.1, "output": 0.3 }], "released": "2025-07-10" },
141
132
  { "providerID": "mistral", "id": "labs-devstral-small-2512", "prices": [{ "input": 0, "output": 0 }], "released": "2025-12-09" },
142
133
  { "providerID": "mistral", "id": "magistral-medium-latest", "prices": [{ "input": 2, "output": 5 }], "released": "2025-03-17" },
143
134
  { "providerID": "mistral", "id": "ministral-14b-2512", "prices": [{ "input": 0.2, "output": 0.2, "cache": { "read": 0.02 } }], "released": "2025-12-02" },
@@ -145,7 +136,6 @@ export const GENERATED_PRICE_SNAPSHOT = {
145
136
  { "providerID": "mistral", "id": "ministral-3b-latest", "prices": [{ "input": 0.1, "output": 0.1, "cache": { "read": 0.01 } }], "released": "2024-10-01" },
146
137
  { "providerID": "mistral", "id": "ministral-8b-2512", "prices": [{ "input": 0.15, "output": 0.15, "cache": { "read": 0.015 } }], "released": "2025-12-02" },
147
138
  { "providerID": "mistral", "id": "ministral-8b-latest", "prices": [{ "input": 0.15, "output": 0.15, "cache": { "read": 0.015 } }], "released": "2024-10-01" },
148
- { "providerID": "mistral", "id": "mistral-large-2411", "prices": [{ "input": 2, "output": 6 }], "released": "2024-11-18" },
149
139
  { "providerID": "mistral", "id": "mistral-large-2512", "prices": [{ "input": 0.5, "output": 1.5, "cache": { "read": 0.05 } }], "released": "2024-11-01" },
150
140
  { "providerID": "mistral", "id": "mistral-large-4", "prices": [{ "input": 1.36, "output": 4.18, "cache": { "read": 0.14 } }], "released": "2026-10-06" },
151
141
  { "providerID": "mistral", "id": "mistral-large-latest", "prices": [{ "input": 0.5, "output": 1.5, "cache": { "read": 0.05 } }], "released": "2024-11-01" },
@@ -153,19 +143,19 @@ export const GENERATED_PRICE_SNAPSHOT = {
153
143
  { "providerID": "mistral", "id": "mistral-medium-2508", "prices": [{ "input": 0.4, "output": 2 }], "released": "2025-08-12" },
154
144
  { "providerID": "mistral", "id": "mistral-medium-2604", "prices": [{ "input": 1.5, "output": 7.5, "cache": { "read": 0.15 } }], "released": "2026-04-29" },
155
145
  { "providerID": "mistral", "id": "mistral-medium-latest", "prices": [{ "input": 1.5, "output": 7.5, "cache": { "read": 0.15 } }], "released": "2026-04-29" },
156
- { "providerID": "mistral", "id": "mistral-nemo", "prices": [{ "input": 0.15, "output": 0.15 }], "released": "2024-07-01" },
157
146
  { "providerID": "mistral", "id": "mistral-small-2506", "prices": [{ "input": 0.1, "output": 0.3 }], "released": "2025-06-20" },
158
147
  { "providerID": "mistral", "id": "mistral-small-2603", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.015 } }], "released": "2026-03-16" },
159
148
  { "providerID": "mistral", "id": "mistral-small-latest", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.015 } }], "released": "2026-03-16" },
160
149
  { "providerID": "mistral", "id": "open-mistral-nemo", "prices": [{ "input": 0.15, "output": 0.15 }], "released": "2024-07-01" },
161
150
  { "providerID": "mistral", "id": "pixtral-12b", "prices": [{ "input": 0.15, "output": 0.15 }], "released": "2024-09-01" },
162
- { "providerID": "mistral", "id": "pixtral-large-latest", "prices": [{ "input": 2, "output": 6 }], "released": "2024-11-01" },
163
151
  { "providerID": "mistral", "id": "voxtral-small-2507", "prices": [{ "input": 0.1, "output": 0.4 }], "released": "2025-07-15" },
164
152
  { "providerID": "mistral", "id": "voxtral-small-latest", "prices": [{ "input": 0.1, "output": 0.4 }], "released": "2025-07-15" },
165
153
  { "providerID": "moonshotai", "id": "kimi-k2.6", "prices": [{ "input": 0.95, "output": 4, "cache": { "read": 0.16 } }], "released": "2026-04-20" },
166
154
  { "providerID": "moonshotai", "id": "kimi-k2.7-code", "prices": [{ "input": 0.95, "output": 4, "cache": { "read": 0.19 } }], "released": "2026-06-12" },
167
155
  { "providerID": "moonshotai", "id": "kimi-k2.7-code-highspeed", "prices": [{ "input": 1.9, "output": 8, "cache": { "read": 0.38 } }], "released": "2026-06-12" },
168
156
  { "providerID": "moonshotai", "id": "kimi-k3", "prices": [{ "input": 3, "output": 15, "cache": { "read": 0.3, "write": 3 } }], "released": "2026-07-16" },
157
+ { "providerID": "moonshotai", "id": "kimi-k3.1-pro", "prices": [{ "input": 2, "output": 10, "cache": { "read": 0.2, "write": 2 } }], "released": "2026-10-23" },
158
+ { "providerID": "moonshotai", "id": "kimi-k3.1-pro-highspeed", "prices": [{ "input": 4, "output": 20, "cache": { "read": 0.2, "write": 4 } }], "released": "2026-10-23" },
169
159
  { "providerID": "nvidia", "id": "nvidia/llama-3.1-nemotron-70b-instruct", "prices": [{ "input": 0, "output": 0 }], "released": "2025-04-15" },
170
160
  { "providerID": "nvidia", "id": "nvidia/llama-3.1-nemotron-safety-guard-8b-v3", "prices": [{ "input": 0, "output": 0 }], "released": "2025-10-28" },
171
161
  { "providerID": "nvidia", "id": "nvidia/llama-3.1-nemotron-ultra-253b-v1", "prices": [{ "input": 0, "output": 0 }], "released": "2025-04-07" },
@@ -248,8 +238,6 @@ export const GENERATED_PRICE_SNAPSHOT = {
248
238
  { "providerID": "sakana", "id": "fugu-ultra", "prices": [{ "input": 5, "output": 30, "cache": { "read": 0.5 } }, { "input": 10, "output": 45, "cache": { "read": 1 }, "tier": { "type": "context", "size": 272000 } }], "released": "2026-06-15" },
249
239
  { "providerID": "sakana", "id": "fugu-ultra-20260615", "prices": [{ "input": 5, "output": 30, "cache": { "read": 0.5 } }, { "input": 10, "output": 45, "cache": { "read": 1 }, "tier": { "type": "context", "size": 272000 } }], "released": "2026-06-15" },
250
240
  { "providerID": "sakana", "id": "sakana-namazu", "prices": [{ "input": 0.95, "output": 4, "cache": { "read": 0.15 } }], "released": "2026-08-03" },
251
- { "providerID": "stepfun-ai", "id": "step-1-32k", "prices": [{ "input": 2.05, "output": 9.59, "cache": { "read": 0.41 } }], "released": "2025-01-01" },
252
- { "providerID": "stepfun-ai", "id": "step-2-16k", "prices": [{ "input": 5.21, "output": 16.44, "cache": { "read": 1.04 } }], "released": "2025-01-01" },
253
241
  { "providerID": "stepfun-ai", "id": "step-3.5-flash", "prices": [{ "input": 0.1, "output": 0.3, "cache": { "read": 0.02 } }], "released": "2026-01-29" },
254
242
  { "providerID": "stepfun-ai", "id": "step-3.5-flash-2603", "prices": [{ "input": 0.1, "output": 0.3, "cache": { "read": 0.02 } }], "released": "2026-04-02" },
255
243
  { "providerID": "stepfun-ai", "id": "step-3.7-flash", "prices": [{ "input": 0.2, "output": 1.15, "cache": { "read": 0.04 } }], "released": "2026-05-29" },
@@ -280,9 +268,6 @@ export const GENERATED_PRICE_SNAPSHOT = {
280
268
  { "providerID": "xai", "id": "grok-4.6", "prices": [{ "input": 2, "output": 6, "cache": { "read": 0.5 } }, { "input": 4, "output": 12, "cache": { "read": 1 }, "tier": { "type": "context", "size": 199999 } }], "released": "2026-08-12" },
281
269
  { "providerID": "xai", "id": "grok-4.7", "prices": [{ "input": 2, "output": 6, "cache": { "read": 0.5 } }, { "input": 4, "output": 12, "cache": { "read": 1 }, "tier": { "type": "context", "size": 199999 } }], "released": "2026-09-21" },
282
270
  { "providerID": "xai", "id": "grok-build-0.1", "prices": [{ "input": 1, "output": 2, "cache": { "read": 0.2 } }, { "input": 2, "output": 4, "cache": { "read": 0.4 }, "tier": { "type": "context", "size": 199999 } }], "released": "2026-04-16" },
283
- { "providerID": "xiaomi", "id": "mimo-v2-flash", "prices": [{ "input": 0.14, "output": 0.28, "cache": { "read": 0.0028 } }], "released": "2025-12-16" },
284
- { "providerID": "xiaomi", "id": "mimo-v2-omni", "prices": [{ "input": 0.14, "output": 0.28, "cache": { "read": 0.0028 } }], "released": "2026-03-18" },
285
- { "providerID": "xiaomi", "id": "mimo-v2-pro", "prices": [{ "input": 0.435, "output": 0.87, "cache": { "read": 0.0036 } }], "released": "2026-03-18" },
286
271
  { "providerID": "xiaomi", "id": "mimo-v2.5", "prices": [{ "input": 0.14, "output": 0.28, "cache": { "read": 0.0028 } }], "released": "2026-04-22" },
287
272
  { "providerID": "xiaomi", "id": "mimo-v2.5-pro", "prices": [{ "input": 0.435, "output": 0.87, "cache": { "read": 0.0036 } }], "released": "2026-04-22" },
288
273
  { "providerID": "xiaomi", "id": "mimo-v2.5-pro-ultraspeed", "prices": [{ "input": 1.305, "output": 2.61, "cache": { "read": 0.0108 } }], "released": "2026-06-08" },
package/dist/pricing.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface OfficialPriceEntry {
14
14
  /** Checked-in data: updating prices is explicit, not a network request at
15
15
  * startup, during a refresh, or during an npm build. */
16
16
  export declare const OFFICIAL_PRICE_SNAPSHOT: {
17
- verified: "2026-10-23";
17
+ verified: "2026-10-24";
18
18
  source: "https://models.dev/api.json";
19
19
  entries: OfficialPriceEntry[];
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chenlongapps/opencode-token-usage",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
4
4
  "description": "OpenCode 2 plugin for session-tree token usage, context window monitoring, estimated costs, and performance metrics (TPS, TTFT, run time).",
5
5
  "keywords": [
6
6
  "opencode",