@chenlongapps/opencode-token-usage 0.4.2 → 0.4.4

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-09-25";
2
+ readonly verified: "2026-10-02";
3
3
  readonly source: "https://models.dev/api.json";
4
4
  readonly entries: readonly [{
5
5
  readonly providerID: "ai21";
@@ -322,6 +322,17 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
322
322
  readonly output: 3.6;
323
323
  }];
324
324
  readonly released: "2026-02-15";
325
+ }, {
326
+ readonly providerID: "alibaba";
327
+ readonly id: "qwen3.5-flash";
328
+ readonly prices: readonly [{
329
+ readonly input: 0.1;
330
+ readonly output: 0.4;
331
+ readonly cache: {
332
+ readonly read: 0.01;
333
+ };
334
+ }];
335
+ readonly released: "2026-02-23";
325
336
  }, {
326
337
  readonly providerID: "alibaba";
327
338
  readonly id: "qwen3.5-plus";
@@ -387,6 +398,37 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
387
398
  };
388
399
  }];
389
400
  readonly released: "2026-04-02";
401
+ }, {
402
+ readonly providerID: "alibaba";
403
+ readonly id: "qwen3.7-flash";
404
+ readonly prices: readonly [{
405
+ readonly input: 0.03;
406
+ readonly output: 0.13;
407
+ readonly cache: {
408
+ readonly read: 0.003;
409
+ };
410
+ }, {
411
+ readonly input: 0.1;
412
+ readonly output: 0.4;
413
+ readonly cache: {
414
+ readonly read: 0.01;
415
+ };
416
+ readonly tier: {
417
+ readonly type: "context";
418
+ readonly size: 32000;
419
+ };
420
+ }, {
421
+ readonly input: 0.2;
422
+ readonly output: 0.8;
423
+ readonly cache: {
424
+ readonly read: 0.02;
425
+ };
426
+ readonly tier: {
427
+ readonly type: "context";
428
+ readonly size: 256000;
429
+ };
430
+ }];
431
+ readonly released: "2026-07-15";
390
432
  }, {
391
433
  readonly providerID: "alibaba";
392
434
  readonly id: "qwen3.7-max";
@@ -402,16 +444,16 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
402
444
  readonly providerID: "alibaba";
403
445
  readonly id: "qwen3.7-plus";
404
446
  readonly prices: readonly [{
405
- readonly input: 0.5;
406
- readonly output: 3;
447
+ readonly input: 0.4;
448
+ readonly output: 1.6;
407
449
  readonly cache: {
408
- readonly read: 0.05;
450
+ readonly read: 0.04;
409
451
  };
410
452
  }, {
411
- readonly input: 2;
412
- readonly output: 6;
453
+ readonly input: 1.2;
454
+ readonly output: 4.8;
413
455
  readonly cache: {
414
- readonly read: 0.2;
456
+ readonly read: 0.12;
415
457
  };
416
458
  readonly tier: {
417
459
  readonly type: "context";
@@ -441,6 +483,17 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
441
483
  };
442
484
  }];
443
485
  readonly released: "2026-08-03";
486
+ }, {
487
+ readonly providerID: "alibaba";
488
+ readonly id: "qwen3.8-omni-flash";
489
+ readonly prices: readonly [{
490
+ readonly input: 0.15;
491
+ readonly output: 0.47;
492
+ readonly cache: {
493
+ readonly read: 0.016;
494
+ };
495
+ }];
496
+ readonly released: "2026-09-17";
444
497
  }, {
445
498
  readonly providerID: "alibaba";
446
499
  readonly id: "qwq-plus";
@@ -668,6 +721,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
668
721
  };
669
722
  }];
670
723
  readonly released: "2026-06-29";
724
+ }, {
725
+ readonly providerID: "anthropic";
726
+ readonly id: "claude-sonnet-5-5";
727
+ readonly prices: readonly [{
728
+ readonly input: 2;
729
+ readonly output: 10;
730
+ readonly cache: {
731
+ readonly read: 0.2;
732
+ readonly write: 2.5;
733
+ };
734
+ }];
735
+ readonly released: "2026-09-28";
671
736
  }, {
672
737
  readonly providerID: "arcee";
673
738
  readonly id: "trinity-large-thinking";
@@ -759,6 +824,14 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
759
824
  readonly output: 0;
760
825
  }];
761
826
  readonly released: "2026-06-09";
827
+ }, {
828
+ readonly providerID: "cohere";
829
+ readonly id: "north-small-translate-09-2026";
830
+ readonly prices: readonly [{
831
+ readonly input: 0;
832
+ readonly output: 0;
833
+ }];
834
+ readonly released: "2026-09-09";
762
835
  }, {
763
836
  readonly providerID: "deepseek";
764
837
  readonly id: "deepseek-flash";
@@ -1249,6 +1322,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1249
1322
  readonly prices: readonly [{
1250
1323
  readonly input: 0.3;
1251
1324
  readonly output: 0.9;
1325
+ readonly cache: {
1326
+ readonly read: 0.03;
1327
+ };
1252
1328
  }];
1253
1329
  readonly released: "2024-05-29";
1254
1330
  }, {
@@ -1315,14 +1391,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1315
1391
  readonly output: 5;
1316
1392
  }];
1317
1393
  readonly released: "2025-03-17";
1318
- }, {
1319
- readonly providerID: "mistral";
1320
- readonly id: "magistral-small";
1321
- readonly prices: readonly [{
1322
- readonly input: 0.5;
1323
- readonly output: 1.5;
1324
- }];
1325
- readonly released: "2025-03-17";
1326
1394
  }, {
1327
1395
  readonly providerID: "mistral";
1328
1396
  readonly id: "ministral-3b-latest";
@@ -1353,6 +1421,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1353
1421
  readonly prices: readonly [{
1354
1422
  readonly input: 0.5;
1355
1423
  readonly output: 1.5;
1424
+ readonly cache: {
1425
+ readonly read: 0.05;
1426
+ };
1356
1427
  }];
1357
1428
  readonly released: "2024-11-01";
1358
1429
  }, {
@@ -1361,6 +1432,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1361
1432
  readonly prices: readonly [{
1362
1433
  readonly input: 0.5;
1363
1434
  readonly output: 1.5;
1435
+ readonly cache: {
1436
+ readonly read: 0.05;
1437
+ };
1364
1438
  }];
1365
1439
  readonly released: "2024-11-01";
1366
1440
  }, {
@@ -1385,6 +1459,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1385
1459
  readonly prices: readonly [{
1386
1460
  readonly input: 1.5;
1387
1461
  readonly output: 7.5;
1462
+ readonly cache: {
1463
+ readonly read: 0.15;
1464
+ };
1388
1465
  }];
1389
1466
  readonly released: "2026-04-29";
1390
1467
  }, {
@@ -1393,6 +1470,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1393
1470
  readonly prices: readonly [{
1394
1471
  readonly input: 1.5;
1395
1472
  readonly output: 7.5;
1473
+ readonly cache: {
1474
+ readonly read: 0.15;
1475
+ };
1396
1476
  }];
1397
1477
  readonly released: "2026-04-29";
1398
1478
  }, {
@@ -1417,6 +1497,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1417
1497
  readonly prices: readonly [{
1418
1498
  readonly input: 0.15;
1419
1499
  readonly output: 0.6;
1500
+ readonly cache: {
1501
+ readonly read: 0.015;
1502
+ };
1420
1503
  }];
1421
1504
  readonly released: "2026-03-16";
1422
1505
  }, {
@@ -1425,6 +1508,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1425
1508
  readonly prices: readonly [{
1426
1509
  readonly input: 0.15;
1427
1510
  readonly output: 0.6;
1511
+ readonly cache: {
1512
+ readonly read: 0.015;
1513
+ };
1428
1514
  }];
1429
1515
  readonly released: "2026-03-16";
1430
1516
  }, {
@@ -1625,6 +1711,14 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1625
1711
  };
1626
1712
  }];
1627
1713
  readonly released: "2026-06-04";
1714
+ }, {
1715
+ readonly providerID: "nvidia";
1716
+ readonly id: "nvidia/nemotron-3.5-content-safety";
1717
+ readonly prices: readonly [{
1718
+ readonly input: 0;
1719
+ readonly output: 0;
1720
+ }];
1721
+ readonly released: "2026-06-04";
1628
1722
  }, {
1629
1723
  readonly providerID: "nvidia";
1630
1724
  readonly id: "nvidia/nemotron-3.5-lightning-30b-a3b";
@@ -1703,6 +1797,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1703
1797
  };
1704
1798
  }];
1705
1799
  readonly released: "2025-04-14";
1800
+ }, {
1801
+ readonly providerID: "openai";
1802
+ readonly id: "gpt-4.1-fast";
1803
+ readonly providers: readonly ["openai"];
1804
+ readonly prices: readonly [{
1805
+ readonly input: 3.5;
1806
+ readonly output: 14;
1807
+ readonly cache: {
1808
+ readonly read: 0.875;
1809
+ };
1810
+ }];
1811
+ readonly released: "2025-04-14";
1706
1812
  }, {
1707
1813
  readonly providerID: "openai";
1708
1814
  readonly id: "gpt-4.1-mini";
@@ -1714,6 +1820,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1714
1820
  };
1715
1821
  }];
1716
1822
  readonly released: "2025-04-14";
1823
+ }, {
1824
+ readonly providerID: "openai";
1825
+ readonly id: "gpt-4.1-mini-fast";
1826
+ readonly providers: readonly ["openai"];
1827
+ readonly prices: readonly [{
1828
+ readonly input: 0.7;
1829
+ readonly output: 2.8;
1830
+ readonly cache: {
1831
+ readonly read: 0.175;
1832
+ };
1833
+ }];
1834
+ readonly released: "2025-04-14";
1717
1835
  }, {
1718
1836
  readonly providerID: "openai";
1719
1837
  readonly id: "gpt-4.1-nano";
@@ -1725,6 +1843,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1725
1843
  };
1726
1844
  }];
1727
1845
  readonly released: "2025-04-14";
1846
+ }, {
1847
+ readonly providerID: "openai";
1848
+ readonly id: "gpt-4.1-nano-fast";
1849
+ readonly providers: readonly ["openai"];
1850
+ readonly prices: readonly [{
1851
+ readonly input: 0.2;
1852
+ readonly output: 0.8;
1853
+ readonly cache: {
1854
+ readonly read: 0.05;
1855
+ };
1856
+ }];
1857
+ readonly released: "2025-04-14";
1728
1858
  }, {
1729
1859
  readonly providerID: "openai";
1730
1860
  readonly id: "gpt-4o";
@@ -1744,6 +1874,15 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1744
1874
  readonly output: 15;
1745
1875
  }];
1746
1876
  readonly released: "2024-05-13";
1877
+ }, {
1878
+ readonly providerID: "openai";
1879
+ readonly id: "gpt-4o-2024-05-13-fast";
1880
+ readonly providers: readonly ["openai"];
1881
+ readonly prices: readonly [{
1882
+ readonly input: 8.75;
1883
+ readonly output: 26.25;
1884
+ }];
1885
+ readonly released: "2024-05-13";
1747
1886
  }, {
1748
1887
  readonly providerID: "openai";
1749
1888
  readonly id: "gpt-4o-2024-08-06";
@@ -1766,6 +1905,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1766
1905
  };
1767
1906
  }];
1768
1907
  readonly released: "2024-11-20";
1908
+ }, {
1909
+ readonly providerID: "openai";
1910
+ readonly id: "gpt-4o-fast";
1911
+ readonly providers: readonly ["openai"];
1912
+ readonly prices: readonly [{
1913
+ readonly input: 4.25;
1914
+ readonly output: 17;
1915
+ readonly cache: {
1916
+ readonly read: 2.125;
1917
+ };
1918
+ }];
1919
+ readonly released: "2024-05-13";
1769
1920
  }, {
1770
1921
  readonly providerID: "openai";
1771
1922
  readonly id: "gpt-4o-mini";
@@ -1777,6 +1928,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1777
1928
  };
1778
1929
  }];
1779
1930
  readonly released: "2024-07-18";
1931
+ }, {
1932
+ readonly providerID: "openai";
1933
+ readonly id: "gpt-4o-mini-fast";
1934
+ readonly providers: readonly ["openai"];
1935
+ readonly prices: readonly [{
1936
+ readonly input: 0.25;
1937
+ readonly output: 1;
1938
+ readonly cache: {
1939
+ readonly read: 0.125;
1940
+ };
1941
+ }];
1942
+ readonly released: "2024-07-18";
1780
1943
  }, {
1781
1944
  readonly providerID: "openai";
1782
1945
  readonly id: "gpt-5";
@@ -1788,6 +1951,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1788
1951
  };
1789
1952
  }];
1790
1953
  readonly released: "2025-08-07";
1954
+ }, {
1955
+ readonly providerID: "openai";
1956
+ readonly id: "gpt-5-fast";
1957
+ readonly providers: readonly ["openai"];
1958
+ readonly prices: readonly [{
1959
+ readonly input: 2.5;
1960
+ readonly output: 20;
1961
+ readonly cache: {
1962
+ readonly read: 0.25;
1963
+ };
1964
+ }];
1965
+ readonly released: "2025-08-07";
1791
1966
  }, {
1792
1967
  readonly providerID: "openai";
1793
1968
  readonly id: "gpt-5-mini";
@@ -1799,6 +1974,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1799
1974
  };
1800
1975
  }];
1801
1976
  readonly released: "2025-08-07";
1977
+ }, {
1978
+ readonly providerID: "openai";
1979
+ readonly id: "gpt-5-mini-fast";
1980
+ readonly providers: readonly ["openai"];
1981
+ readonly prices: readonly [{
1982
+ readonly input: 0.45;
1983
+ readonly output: 3.6;
1984
+ readonly cache: {
1985
+ readonly read: 0.045;
1986
+ };
1987
+ }];
1988
+ readonly released: "2025-08-07";
1802
1989
  }, {
1803
1990
  readonly providerID: "openai";
1804
1991
  readonly id: "gpt-5-nano";
@@ -1829,6 +2016,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1829
2016
  };
1830
2017
  }];
1831
2018
  readonly released: "2025-11-13";
2019
+ }, {
2020
+ readonly providerID: "openai";
2021
+ readonly id: "gpt-5.1-fast";
2022
+ readonly providers: readonly ["openai"];
2023
+ readonly prices: readonly [{
2024
+ readonly input: 2.5;
2025
+ readonly output: 20;
2026
+ readonly cache: {
2027
+ readonly read: 0.25;
2028
+ };
2029
+ }];
2030
+ readonly released: "2025-11-13";
1832
2031
  }, {
1833
2032
  readonly providerID: "openai";
1834
2033
  readonly id: "gpt-5.2";
@@ -1851,6 +2050,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1851
2050
  };
1852
2051
  }];
1853
2052
  readonly released: "2025-12-11";
2053
+ }, {
2054
+ readonly providerID: "openai";
2055
+ readonly id: "gpt-5.2-fast";
2056
+ readonly providers: readonly ["openai"];
2057
+ readonly prices: readonly [{
2058
+ readonly input: 3.5;
2059
+ readonly output: 28;
2060
+ readonly cache: {
2061
+ readonly read: 0.35;
2062
+ };
2063
+ }];
2064
+ readonly released: "2025-12-11";
1854
2065
  }, {
1855
2066
  readonly providerID: "openai";
1856
2067
  readonly id: "gpt-5.2-pro";
@@ -1881,6 +2092,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1881
2092
  };
1882
2093
  }];
1883
2094
  readonly released: "2026-02-05";
2095
+ }, {
2096
+ readonly providerID: "openai";
2097
+ readonly id: "gpt-5.3-codex-fast";
2098
+ readonly providers: readonly ["openai"];
2099
+ readonly prices: readonly [{
2100
+ readonly input: 3.5;
2101
+ readonly output: 28;
2102
+ readonly cache: {
2103
+ readonly read: 0.35;
2104
+ };
2105
+ }];
2106
+ readonly released: "2026-02-05";
1884
2107
  }, {
1885
2108
  readonly providerID: "openai";
1886
2109
  readonly id: "gpt-5.3-codex-spark";
@@ -2319,6 +2542,82 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
2319
2542
  };
2320
2543
  }];
2321
2544
  readonly released: "2026-09-22";
2545
+ }, {
2546
+ readonly providerID: "openai";
2547
+ readonly id: "gpt-6.1-sol";
2548
+ readonly prices: readonly [{
2549
+ readonly input: 2;
2550
+ readonly output: 10;
2551
+ readonly cache: {
2552
+ readonly read: 0.1;
2553
+ readonly write: 2.5;
2554
+ };
2555
+ }, {
2556
+ readonly input: 4;
2557
+ readonly output: 15;
2558
+ readonly cache: {
2559
+ readonly read: 0.2;
2560
+ readonly write: 5;
2561
+ };
2562
+ readonly tier: {
2563
+ readonly type: "context";
2564
+ readonly size: 272000;
2565
+ };
2566
+ }];
2567
+ readonly released: "2026-09-29";
2568
+ }, {
2569
+ readonly providerID: "openai";
2570
+ readonly id: "gpt-6.1-sol-fast";
2571
+ readonly providers: readonly ["openai"];
2572
+ readonly prices: readonly [{
2573
+ readonly input: 4;
2574
+ readonly output: 20;
2575
+ readonly cache: {
2576
+ readonly read: 0.2;
2577
+ readonly write: 5;
2578
+ };
2579
+ }, {
2580
+ readonly tier: {
2581
+ readonly type: "context";
2582
+ readonly size: 272000;
2583
+ };
2584
+ }];
2585
+ readonly released: "2026-09-29";
2586
+ }, {
2587
+ readonly providerID: "openai";
2588
+ readonly id: "gpt-daybreak-blue-latest";
2589
+ readonly prices: readonly [{
2590
+ readonly input: 4;
2591
+ readonly output: 20;
2592
+ readonly cache: {
2593
+ readonly read: 0.4;
2594
+ readonly write: 5;
2595
+ };
2596
+ }, {
2597
+ readonly input: 8;
2598
+ readonly output: 30;
2599
+ readonly cache: {
2600
+ readonly read: 0.8;
2601
+ readonly write: 10;
2602
+ };
2603
+ readonly tier: {
2604
+ readonly type: "context";
2605
+ readonly size: 272000;
2606
+ };
2607
+ }];
2608
+ readonly released: "2026-08-07";
2609
+ }, {
2610
+ readonly providerID: "openai";
2611
+ readonly id: "gpt-daybreak-red-latest";
2612
+ readonly prices: readonly [{
2613
+ readonly input: 12.5;
2614
+ readonly output: 75;
2615
+ readonly cache: {
2616
+ readonly read: 1.25;
2617
+ readonly write: 15.625;
2618
+ };
2619
+ }];
2620
+ readonly released: "2026-08-07";
2322
2621
  }, {
2323
2622
  readonly providerID: "openai";
2324
2623
  readonly id: "o1";
@@ -2349,6 +2648,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
2349
2648
  };
2350
2649
  }];
2351
2650
  readonly released: "2025-04-16";
2651
+ }, {
2652
+ readonly providerID: "openai";
2653
+ readonly id: "o3-fast";
2654
+ readonly providers: readonly ["openai"];
2655
+ readonly prices: readonly [{
2656
+ readonly input: 3.5;
2657
+ readonly output: 14;
2658
+ readonly cache: {
2659
+ readonly read: 0.875;
2660
+ };
2661
+ }];
2662
+ readonly released: "2025-04-16";
2352
2663
  }, {
2353
2664
  readonly providerID: "openai";
2354
2665
  readonly id: "o3-mini";
@@ -2379,6 +2690,18 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
2379
2690
  };
2380
2691
  }];
2381
2692
  readonly released: "2025-04-16";
2693
+ }, {
2694
+ readonly providerID: "openai";
2695
+ readonly id: "o4-mini-fast";
2696
+ readonly providers: readonly ["openai"];
2697
+ readonly prices: readonly [{
2698
+ readonly input: 2;
2699
+ readonly output: 8;
2700
+ readonly cache: {
2701
+ readonly read: 0.5;
2702
+ };
2703
+ }];
2704
+ readonly released: "2025-04-16";
2382
2705
  }, {
2383
2706
  readonly providerID: "perplexity";
2384
2707
  readonly id: "sonar";