@agentproto/model-catalog 0.10.3 → 0.11.1
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/access/index.d.ts +3 -3
- package/dist/access/index.mjs +4 -4
- package/dist/{catalog-BAb74hY-.d.ts → catalog-C7U9nauo.d.ts} +580 -31
- package/dist/{chunk-5VXG5VZA.mjs → chunk-CP7JCOA5.mjs} +5 -5
- package/dist/{chunk-5VXG5VZA.mjs.map → chunk-CP7JCOA5.mjs.map} +1 -1
- package/dist/{chunk-PL4ALP73.mjs → chunk-D3I73UJI.mjs} +68 -87
- package/dist/chunk-D3I73UJI.mjs.map +1 -0
- package/dist/{chunk-Z6DB2FB7.mjs → chunk-FKBNW5BP.mjs} +3 -3
- package/dist/{chunk-Z6DB2FB7.mjs.map → chunk-FKBNW5BP.mjs.map} +1 -1
- package/dist/{chunk-7DKQFHCJ.mjs → chunk-GVYUTTTK.mjs} +4 -4
- package/dist/{chunk-7DKQFHCJ.mjs.map → chunk-GVYUTTTK.mjs.map} +1 -1
- package/dist/{chunk-ZQ6VOPGQ.mjs → chunk-SORQIIXD.mjs} +3 -3
- package/dist/{chunk-ZQ6VOPGQ.mjs.map → chunk-SORQIIXD.mjs.map} +1 -1
- package/dist/{chunk-DHMYBXQB.mjs → chunk-VABWB67A.mjs} +3 -3
- package/dist/{chunk-DHMYBXQB.mjs.map → chunk-VABWB67A.mjs.map} +1 -1
- package/dist/{chunk-S2EJIT6D.mjs → chunk-VZCVDFNS.mjs} +216 -128
- package/dist/chunk-VZCVDFNS.mjs.map +1 -0
- package/dist/{chunk-KJYNTETN.mjs → chunk-X4GZCBVI.mjs} +4 -4
- package/dist/{chunk-KJYNTETN.mjs.map → chunk-X4GZCBVI.mjs.map} +1 -1
- package/dist/cost/index.mjs +6 -6
- package/dist/curation/index.d.ts +2 -2
- package/dist/curation/index.mjs +6 -6
- package/dist/{evaluate-B83jX17h.d.ts → evaluate-Dm45YM9p.d.ts} +1 -1
- package/dist/{index-BWvtVzEG.d.ts → index-D9Ir5Xyq.d.ts} +2 -2
- package/dist/{index-vC37SFpk.d.ts → index-qTi3go0T.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +10 -10
- package/dist/llm/index.d.ts +1 -1
- package/dist/llm/index.mjs +2 -2
- package/dist/overlay/index.d.ts +1 -1
- package/dist/picker/index.d.ts +4 -4
- package/dist/route-identity/index.d.ts +1 -1
- package/dist/route-identity/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-PL4ALP73.mjs.map +0 -1
- package/dist/chunk-S2EJIT6D.mjs.map +0 -1
|
@@ -98,15 +98,6 @@ var OPENROUTER_ROUTES = {
|
|
|
98
98
|
vendor: "anthracite-org",
|
|
99
99
|
provider: "openrouter"
|
|
100
100
|
},
|
|
101
|
-
"anthropic/claude-3-haiku": {
|
|
102
|
-
inputPer1M: 0.25,
|
|
103
|
-
outputPer1M: 1.25,
|
|
104
|
-
cacheReadMultiplier: 0.12,
|
|
105
|
-
cacheWriteMultiplier: 1.2,
|
|
106
|
-
addedAt: "2024-03-13",
|
|
107
|
-
vendor: "anthropic",
|
|
108
|
-
provider: "openrouter"
|
|
109
|
-
},
|
|
110
101
|
"anthropic/claude-fable-5": {
|
|
111
102
|
inputPer1M: 10,
|
|
112
103
|
outputPer1M: 50,
|
|
@@ -459,8 +450,8 @@ var OPENROUTER_ROUTES = {
|
|
|
459
450
|
provider: "openrouter"
|
|
460
451
|
},
|
|
461
452
|
"deepseek/deepseek-chat": {
|
|
462
|
-
inputPer1M: 0.
|
|
463
|
-
outputPer1M:
|
|
453
|
+
inputPer1M: 0.2574,
|
|
454
|
+
outputPer1M: 1.0287,
|
|
464
455
|
addedAt: "2024-12-26",
|
|
465
456
|
vendor: "deepseek",
|
|
466
457
|
provider: "openrouter"
|
|
@@ -526,49 +517,49 @@ var OPENROUTER_ROUTES = {
|
|
|
526
517
|
provider: "openrouter"
|
|
527
518
|
},
|
|
528
519
|
"deepseek/deepseek-v4-flash": {
|
|
529
|
-
inputPer1M: 0.
|
|
530
|
-
outputPer1M: 0.
|
|
520
|
+
inputPer1M: 0.0469,
|
|
521
|
+
outputPer1M: 0.0938,
|
|
531
522
|
cacheReadMultiplier: 0.2,
|
|
532
523
|
addedAt: "2026-04-24",
|
|
533
524
|
vendor: "deepseek",
|
|
534
525
|
provider: "openrouter"
|
|
535
526
|
},
|
|
536
527
|
"deepseek/deepseek-v4-flash-0731": {
|
|
537
|
-
inputPer1M: 0.
|
|
528
|
+
inputPer1M: 0.021,
|
|
538
529
|
outputPer1M: 0.32,
|
|
539
|
-
cacheReadMultiplier: 0.
|
|
530
|
+
cacheReadMultiplier: 0.761905,
|
|
540
531
|
addedAt: "2026-07-31",
|
|
541
532
|
vendor: "deepseek",
|
|
542
533
|
provider: "openrouter"
|
|
543
534
|
},
|
|
544
535
|
"deepseek/deepseek-v4-flash-vision-exp": {
|
|
545
|
-
inputPer1M: 0.
|
|
546
|
-
outputPer1M: 0.
|
|
536
|
+
inputPer1M: 0.2156,
|
|
537
|
+
outputPer1M: 0.6468,
|
|
547
538
|
cacheReadMultiplier: 0.031818,
|
|
548
539
|
addedAt: "2026-08-21",
|
|
549
540
|
vendor: "deepseek",
|
|
550
541
|
provider: "openrouter"
|
|
551
542
|
},
|
|
552
543
|
"deepseek/deepseek-v4-pro": {
|
|
553
|
-
inputPer1M: 0.
|
|
554
|
-
outputPer1M:
|
|
544
|
+
inputPer1M: 0.348,
|
|
545
|
+
outputPer1M: 0.696,
|
|
555
546
|
cacheReadMultiplier: 0.083333,
|
|
556
547
|
addedAt: "2026-04-24",
|
|
557
548
|
vendor: "deepseek",
|
|
558
549
|
provider: "openrouter"
|
|
559
550
|
},
|
|
560
551
|
"deepseek/deepseek-v4-pro-0813": {
|
|
561
|
-
inputPer1M: 0.
|
|
562
|
-
outputPer1M:
|
|
563
|
-
cacheReadMultiplier: 0.
|
|
552
|
+
inputPer1M: 0.29304,
|
|
553
|
+
outputPer1M: 3.5,
|
|
554
|
+
cacheReadMultiplier: 0.586951,
|
|
564
555
|
addedAt: "2026-08-12",
|
|
565
556
|
vendor: "deepseek",
|
|
566
557
|
provider: "openrouter"
|
|
567
558
|
},
|
|
568
559
|
"deepseek/deepseek-v4.1-flash": {
|
|
569
|
-
inputPer1M: 0.
|
|
570
|
-
outputPer1M:
|
|
571
|
-
cacheReadMultiplier: 0.
|
|
560
|
+
inputPer1M: 0.035,
|
|
561
|
+
outputPer1M: 0.29,
|
|
562
|
+
cacheReadMultiplier: 0.028571,
|
|
572
563
|
addedAt: "2026-09-10",
|
|
573
564
|
vendor: "deepseek",
|
|
574
565
|
provider: "openrouter"
|
|
@@ -882,8 +873,8 @@ var OPENROUTER_ROUTES = {
|
|
|
882
873
|
provider: "openrouter"
|
|
883
874
|
},
|
|
884
875
|
"google/gemma-4-26b-a4b-it": {
|
|
885
|
-
inputPer1M: 0.
|
|
886
|
-
outputPer1M: 0.
|
|
876
|
+
inputPer1M: 0.0675,
|
|
877
|
+
outputPer1M: 0.225,
|
|
887
878
|
cacheReadMultiplier: 0.555556,
|
|
888
879
|
addedAt: "2026-04-03",
|
|
889
880
|
vendor: "google",
|
|
@@ -952,8 +943,8 @@ var OPENROUTER_ROUTES = {
|
|
|
952
943
|
provider: "openrouter"
|
|
953
944
|
},
|
|
954
945
|
"inclusionai/ling-3.0-flash-vl": {
|
|
955
|
-
inputPer1M: 0.
|
|
956
|
-
outputPer1M: 0.
|
|
946
|
+
inputPer1M: 0.021,
|
|
947
|
+
outputPer1M: 0.0616,
|
|
957
948
|
cacheReadMultiplier: 0.2,
|
|
958
949
|
addedAt: "2026-09-10",
|
|
959
950
|
vendor: "inclusionai",
|
|
@@ -1163,8 +1154,8 @@ var OPENROUTER_ROUTES = {
|
|
|
1163
1154
|
provider: "openrouter"
|
|
1164
1155
|
},
|
|
1165
1156
|
"minimax/minimax-m2.7": {
|
|
1166
|
-
inputPer1M: 0.
|
|
1167
|
-
outputPer1M:
|
|
1157
|
+
inputPer1M: 0.21,
|
|
1158
|
+
outputPer1M: 0.84,
|
|
1168
1159
|
cacheReadMultiplier: 0.2,
|
|
1169
1160
|
addedAt: "2026-03-18",
|
|
1170
1161
|
vendor: "minimax",
|
|
@@ -1419,9 +1410,9 @@ var OPENROUTER_ROUTES = {
|
|
|
1419
1410
|
provider: "openrouter"
|
|
1420
1411
|
},
|
|
1421
1412
|
"moonshotai/kimi-k3": {
|
|
1422
|
-
inputPer1M:
|
|
1423
|
-
outputPer1M:
|
|
1424
|
-
cacheReadMultiplier: 0.
|
|
1413
|
+
inputPer1M: 3,
|
|
1414
|
+
outputPer1M: 15,
|
|
1415
|
+
cacheReadMultiplier: 0.1,
|
|
1425
1416
|
addedAt: "2026-07-16",
|
|
1426
1417
|
vendor: "moonshotai",
|
|
1427
1418
|
provider: "openrouter"
|
|
@@ -2345,6 +2336,13 @@ var OPENROUTER_ROUTES = {
|
|
|
2345
2336
|
vendor: "perceptron",
|
|
2346
2337
|
provider: "openrouter"
|
|
2347
2338
|
},
|
|
2339
|
+
"perceptron/perceptron-mk1.5": {
|
|
2340
|
+
inputPer1M: 0.15,
|
|
2341
|
+
outputPer1M: 1.5,
|
|
2342
|
+
addedAt: "2026-09-25",
|
|
2343
|
+
vendor: "perceptron",
|
|
2344
|
+
provider: "openrouter"
|
|
2345
|
+
},
|
|
2348
2346
|
"perplexity/sonar": {
|
|
2349
2347
|
inputPer1M: 1,
|
|
2350
2348
|
outputPer1M: 1,
|
|
@@ -2695,8 +2693,7 @@ var OPENROUTER_ROUTES = {
|
|
|
2695
2693
|
},
|
|
2696
2694
|
"qwen/qwen3.6-27b": {
|
|
2697
2695
|
inputPer1M: 0.32,
|
|
2698
|
-
outputPer1M: 2
|
|
2699
|
-
cacheReadMultiplier: 0.46875,
|
|
2696
|
+
outputPer1M: 3.2,
|
|
2700
2697
|
addedAt: "2026-04-27",
|
|
2701
2698
|
vendor: "qwen",
|
|
2702
2699
|
provider: "openrouter"
|
|
@@ -2935,8 +2932,8 @@ var OPENROUTER_ROUTES = {
|
|
|
2935
2932
|
provider: "openrouter"
|
|
2936
2933
|
},
|
|
2937
2934
|
"tencent/hy3": {
|
|
2938
|
-
inputPer1M: 0.
|
|
2939
|
-
outputPer1M: 0.
|
|
2935
|
+
inputPer1M: 0.0825,
|
|
2936
|
+
outputPer1M: 0.33,
|
|
2940
2937
|
cacheReadMultiplier: 0.25,
|
|
2941
2938
|
addedAt: "2026-07-06",
|
|
2942
2939
|
vendor: "tencent",
|
|
@@ -2997,6 +2994,13 @@ var OPENROUTER_ROUTES = {
|
|
|
2997
2994
|
vendor: "thinkingmachines",
|
|
2998
2995
|
provider: "openrouter"
|
|
2999
2996
|
},
|
|
2997
|
+
"typesafe/jev-router": {
|
|
2998
|
+
inputPer1M: -1e6,
|
|
2999
|
+
outputPer1M: -1e6,
|
|
3000
|
+
addedAt: "2026-09-25",
|
|
3001
|
+
vendor: "typesafe",
|
|
3002
|
+
provider: "openrouter"
|
|
3003
|
+
},
|
|
3000
3004
|
"unbiased/pareto": {
|
|
3001
3005
|
inputPer1M: 2.5,
|
|
3002
3006
|
outputPer1M: 7.5,
|
|
@@ -3244,8 +3248,8 @@ var OPENROUTER_ROUTES = {
|
|
|
3244
3248
|
},
|
|
3245
3249
|
"z-ai/glm-5.3-flash": {
|
|
3246
3250
|
inputPer1M: 0.045,
|
|
3247
|
-
outputPer1M: 0.
|
|
3248
|
-
cacheReadMultiplier: 0.
|
|
3251
|
+
outputPer1M: 0.14,
|
|
3252
|
+
cacheReadMultiplier: 0.222222,
|
|
3249
3253
|
addedAt: "2026-08-26",
|
|
3250
3254
|
vendor: "z-ai",
|
|
3251
3255
|
provider: "openrouter"
|
|
@@ -3327,25 +3331,25 @@ var OPENROUTER_ROUTES = {
|
|
|
3327
3331
|
provider: "openrouter"
|
|
3328
3332
|
},
|
|
3329
3333
|
"~deepseek/deepseek-flash-latest": {
|
|
3330
|
-
inputPer1M: 0.
|
|
3331
|
-
outputPer1M:
|
|
3332
|
-
cacheReadMultiplier: 0.
|
|
3334
|
+
inputPer1M: 0.035,
|
|
3335
|
+
outputPer1M: 0.29,
|
|
3336
|
+
cacheReadMultiplier: 0.028571,
|
|
3333
3337
|
addedAt: "2026-09-14",
|
|
3334
3338
|
vendor: "~deepseek",
|
|
3335
3339
|
provider: "openrouter"
|
|
3336
3340
|
},
|
|
3337
3341
|
"~deepseek/deepseek-pro-latest": {
|
|
3338
|
-
inputPer1M: 0.
|
|
3339
|
-
outputPer1M:
|
|
3342
|
+
inputPer1M: 0.2442,
|
|
3343
|
+
outputPer1M: 0.7326,
|
|
3340
3344
|
cacheReadMultiplier: 0.031818,
|
|
3341
3345
|
addedAt: "2026-09-14",
|
|
3342
3346
|
vendor: "~deepseek",
|
|
3343
3347
|
provider: "openrouter"
|
|
3344
3348
|
},
|
|
3345
3349
|
"~deepseek/deepseek-v4-flash-latest": {
|
|
3346
|
-
inputPer1M: 0.
|
|
3350
|
+
inputPer1M: 0.021,
|
|
3347
3351
|
outputPer1M: 0.32,
|
|
3348
|
-
cacheReadMultiplier: 0.
|
|
3352
|
+
cacheReadMultiplier: 0.761905,
|
|
3349
3353
|
addedAt: "2026-08-01",
|
|
3350
3354
|
vendor: "~deepseek",
|
|
3351
3355
|
provider: "openrouter"
|
|
@@ -3369,9 +3373,9 @@ var OPENROUTER_ROUTES = {
|
|
|
3369
3373
|
provider: "openrouter"
|
|
3370
3374
|
},
|
|
3371
3375
|
"~moonshotai/kimi-latest": {
|
|
3372
|
-
inputPer1M:
|
|
3373
|
-
outputPer1M:
|
|
3374
|
-
cacheReadMultiplier: 0.
|
|
3376
|
+
inputPer1M: 1,
|
|
3377
|
+
outputPer1M: 9,
|
|
3378
|
+
cacheReadMultiplier: 0.3,
|
|
3375
3379
|
addedAt: "2026-04-27",
|
|
3376
3380
|
vendor: "~moonshotai",
|
|
3377
3381
|
provider: "openrouter"
|
|
@@ -3437,8 +3441,8 @@ var OPENROUTER_ROUTES = {
|
|
|
3437
3441
|
provider: "openrouter"
|
|
3438
3442
|
},
|
|
3439
3443
|
"~z-ai/glm-latest": {
|
|
3440
|
-
inputPer1M: 0.
|
|
3441
|
-
outputPer1M: 1.
|
|
3444
|
+
inputPer1M: 0.3556,
|
|
3445
|
+
outputPer1M: 1.1176,
|
|
3442
3446
|
cacheReadMultiplier: 0.185714,
|
|
3443
3447
|
addedAt: "2026-08-19",
|
|
3444
3448
|
vendor: "~z-ai",
|
|
@@ -3573,7 +3577,7 @@ var MISTRAL_GENERATED_PRICING = {
|
|
|
3573
3577
|
// src/llm/moonshot-pricing.generated.ts
|
|
3574
3578
|
var MOONSHOT_GENERATED_PRICING = {
|
|
3575
3579
|
"kimi-k2.6": { inputPer1M: 0.95, outputPer1M: 4, cacheReadMultiplier: 0.1684, vendor: "moonshot", provider: "moonshot" },
|
|
3576
|
-
"kimi-k2.7-code": { inputPer1M: 0.
|
|
3580
|
+
"kimi-k2.7-code": { inputPer1M: 0.6562, outputPer1M: 3.3, cacheReadMultiplier: 0.2743, vendor: "moonshot", provider: "moonshot" },
|
|
3577
3581
|
"kimi-k3": { inputPer1M: 3, outputPer1M: 15, cacheReadMultiplier: 0.1, vendor: "moonshot", provider: "moonshot" }
|
|
3578
3582
|
};
|
|
3579
3583
|
|
|
@@ -3607,74 +3611,115 @@ var GOOGLE_GENERATED_PRICING = {
|
|
|
3607
3611
|
|
|
3608
3612
|
// src/llm/openai-pricing.generated.ts
|
|
3609
3613
|
var OPENAI_GENERATED_PRICING = {
|
|
3610
|
-
"gpt-3.5-turbo": { inputPer1M: 0.5, outputPer1M: 1.5, vendor: "openai", provider: "openai" },
|
|
3611
|
-
"gpt-3.5-turbo-0613": { inputPer1M: 1, outputPer1M: 2, vendor: "openai", provider: "openai" },
|
|
3612
|
-
"gpt-3.5-turbo-16k": { inputPer1M: 3, outputPer1M: 4, vendor: "openai", provider: "openai" },
|
|
3613
|
-
"gpt-3.5-turbo-instruct": { inputPer1M: 1.5, outputPer1M: 2, vendor: "openai", provider: "openai" },
|
|
3614
|
-
"gpt-
|
|
3615
|
-
"gpt-4
|
|
3616
|
-
"gpt-4-turbo
|
|
3617
|
-
"gpt-4
|
|
3618
|
-
"gpt-4.1
|
|
3619
|
-
"gpt-4.1-
|
|
3620
|
-
"gpt-
|
|
3621
|
-
"gpt-
|
|
3622
|
-
"gpt-
|
|
3623
|
-
"gpt-
|
|
3624
|
-
"gpt-4o
|
|
3625
|
-
"gpt-4o-
|
|
3626
|
-
"gpt-
|
|
3627
|
-
"gpt-
|
|
3628
|
-
"gpt-
|
|
3629
|
-
"gpt-
|
|
3630
|
-
"gpt-
|
|
3631
|
-
"gpt-
|
|
3632
|
-
"gpt-5
|
|
3633
|
-
"gpt-5
|
|
3634
|
-
"gpt-5
|
|
3635
|
-
"gpt-5
|
|
3636
|
-
"gpt-5
|
|
3637
|
-
"gpt-5
|
|
3638
|
-
"gpt-5
|
|
3639
|
-
"gpt-5
|
|
3640
|
-
"gpt-5
|
|
3641
|
-
"gpt-5
|
|
3642
|
-
"gpt-5.
|
|
3643
|
-
"gpt-5.
|
|
3644
|
-
"gpt-5.
|
|
3645
|
-
"gpt-5.
|
|
3646
|
-
"gpt-5.
|
|
3647
|
-
"gpt-5.
|
|
3648
|
-
"gpt-5.
|
|
3649
|
-
"gpt-5.
|
|
3650
|
-
"gpt-5.
|
|
3651
|
-
"gpt-5.
|
|
3652
|
-
"gpt-5.
|
|
3653
|
-
"gpt-
|
|
3654
|
-
"gpt-
|
|
3655
|
-
"gpt-
|
|
3656
|
-
"gpt-
|
|
3657
|
-
"gpt-
|
|
3658
|
-
"gpt-
|
|
3659
|
-
"gpt-
|
|
3660
|
-
"gpt-
|
|
3661
|
-
"
|
|
3662
|
-
"
|
|
3663
|
-
"
|
|
3664
|
-
"
|
|
3665
|
-
"
|
|
3666
|
-
"
|
|
3667
|
-
"
|
|
3668
|
-
"
|
|
3614
|
+
"gpt-3.5-turbo": { inputPer1M: 0.5, outputPer1M: 1.5, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3615
|
+
"gpt-3.5-turbo-0613": { inputPer1M: 1, outputPer1M: 2, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3616
|
+
"gpt-3.5-turbo-16k": { inputPer1M: 3, outputPer1M: 4, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3617
|
+
"gpt-3.5-turbo-instruct": { inputPer1M: 1.5, outputPer1M: 2, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3618
|
+
"gpt-3.5-turbo:batch": { inputPer1M: 0.25, outputPer1M: 0.75, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3619
|
+
"gpt-4": { inputPer1M: 30, outputPer1M: 60, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3620
|
+
"gpt-4-turbo": { inputPer1M: 10, outputPer1M: 30, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3621
|
+
"gpt-4-turbo:batch": { inputPer1M: 5, outputPer1M: 15, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3622
|
+
"gpt-4.1": { inputPer1M: 2, outputPer1M: 8, cacheReadMultiplier: 0.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3623
|
+
"gpt-4.1-mini": { inputPer1M: 0.4, outputPer1M: 1.6, cacheReadMultiplier: 0.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3624
|
+
"gpt-4.1-mini:batch": { inputPer1M: 0.2, outputPer1M: 0.8, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3625
|
+
"gpt-4.1-nano": { inputPer1M: 0.1, outputPer1M: 0.4, cacheReadMultiplier: 0.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3626
|
+
"gpt-4.1-nano:batch": { inputPer1M: 0.05, outputPer1M: 0.2, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3627
|
+
"gpt-4.1:batch": { inputPer1M: 1, outputPer1M: 4, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3628
|
+
"gpt-4o": { inputPer1M: 2.5, outputPer1M: 10, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3629
|
+
"gpt-4o-2024-05-13": { inputPer1M: 5, outputPer1M: 15, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3630
|
+
"gpt-4o-2024-08-06": { inputPer1M: 2.5, outputPer1M: 10, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3631
|
+
"gpt-4o-2024-11-20": { inputPer1M: 2.5, outputPer1M: 10, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3632
|
+
"gpt-4o-mini": { inputPer1M: 0.15, outputPer1M: 0.6, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3633
|
+
"gpt-4o-mini-2024-07-18": { inputPer1M: 0.15, outputPer1M: 0.6, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3634
|
+
"gpt-4o-mini:batch": { inputPer1M: 0.075, outputPer1M: 0.3, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3635
|
+
"gpt-4o:batch": { inputPer1M: 1.25, outputPer1M: 5, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3636
|
+
"gpt-5": { inputPer1M: 1.25, outputPer1M: 10, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3637
|
+
"gpt-5-image": { inputPer1M: 10, outputPer1M: 10, cacheReadMultiplier: 0.125, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3638
|
+
"gpt-5-image-mini": { inputPer1M: 2.5, outputPer1M: 2, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3639
|
+
"gpt-5-mini": { inputPer1M: 0.25, outputPer1M: 2, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3640
|
+
"gpt-5-mini:batch": { inputPer1M: 0.125, outputPer1M: 1, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3641
|
+
"gpt-5-nano": { inputPer1M: 0.05, outputPer1M: 0.4, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3642
|
+
"gpt-5-nano:batch": { inputPer1M: 0.025, outputPer1M: 0.2, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3643
|
+
"gpt-5-pro": { inputPer1M: 15, outputPer1M: 120, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3644
|
+
"gpt-5-pro:batch": { inputPer1M: 7.5, outputPer1M: 60, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3645
|
+
"gpt-5:batch": { inputPer1M: 0.625, outputPer1M: 5, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3646
|
+
"gpt-5.1": { inputPer1M: 1.25, outputPer1M: 10, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3647
|
+
"gpt-5.1-codex": { inputPer1M: 1.25, outputPer1M: 10, cacheReadMultiplier: 0.104, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3648
|
+
"gpt-5.1-codex-max": { inputPer1M: 1.25, outputPer1M: 10, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3649
|
+
"gpt-5.1-codex-mini": { inputPer1M: 0.25, outputPer1M: 2, cacheReadMultiplier: 0.12, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3650
|
+
"gpt-5.1:batch": { inputPer1M: 0.625, outputPer1M: 5, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3651
|
+
"gpt-5.2": { inputPer1M: 1.75, outputPer1M: 14, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3652
|
+
"gpt-5.2-chat": { inputPer1M: 1.75, outputPer1M: 14, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3653
|
+
"gpt-5.2-codex": { inputPer1M: 1.75, outputPer1M: 14, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3654
|
+
"gpt-5.2-pro": { inputPer1M: 21, outputPer1M: 168, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3655
|
+
"gpt-5.2-pro:batch": { inputPer1M: 10.5, outputPer1M: 84, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3656
|
+
"gpt-5.2:batch": { inputPer1M: 0.875, outputPer1M: 7, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3657
|
+
"gpt-5.3-codex": { inputPer1M: 1.75, outputPer1M: 14, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3658
|
+
"gpt-5.4": { inputPer1M: 2.5, outputPer1M: 15, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3659
|
+
"gpt-5.4-mini": { inputPer1M: 0.75, outputPer1M: 4.5, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3660
|
+
"gpt-5.4-mini:batch": { inputPer1M: 0.375, outputPer1M: 2.25, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3661
|
+
"gpt-5.4-nano": { inputPer1M: 0.2, outputPer1M: 1.25, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3662
|
+
"gpt-5.4-nano:batch": { inputPer1M: 0.1, outputPer1M: 0.625, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3663
|
+
"gpt-5.4-pro": { inputPer1M: 30, outputPer1M: 180, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3664
|
+
"gpt-5.4-pro:batch": { inputPer1M: 15, outputPer1M: 90, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3665
|
+
"gpt-5.4:batch": { inputPer1M: 1.25, outputPer1M: 7.5, cacheReadMultiplier: 0.104, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3666
|
+
"gpt-5.5": { inputPer1M: 5, outputPer1M: 30, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3667
|
+
"gpt-5.5-pro": { inputPer1M: 30, outputPer1M: 180, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3668
|
+
"gpt-5.5-pro:batch": { inputPer1M: 15, outputPer1M: 90, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3669
|
+
"gpt-5.5:batch": { inputPer1M: 2.5, outputPer1M: 15, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3670
|
+
"gpt-5.6-luna": { inputPer1M: 0.2, outputPer1M: 1.2, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3671
|
+
"gpt-5.6-luna-pro": { inputPer1M: 0.2, outputPer1M: 1.2, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3672
|
+
"gpt-5.6-luna-pro:batch": { inputPer1M: 0.1, outputPer1M: 0.6, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3673
|
+
"gpt-5.6-luna:batch": { inputPer1M: 0.1, outputPer1M: 0.6, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3674
|
+
"gpt-5.6-sol": { inputPer1M: 4, outputPer1M: 20, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3675
|
+
"gpt-5.6-sol-pro": { inputPer1M: 2, outputPer1M: 10, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3676
|
+
"gpt-5.6-sol-pro:batch": { inputPer1M: 1, outputPer1M: 5, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3677
|
+
"gpt-5.6-sol:batch": { inputPer1M: 2, outputPer1M: 10, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3678
|
+
"gpt-5.6-terra": { inputPer1M: 2, outputPer1M: 12, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3679
|
+
"gpt-5.6-terra-pro": { inputPer1M: 2, outputPer1M: 12, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3680
|
+
"gpt-5.6-terra-pro:batch": { inputPer1M: 1, outputPer1M: 6, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3681
|
+
"gpt-5.6-terra:batch": { inputPer1M: 1, outputPer1M: 6, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3682
|
+
"gpt-6-astra": { inputPer1M: 10, outputPer1M: 50, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3683
|
+
"gpt-6-astra-pro": { inputPer1M: 10, outputPer1M: 50, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3684
|
+
"gpt-6-astra-pro:batch": { inputPer1M: 5, outputPer1M: 25, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3685
|
+
"gpt-6-astra:batch": { inputPer1M: 5, outputPer1M: 25, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3686
|
+
"gpt-6-luna": { inputPer1M: 0.1, outputPer1M: 0.5, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3687
|
+
"gpt-6-luna-pro": { inputPer1M: 0.1, outputPer1M: 0.5, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3688
|
+
"gpt-6-luna-pro:batch": { inputPer1M: 0.05, outputPer1M: 0.25, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3689
|
+
"gpt-6-luna:batch": { inputPer1M: 0.05, outputPer1M: 0.25, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3690
|
+
"gpt-6-sol": { inputPer1M: 2, outputPer1M: 10, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3691
|
+
"gpt-6-sol-pro": { inputPer1M: 2, outputPer1M: 10, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3692
|
+
"gpt-6-sol-pro:batch": { inputPer1M: 1, outputPer1M: 5, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3693
|
+
"gpt-6-sol:batch": { inputPer1M: 1, outputPer1M: 5, cacheReadMultiplier: 0.1, cacheWriteMultiplier: 1.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3694
|
+
"gpt-audio": { inputPer1M: 2.5, outputPer1M: 10, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3695
|
+
"gpt-audio-mini": { inputPer1M: 0.6, outputPer1M: 2.4, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3696
|
+
"gpt-chat-latest": { inputPer1M: 5, outputPer1M: 30, cacheReadMultiplier: 0.1, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3697
|
+
"gpt-oss-120b": { inputPer1M: 0.15, outputPer1M: 0.6, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3698
|
+
"gpt-oss-120b:batch": { inputPer1M: 0.0296, outputPer1M: 0.136, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3699
|
+
"gpt-oss-20b": { inputPer1M: 0.018, outputPer1M: 0.09, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3700
|
+
"gpt-oss-20b:batch": { inputPer1M: 0.024, outputPer1M: 0.112, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3701
|
+
"gpt-oss-safeguard-20b": { inputPer1M: 0.075, outputPer1M: 0.3, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3702
|
+
"o1": { inputPer1M: 15, outputPer1M: 60, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3703
|
+
"o1-pro": { inputPer1M: 150, outputPer1M: 600, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3704
|
+
"o3": { inputPer1M: 2, outputPer1M: 8, cacheReadMultiplier: 0.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3705
|
+
"o3-mini": { inputPer1M: 1.1, outputPer1M: 4.4, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3706
|
+
"o3-mini-high": { inputPer1M: 1.1, outputPer1M: 4.4, cacheReadMultiplier: 0.5, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3707
|
+
"o3-mini:batch": { inputPer1M: 0.55, outputPer1M: 2.2, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3708
|
+
"o3-pro": { inputPer1M: 20, outputPer1M: 80, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3709
|
+
"o3:batch": { inputPer1M: 1, outputPer1M: 4, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3710
|
+
"o4-mini": { inputPer1M: 1.1, outputPer1M: 4.4, cacheReadMultiplier: 0.25, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" },
|
|
3711
|
+
"o4-mini-high": { inputPer1M: 1.1, outputPer1M: 4.4, cacheReadMultiplier: 0.25, vendor: "openai", provider: "openai", priceSource: "openrouter", idSource: "openrouter" },
|
|
3712
|
+
"o4-mini:batch": { inputPer1M: 0.55, outputPer1M: 2.2, vendor: "openai", provider: "openai", priceSource: "openai", idSource: "openrouter" }
|
|
3669
3713
|
};
|
|
3714
|
+
var OPENAI_GENERATED_UNPRICED_IDS = [];
|
|
3670
3715
|
|
|
3671
3716
|
// src/llm/minimax-pricing.generated.ts
|
|
3672
3717
|
var MINIMAX_GENERATED_PRICING = {
|
|
3673
3718
|
"M2-her": { inputPer1M: 0.3, outputPer1M: 1.2, cacheReadMultiplier: 0.1, vendor: "minimax", provider: "minimax" },
|
|
3674
|
-
"MiniMax-M2": { inputPer1M: 0.
|
|
3719
|
+
"MiniMax-M2": { inputPer1M: 0.3, outputPer1M: 1.2, vendor: "minimax", provider: "minimax" },
|
|
3675
3720
|
"MiniMax-M2.1": { inputPer1M: 0.3, outputPer1M: 1.2, cacheReadMultiplier: 0.1, vendor: "minimax", provider: "minimax" },
|
|
3676
3721
|
"MiniMax-M2.5": { inputPer1M: 0.27, outputPer1M: 1.08, cacheReadMultiplier: 0.1, vendor: "minimax", provider: "minimax" },
|
|
3677
|
-
"MiniMax-M2.7": { inputPer1M: 0.
|
|
3722
|
+
"MiniMax-M2.7": { inputPer1M: 0.21, outputPer1M: 0.84, cacheReadMultiplier: 0.2, vendor: "minimax", provider: "minimax" }
|
|
3678
3723
|
};
|
|
3679
3724
|
|
|
3680
3725
|
// src/llm/xai-pricing.generated.ts
|
|
@@ -3835,7 +3880,7 @@ var PRICING_OVERRIDES = {
|
|
|
3835
3880
|
provider: "mistral"
|
|
3836
3881
|
},
|
|
3837
3882
|
"gpt-5-codex": {
|
|
3838
|
-
reason: "
|
|
3883
|
+
reason: "Priced by neither automated source: absent from OpenRouter's openai/* listing under this exact id, and absent from OpenAI's own pricing page, which now lists only gpt-5.3-codex for the Codex family. OpenAI's /v1/models DOES list the id, so the generator emits it in OPENAI_GENERATED_UNPRICED_IDS (existence) and this row supplies the price (gpt-5 rates, which is what Codex billed at).",
|
|
3839
3884
|
inputPer1M: 1.25,
|
|
3840
3885
|
outputPer1M: 10,
|
|
3841
3886
|
cacheReadMultiplier: 0.1,
|
|
@@ -3873,10 +3918,12 @@ var LLM_PRICING_CATALOG = {
|
|
|
3873
3918
|
// Every provider below is fully generated from that provider's own live
|
|
3874
3919
|
// sync (`scripts/catalog-sync/sync-*.mjs`) — existence AND price both come
|
|
3875
3920
|
// from the provider's native id space wherever the provider exposes one
|
|
3876
|
-
// (Anthropic, xAI, MiniMax, Moonshot, Mistral, Google-via-remap
|
|
3877
|
-
//
|
|
3878
|
-
//
|
|
3879
|
-
//
|
|
3921
|
+
// (Anthropic, xAI, MiniMax, Moonshot, Mistral, Google-via-remap, and — as of
|
|
3922
|
+
// the OpenAI native-source sync — OpenAI, from `api.openai.com/v1/models`
|
|
3923
|
+
// plus its own published pricing page); OpenRouter supplies PRICE only for
|
|
3924
|
+
// those, never ids, apart from the OpenAI ids `/v1/models` structurally
|
|
3925
|
+
// cannot list (`:batch`, `gpt-oss-*`) — each of those carries
|
|
3926
|
+
// `idSource: "openrouter"`. On any id a generator covers,
|
|
3880
3927
|
// the generated value wins UNCONDITIONALLY — no hand-typed row duplicates
|
|
3881
3928
|
// an id a generator already prices, even where they used to disagree; see
|
|
3882
3929
|
// the PR body's divergence table. `PRICING_OVERRIDES` above is the only
|
|
@@ -3895,13 +3942,15 @@ var LLM_PRICING_CATALOG = {
|
|
|
3895
3942
|
// to refresh.
|
|
3896
3943
|
...OPENROUTER_ROUTES
|
|
3897
3944
|
};
|
|
3945
|
+
var OPENAI_UNPRICED_ID_SET = new Set(OPENAI_GENERATED_UNPRICED_IDS);
|
|
3898
3946
|
function isKnownLlmId(modelId) {
|
|
3899
|
-
return modelId in LLM_PRICING_CATALOG || modelId in CONTEXT_WINDOWS || modelId in OPENROUTER_ROUTES;
|
|
3947
|
+
return modelId in LLM_PRICING_CATALOG || modelId in CONTEXT_WINDOWS || modelId in OPENROUTER_ROUTES || OPENAI_UNPRICED_ID_SET.has(modelId);
|
|
3900
3948
|
}
|
|
3901
3949
|
function listUnpricedKnownLlmIds() {
|
|
3902
3950
|
const ids = /* @__PURE__ */ new Set([
|
|
3903
3951
|
...Object.keys(CONTEXT_WINDOWS),
|
|
3904
|
-
...Object.keys(OPENROUTER_ROUTES)
|
|
3952
|
+
...Object.keys(OPENROUTER_ROUTES),
|
|
3953
|
+
...OPENAI_GENERATED_UNPRICED_IDS
|
|
3905
3954
|
]);
|
|
3906
3955
|
const result = [];
|
|
3907
3956
|
for (const id of ids) {
|
|
@@ -3983,7 +4032,8 @@ var MODEL_ALIASES = {
|
|
|
3983
4032
|
};
|
|
3984
4033
|
var PRICING_BY_ID = LLM_PRICING_CATALOG;
|
|
3985
4034
|
var ALIAS_BY_ID = MODEL_ALIASES;
|
|
3986
|
-
function resolvePricing(
|
|
4035
|
+
function resolvePricing(rawModelId) {
|
|
4036
|
+
const modelId = splitContextWindowHint(rawModelId).id;
|
|
3987
4037
|
if (PRICING_BY_ID[modelId]) return PRICING_BY_ID[modelId];
|
|
3988
4038
|
const alias = ALIAS_BY_ID[modelId];
|
|
3989
4039
|
if (alias && PRICING_BY_ID[alias]) return PRICING_BY_ID[alias];
|
|
@@ -3992,22 +4042,37 @@ function resolvePricing(modelId) {
|
|
|
3992
4042
|
}
|
|
3993
4043
|
return void 0;
|
|
3994
4044
|
}
|
|
3995
|
-
function resolvePricingExact(
|
|
4045
|
+
function resolvePricingExact(rawModelId) {
|
|
4046
|
+
const modelId = splitContextWindowHint(rawModelId).id;
|
|
3996
4047
|
if (PRICING_BY_ID[modelId]) return PRICING_BY_ID[modelId];
|
|
3997
4048
|
const alias = ALIAS_BY_ID[modelId];
|
|
3998
4049
|
if (alias && PRICING_BY_ID[alias]) return PRICING_BY_ID[alias];
|
|
3999
4050
|
return void 0;
|
|
4000
4051
|
}
|
|
4001
|
-
function resolveAlias(
|
|
4052
|
+
function resolveAlias(rawModelId) {
|
|
4053
|
+
const modelId = splitContextWindowHint(rawModelId).id;
|
|
4002
4054
|
if (PRICING_BY_ID[modelId]) return modelId;
|
|
4003
4055
|
const alias = ALIAS_BY_ID[modelId];
|
|
4004
4056
|
if (alias && PRICING_BY_ID[alias]) return alias;
|
|
4005
4057
|
for (const key of Object.keys(PRICING_BY_ID)) {
|
|
4006
4058
|
if (modelId.includes(key)) return key;
|
|
4007
4059
|
}
|
|
4008
|
-
return
|
|
4060
|
+
return rawModelId;
|
|
4009
4061
|
}
|
|
4010
4062
|
function resolveContextWindow(modelId) {
|
|
4063
|
+
const { id, contextWindow: hinted } = splitContextWindowHint(modelId);
|
|
4064
|
+
const entry = lookupContextWindow(id);
|
|
4065
|
+
if (entry && hinted !== void 0) return { ...entry, contextWindow: hinted };
|
|
4066
|
+
return entry;
|
|
4067
|
+
}
|
|
4068
|
+
function splitContextWindowHint(modelId) {
|
|
4069
|
+
const match = /^(.+)\[(\d+(?:\.\d+)?)([km])\]$/i.exec(modelId);
|
|
4070
|
+
if (!match) return { id: modelId };
|
|
4071
|
+
const [, id, amount, unit] = match;
|
|
4072
|
+
const contextWindow = Math.round(Number(amount) * (unit.toLowerCase() === "m" ? 1e6 : 1e3));
|
|
4073
|
+
return contextWindow > 0 ? { id, contextWindow } : { id };
|
|
4074
|
+
}
|
|
4075
|
+
function lookupContextWindow(modelId) {
|
|
4011
4076
|
if (CONTEXT_WINDOWS[modelId]) return CONTEXT_WINDOWS[modelId];
|
|
4012
4077
|
const datedMatch = Object.keys(CONTEXT_WINDOWS).filter((key) => key.startsWith(`${modelId}-2`)).sort((a, b) => a.length - b.length)[0];
|
|
4013
4078
|
if (datedMatch) return CONTEXT_WINDOWS[datedMatch];
|
|
@@ -4296,6 +4361,13 @@ var OPENCODE_GO_ROUTES = {
|
|
|
4296
4361
|
vendor: "meituan",
|
|
4297
4362
|
provider: "opencode-go"
|
|
4298
4363
|
},
|
|
4364
|
+
"opencode-go/longcat-2.5-preview-free": {
|
|
4365
|
+
inputPer1M: 0,
|
|
4366
|
+
outputPer1M: 0,
|
|
4367
|
+
addedAt: "2026-09-25",
|
|
4368
|
+
vendor: "meituan",
|
|
4369
|
+
provider: "opencode-go"
|
|
4370
|
+
},
|
|
4299
4371
|
"opencode-go/mimo-v2-omni": {
|
|
4300
4372
|
inputPer1M: 0.4,
|
|
4301
4373
|
outputPer1M: 2,
|
|
@@ -5127,6 +5199,13 @@ var OPENCODE_ZEN_ROUTES = {
|
|
|
5127
5199
|
vendor: "meituan",
|
|
5128
5200
|
provider: "opencode"
|
|
5129
5201
|
},
|
|
5202
|
+
"opencode/longcat-2.5-preview-free": {
|
|
5203
|
+
inputPer1M: 0,
|
|
5204
|
+
outputPer1M: 0,
|
|
5205
|
+
addedAt: "2026-09-25",
|
|
5206
|
+
vendor: "meituan",
|
|
5207
|
+
provider: "opencode"
|
|
5208
|
+
},
|
|
5130
5209
|
"opencode/mimo-v2-flash-free": {
|
|
5131
5210
|
inputPer1M: 0,
|
|
5132
5211
|
outputPer1M: 0,
|
|
@@ -5314,6 +5393,15 @@ var OPENCODE_ZEN_ROUTES = {
|
|
|
5314
5393
|
vendor: "qwen",
|
|
5315
5394
|
provider: "opencode"
|
|
5316
5395
|
},
|
|
5396
|
+
"opencode/qwen3.8-max": {
|
|
5397
|
+
inputPer1M: 2,
|
|
5398
|
+
outputPer1M: 6,
|
|
5399
|
+
cacheReadMultiplier: 0.125,
|
|
5400
|
+
cacheWriteMultiplier: 1.25,
|
|
5401
|
+
addedAt: "2026-08-03",
|
|
5402
|
+
vendor: "qwen",
|
|
5403
|
+
provider: "opencode"
|
|
5404
|
+
},
|
|
5317
5405
|
"opencode/ring-2.6-1t-free": {
|
|
5318
5406
|
inputPer1M: 0,
|
|
5319
5407
|
outputPer1M: 0,
|
|
@@ -5368,6 +5456,6 @@ var OPENCODE_ZEN_ANTHROPIC_MODELS = [
|
|
|
5368
5456
|
"qwen3.8-flash"
|
|
5369
5457
|
];
|
|
5370
5458
|
|
|
5371
|
-
export { DEFAULT_PRICING, LLM_PRICING_CATALOG, MODEL_ALIASES, OPENCODE_GO_ANTHROPIC_MODELS, OPENCODE_GO_ROUTES, OPENCODE_ZEN_ANTHROPIC_MODELS, OPENCODE_ZEN_ROUTES, OPENROUTER_ROUTES, calculateLLMCreditCost, getCacheStats, getModelProvider, isKnownLlmId, listNativeModelIds, listUnpricedKnownLlmIds, resolveAlias, resolveContextWindow, resolveModelRoute, resolvePricing, resolvePricingExact };
|
|
5372
|
-
//# sourceMappingURL=chunk-
|
|
5373
|
-
//# sourceMappingURL=chunk-
|
|
5459
|
+
export { DEFAULT_PRICING, LLM_PRICING_CATALOG, MODEL_ALIASES, OPENCODE_GO_ANTHROPIC_MODELS, OPENCODE_GO_ROUTES, OPENCODE_ZEN_ANTHROPIC_MODELS, OPENCODE_ZEN_ROUTES, OPENROUTER_ROUTES, calculateLLMCreditCost, getCacheStats, getModelProvider, isKnownLlmId, listNativeModelIds, listUnpricedKnownLlmIds, resolveAlias, resolveContextWindow, resolveModelRoute, resolvePricing, resolvePricingExact, splitContextWindowHint };
|
|
5460
|
+
//# sourceMappingURL=chunk-VZCVDFNS.mjs.map
|
|
5461
|
+
//# sourceMappingURL=chunk-VZCVDFNS.mjs.map
|