pricetoken 0.13.6 → 0.13.8

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/dist/index.js CHANGED
@@ -869,6 +869,40 @@ var STATIC_PRICING = [
869
869
  lastUpdated: null,
870
870
  launchDate: "2026-03-05"
871
871
  },
872
+ {
873
+ modelId: "gpt-5.4-mini",
874
+ provider: "openai",
875
+ displayName: "GPT-5.4 Mini",
876
+ inputPerMTok: 0.75,
877
+ outputPerMTok: 4.5,
878
+ contextWindow: 4e5,
879
+ maxOutputTokens: 128e3,
880
+ source: "seed",
881
+ status: "active",
882
+ confidence: "high",
883
+ confidenceScore: 99,
884
+ confidenceLevel: "high",
885
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
886
+ lastUpdated: null,
887
+ launchDate: "2026-03-17"
888
+ },
889
+ {
890
+ modelId: "gpt-5.4-nano",
891
+ provider: "openai",
892
+ displayName: "GPT-5.4 Nano",
893
+ inputPerMTok: 0.2,
894
+ outputPerMTok: 1.25,
895
+ contextWindow: 4e5,
896
+ maxOutputTokens: 128e3,
897
+ source: "seed",
898
+ status: "active",
899
+ confidence: "high",
900
+ confidenceScore: 99,
901
+ confidenceLevel: "high",
902
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
903
+ lastUpdated: null,
904
+ launchDate: "2026-03-17"
905
+ },
872
906
  {
873
907
  modelId: "gpt-5.4-pro",
874
908
  provider: "openai",
@@ -954,6 +988,40 @@ var STATIC_PRICING = [
954
988
  lastUpdated: null,
955
989
  launchDate: "2025-11-19"
956
990
  },
991
+ {
992
+ modelId: "grok-4.20",
993
+ provider: "xai",
994
+ displayName: "Grok 4.20",
995
+ inputPerMTok: 2,
996
+ outputPerMTok: 6,
997
+ contextWindow: 2e6,
998
+ maxOutputTokens: null,
999
+ source: "seed",
1000
+ status: "active",
1001
+ confidence: "high",
1002
+ confidenceScore: 99,
1003
+ confidenceLevel: "high",
1004
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
1005
+ lastUpdated: null,
1006
+ launchDate: "2026-03-09"
1007
+ },
1008
+ {
1009
+ modelId: "grok-code-fast-1",
1010
+ provider: "xai",
1011
+ displayName: "Grok Code Fast 1",
1012
+ inputPerMTok: 0.2,
1013
+ outputPerMTok: 1.5,
1014
+ contextWindow: 256e3,
1015
+ maxOutputTokens: null,
1016
+ source: "seed",
1017
+ status: "active",
1018
+ confidence: "high",
1019
+ confidenceScore: 99,
1020
+ confidenceLevel: "high",
1021
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
1022
+ lastUpdated: null,
1023
+ launchDate: "2026-01-01"
1024
+ },
957
1025
  {
958
1026
  modelId: "jamba-1.5-mini",
959
1027
  provider: "ai21",
@@ -1705,6 +1773,63 @@ var STATIC_IMAGE_PRICING = [
1705
1773
  lastUpdated: null,
1706
1774
  launchDate: "2025-04-23"
1707
1775
  },
1776
+ {
1777
+ modelId: "gpt-image-1.5-high",
1778
+ provider: "openai",
1779
+ displayName: "GPT Image 1.5 High",
1780
+ pricePerImage: 0.133,
1781
+ pricePerMegapixel: null,
1782
+ defaultResolution: "1024x1024",
1783
+ qualityTier: "ultra",
1784
+ maxResolution: "1024x1536",
1785
+ supportedFormats: ["png"],
1786
+ source: "seed",
1787
+ status: "active",
1788
+ confidence: "high",
1789
+ confidenceScore: 99,
1790
+ confidenceLevel: "high",
1791
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
1792
+ lastUpdated: null,
1793
+ launchDate: "2026-03-17"
1794
+ },
1795
+ {
1796
+ modelId: "gpt-image-1.5-low",
1797
+ provider: "openai",
1798
+ displayName: "GPT Image 1.5 Low",
1799
+ pricePerImage: 9e-3,
1800
+ pricePerMegapixel: null,
1801
+ defaultResolution: "1024x1024",
1802
+ qualityTier: "standard",
1803
+ maxResolution: "1024x1536",
1804
+ supportedFormats: ["png"],
1805
+ source: "seed",
1806
+ status: "active",
1807
+ confidence: "high",
1808
+ confidenceScore: 99,
1809
+ confidenceLevel: "high",
1810
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
1811
+ lastUpdated: null,
1812
+ launchDate: "2026-03-17"
1813
+ },
1814
+ {
1815
+ modelId: "gpt-image-1.5-medium",
1816
+ provider: "openai",
1817
+ displayName: "GPT Image 1.5 Medium",
1818
+ pricePerImage: 0.034,
1819
+ pricePerMegapixel: null,
1820
+ defaultResolution: "1024x1024",
1821
+ qualityTier: "hd",
1822
+ maxResolution: "1024x1536",
1823
+ supportedFormats: ["png"],
1824
+ source: "seed",
1825
+ status: "active",
1826
+ confidence: "high",
1827
+ confidenceScore: 99,
1828
+ confidenceLevel: "high",
1829
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
1830
+ lastUpdated: null,
1831
+ launchDate: "2026-03-17"
1832
+ },
1708
1833
  {
1709
1834
  modelId: "grok-imagine-image",
1710
1835
  provider: "xai",
@@ -2178,7 +2303,7 @@ var STATIC_VIDEO_PRICING = [
2178
2303
  modelId: "fal-sora2-pro-1080p",
2179
2304
  provider: "fal",
2180
2305
  displayName: "FAL Sora 2 Pro 1080p",
2181
- costPerMinute: 30,
2306
+ costPerMinute: 42,
2182
2307
  inputType: "text,image",
2183
2308
  resolution: "1080p",
2184
2309
  maxDuration: 25,
@@ -2264,6 +2389,24 @@ var STATIC_VIDEO_PRICING = [
2264
2389
  lastUpdated: null,
2265
2390
  launchDate: "2025-06-01"
2266
2391
  },
2392
+ {
2393
+ modelId: "grok-imagine-video",
2394
+ provider: "xai",
2395
+ displayName: "Grok Imagine Video",
2396
+ costPerMinute: 3,
2397
+ inputType: "text,image",
2398
+ resolution: null,
2399
+ maxDuration: null,
2400
+ qualityMode: "standard",
2401
+ source: "seed",
2402
+ status: "active",
2403
+ confidence: "high",
2404
+ confidenceScore: 99,
2405
+ confidenceLevel: "high",
2406
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
2407
+ lastUpdated: null,
2408
+ launchDate: "2025-06-01"
2409
+ },
2267
2410
  {
2268
2411
  modelId: "kling-3.0-1080p",
2269
2412
  provider: "kling",
@@ -2786,11 +2929,29 @@ var STATIC_VIDEO_PRICING = [
2786
2929
  lastUpdated: null,
2787
2930
  launchDate: "2025-02-01"
2788
2931
  },
2932
+ {
2933
+ modelId: "sora2-pro-1024p",
2934
+ provider: "sora",
2935
+ displayName: "Sora 2 Pro 1024p",
2936
+ costPerMinute: 30,
2937
+ inputType: "text,image",
2938
+ resolution: "1024p",
2939
+ maxDuration: 20,
2940
+ qualityMode: "professional",
2941
+ source: "seed",
2942
+ status: "active",
2943
+ confidence: "high",
2944
+ confidenceScore: 99,
2945
+ confidenceLevel: "high",
2946
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
2947
+ lastUpdated: null,
2948
+ launchDate: "2025-02-01"
2949
+ },
2789
2950
  {
2790
2951
  modelId: "sora2-pro-1080p",
2791
2952
  provider: "sora",
2792
2953
  displayName: "Sora 2 Pro 1080p",
2793
- costPerMinute: 30,
2954
+ costPerMinute: 42,
2794
2955
  inputType: "text,image",
2795
2956
  resolution: "1080p",
2796
2957
  maxDuration: 20,
@@ -3858,6 +4019,57 @@ var STATIC_TTS_PRICING = [
3858
4019
  lastUpdated: null,
3859
4020
  launchDate: "2025-03-01"
3860
4021
  },
4022
+ {
4023
+ modelId: "fal-tada-1b",
4024
+ provider: "fal",
4025
+ displayName: "FAL TADA 1B TTS",
4026
+ costPerMChars: 50,
4027
+ voiceType: "neural",
4028
+ maxCharacters: null,
4029
+ supportedLanguages: null,
4030
+ source: "seed",
4031
+ status: "active",
4032
+ confidence: "high",
4033
+ confidenceScore: 99,
4034
+ confidenceLevel: "high",
4035
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
4036
+ lastUpdated: null,
4037
+ launchDate: "2026-03-14"
4038
+ },
4039
+ {
4040
+ modelId: "fal-tada-3b",
4041
+ provider: "fal",
4042
+ displayName: "FAL TADA 3B TTS",
4043
+ costPerMChars: 80,
4044
+ voiceType: "neural",
4045
+ maxCharacters: null,
4046
+ supportedLanguages: null,
4047
+ source: "seed",
4048
+ status: "active",
4049
+ confidence: "high",
4050
+ confidenceScore: 99,
4051
+ confidenceLevel: "high",
4052
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
4053
+ lastUpdated: null,
4054
+ launchDate: "2026-03-14"
4055
+ },
4056
+ {
4057
+ modelId: "fal-xai-tts",
4058
+ provider: "fal",
4059
+ displayName: "FAL xAI TTS",
4060
+ costPerMChars: 4.2,
4061
+ voiceType: "neural",
4062
+ maxCharacters: null,
4063
+ supportedLanguages: null,
4064
+ source: "seed",
4065
+ status: "active",
4066
+ confidence: "high",
4067
+ confidenceScore: 99,
4068
+ confidenceLevel: "high",
4069
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
4070
+ lastUpdated: null,
4071
+ launchDate: "2026-03-01"
4072
+ },
3861
4073
  {
3862
4074
  modelId: "google-cloud-chirp3-hd",
3863
4075
  provider: "google-cloud",
package/dist/index.mjs CHANGED
@@ -822,6 +822,40 @@ var STATIC_PRICING = [
822
822
  lastUpdated: null,
823
823
  launchDate: "2026-03-05"
824
824
  },
825
+ {
826
+ modelId: "gpt-5.4-mini",
827
+ provider: "openai",
828
+ displayName: "GPT-5.4 Mini",
829
+ inputPerMTok: 0.75,
830
+ outputPerMTok: 4.5,
831
+ contextWindow: 4e5,
832
+ maxOutputTokens: 128e3,
833
+ source: "seed",
834
+ status: "active",
835
+ confidence: "high",
836
+ confidenceScore: 99,
837
+ confidenceLevel: "high",
838
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
839
+ lastUpdated: null,
840
+ launchDate: "2026-03-17"
841
+ },
842
+ {
843
+ modelId: "gpt-5.4-nano",
844
+ provider: "openai",
845
+ displayName: "GPT-5.4 Nano",
846
+ inputPerMTok: 0.2,
847
+ outputPerMTok: 1.25,
848
+ contextWindow: 4e5,
849
+ maxOutputTokens: 128e3,
850
+ source: "seed",
851
+ status: "active",
852
+ confidence: "high",
853
+ confidenceScore: 99,
854
+ confidenceLevel: "high",
855
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
856
+ lastUpdated: null,
857
+ launchDate: "2026-03-17"
858
+ },
825
859
  {
826
860
  modelId: "gpt-5.4-pro",
827
861
  provider: "openai",
@@ -907,6 +941,40 @@ var STATIC_PRICING = [
907
941
  lastUpdated: null,
908
942
  launchDate: "2025-11-19"
909
943
  },
944
+ {
945
+ modelId: "grok-4.20",
946
+ provider: "xai",
947
+ displayName: "Grok 4.20",
948
+ inputPerMTok: 2,
949
+ outputPerMTok: 6,
950
+ contextWindow: 2e6,
951
+ maxOutputTokens: null,
952
+ source: "seed",
953
+ status: "active",
954
+ confidence: "high",
955
+ confidenceScore: 99,
956
+ confidenceLevel: "high",
957
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
958
+ lastUpdated: null,
959
+ launchDate: "2026-03-09"
960
+ },
961
+ {
962
+ modelId: "grok-code-fast-1",
963
+ provider: "xai",
964
+ displayName: "Grok Code Fast 1",
965
+ inputPerMTok: 0.2,
966
+ outputPerMTok: 1.5,
967
+ contextWindow: 256e3,
968
+ maxOutputTokens: null,
969
+ source: "seed",
970
+ status: "active",
971
+ confidence: "high",
972
+ confidenceScore: 99,
973
+ confidenceLevel: "high",
974
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
975
+ lastUpdated: null,
976
+ launchDate: "2026-01-01"
977
+ },
910
978
  {
911
979
  modelId: "jamba-1.5-mini",
912
980
  provider: "ai21",
@@ -1658,6 +1726,63 @@ var STATIC_IMAGE_PRICING = [
1658
1726
  lastUpdated: null,
1659
1727
  launchDate: "2025-04-23"
1660
1728
  },
1729
+ {
1730
+ modelId: "gpt-image-1.5-high",
1731
+ provider: "openai",
1732
+ displayName: "GPT Image 1.5 High",
1733
+ pricePerImage: 0.133,
1734
+ pricePerMegapixel: null,
1735
+ defaultResolution: "1024x1024",
1736
+ qualityTier: "ultra",
1737
+ maxResolution: "1024x1536",
1738
+ supportedFormats: ["png"],
1739
+ source: "seed",
1740
+ status: "active",
1741
+ confidence: "high",
1742
+ confidenceScore: 99,
1743
+ confidenceLevel: "high",
1744
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
1745
+ lastUpdated: null,
1746
+ launchDate: "2026-03-17"
1747
+ },
1748
+ {
1749
+ modelId: "gpt-image-1.5-low",
1750
+ provider: "openai",
1751
+ displayName: "GPT Image 1.5 Low",
1752
+ pricePerImage: 9e-3,
1753
+ pricePerMegapixel: null,
1754
+ defaultResolution: "1024x1024",
1755
+ qualityTier: "standard",
1756
+ maxResolution: "1024x1536",
1757
+ supportedFormats: ["png"],
1758
+ source: "seed",
1759
+ status: "active",
1760
+ confidence: "high",
1761
+ confidenceScore: 99,
1762
+ confidenceLevel: "high",
1763
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
1764
+ lastUpdated: null,
1765
+ launchDate: "2026-03-17"
1766
+ },
1767
+ {
1768
+ modelId: "gpt-image-1.5-medium",
1769
+ provider: "openai",
1770
+ displayName: "GPT Image 1.5 Medium",
1771
+ pricePerImage: 0.034,
1772
+ pricePerMegapixel: null,
1773
+ defaultResolution: "1024x1024",
1774
+ qualityTier: "hd",
1775
+ maxResolution: "1024x1536",
1776
+ supportedFormats: ["png"],
1777
+ source: "seed",
1778
+ status: "active",
1779
+ confidence: "high",
1780
+ confidenceScore: 99,
1781
+ confidenceLevel: "high",
1782
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
1783
+ lastUpdated: null,
1784
+ launchDate: "2026-03-17"
1785
+ },
1661
1786
  {
1662
1787
  modelId: "grok-imagine-image",
1663
1788
  provider: "xai",
@@ -2131,7 +2256,7 @@ var STATIC_VIDEO_PRICING = [
2131
2256
  modelId: "fal-sora2-pro-1080p",
2132
2257
  provider: "fal",
2133
2258
  displayName: "FAL Sora 2 Pro 1080p",
2134
- costPerMinute: 30,
2259
+ costPerMinute: 42,
2135
2260
  inputType: "text,image",
2136
2261
  resolution: "1080p",
2137
2262
  maxDuration: 25,
@@ -2217,6 +2342,24 @@ var STATIC_VIDEO_PRICING = [
2217
2342
  lastUpdated: null,
2218
2343
  launchDate: "2025-06-01"
2219
2344
  },
2345
+ {
2346
+ modelId: "grok-imagine-video",
2347
+ provider: "xai",
2348
+ displayName: "Grok Imagine Video",
2349
+ costPerMinute: 3,
2350
+ inputType: "text,image",
2351
+ resolution: null,
2352
+ maxDuration: null,
2353
+ qualityMode: "standard",
2354
+ source: "seed",
2355
+ status: "active",
2356
+ confidence: "high",
2357
+ confidenceScore: 99,
2358
+ confidenceLevel: "high",
2359
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
2360
+ lastUpdated: null,
2361
+ launchDate: "2025-06-01"
2362
+ },
2220
2363
  {
2221
2364
  modelId: "kling-3.0-1080p",
2222
2365
  provider: "kling",
@@ -2739,11 +2882,29 @@ var STATIC_VIDEO_PRICING = [
2739
2882
  lastUpdated: null,
2740
2883
  launchDate: "2025-02-01"
2741
2884
  },
2885
+ {
2886
+ modelId: "sora2-pro-1024p",
2887
+ provider: "sora",
2888
+ displayName: "Sora 2 Pro 1024p",
2889
+ costPerMinute: 30,
2890
+ inputType: "text,image",
2891
+ resolution: "1024p",
2892
+ maxDuration: 20,
2893
+ qualityMode: "professional",
2894
+ source: "seed",
2895
+ status: "active",
2896
+ confidence: "high",
2897
+ confidenceScore: 99,
2898
+ confidenceLevel: "high",
2899
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
2900
+ lastUpdated: null,
2901
+ launchDate: "2025-02-01"
2902
+ },
2742
2903
  {
2743
2904
  modelId: "sora2-pro-1080p",
2744
2905
  provider: "sora",
2745
2906
  displayName: "Sora 2 Pro 1080p",
2746
- costPerMinute: 30,
2907
+ costPerMinute: 42,
2747
2908
  inputType: "text,image",
2748
2909
  resolution: "1080p",
2749
2910
  maxDuration: 20,
@@ -3811,6 +3972,57 @@ var STATIC_TTS_PRICING = [
3811
3972
  lastUpdated: null,
3812
3973
  launchDate: "2025-03-01"
3813
3974
  },
3975
+ {
3976
+ modelId: "fal-tada-1b",
3977
+ provider: "fal",
3978
+ displayName: "FAL TADA 1B TTS",
3979
+ costPerMChars: 50,
3980
+ voiceType: "neural",
3981
+ maxCharacters: null,
3982
+ supportedLanguages: null,
3983
+ source: "seed",
3984
+ status: "active",
3985
+ confidence: "high",
3986
+ confidenceScore: 99,
3987
+ confidenceLevel: "high",
3988
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
3989
+ lastUpdated: null,
3990
+ launchDate: "2026-03-14"
3991
+ },
3992
+ {
3993
+ modelId: "fal-tada-3b",
3994
+ provider: "fal",
3995
+ displayName: "FAL TADA 3B TTS",
3996
+ costPerMChars: 80,
3997
+ voiceType: "neural",
3998
+ maxCharacters: null,
3999
+ supportedLanguages: null,
4000
+ source: "seed",
4001
+ status: "active",
4002
+ confidence: "high",
4003
+ confidenceScore: 99,
4004
+ confidenceLevel: "high",
4005
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
4006
+ lastUpdated: null,
4007
+ launchDate: "2026-03-14"
4008
+ },
4009
+ {
4010
+ modelId: "fal-xai-tts",
4011
+ provider: "fal",
4012
+ displayName: "FAL xAI TTS",
4013
+ costPerMChars: 4.2,
4014
+ voiceType: "neural",
4015
+ maxCharacters: null,
4016
+ supportedLanguages: null,
4017
+ source: "seed",
4018
+ status: "active",
4019
+ confidence: "high",
4020
+ confidenceScore: 99,
4021
+ confidenceLevel: "high",
4022
+ freshness: { lastVerified: "", ageHours: 0, stale: false },
4023
+ lastUpdated: null,
4024
+ launchDate: "2026-03-01"
4025
+ },
3814
4026
  {
3815
4027
  modelId: "google-cloud-chirp3-hd",
3816
4028
  provider: "google-cloud",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pricetoken",
3
- "version": "0.13.6",
3
+ "version": "0.13.8",
4
4
  "description": "Real-time LLM pricing data — typed client, cost calculator, and static pricing",
5
5
  "keywords": [
6
6
  "llm",