@pydantic/genai-prices 0.0.61 → 0.0.63
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/cli.js +267 -5
- package/dist/index.cjs +3 -3
- package/dist/index.js +267 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -421,6 +421,35 @@ const Q = [
|
|
|
421
421
|
output_mtok: 25
|
|
422
422
|
}
|
|
423
423
|
},
|
|
424
|
+
{
|
|
425
|
+
id: "claude-opus-4-8",
|
|
426
|
+
name: "Claude Opus 4.8",
|
|
427
|
+
description: "Our most capable model for complex reasoning and agentic coding",
|
|
428
|
+
match: {
|
|
429
|
+
or: [
|
|
430
|
+
{
|
|
431
|
+
starts_with: "claude-opus-4-8"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
starts_with: "claude-opus-4.8"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
starts_with: "claude-4-8-opus"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
starts_with: "claude-4.8-opus"
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
context_window: 1e6,
|
|
445
|
+
price_comments: "Flat pricing across full 1M context window (no tiered pricing). Ref: https://platform.claude.com/docs/en/about-claude/pricing#long-context-pricing",
|
|
446
|
+
prices: {
|
|
447
|
+
input_mtok: 5,
|
|
448
|
+
cache_write_mtok: 6.25,
|
|
449
|
+
cache_read_mtok: 0.5,
|
|
450
|
+
output_mtok: 25
|
|
451
|
+
}
|
|
452
|
+
},
|
|
424
453
|
{
|
|
425
454
|
id: "claude-sonnet-4-0",
|
|
426
455
|
name: "Claude Sonnet 4",
|
|
@@ -643,7 +672,14 @@ const Q = [
|
|
|
643
672
|
pricing_urls: ["https://aws.amazon.com/bedrock/pricing/"],
|
|
644
673
|
api_pattern: "https://bedrock-runtime\\.[a-z0-9-]+\\.amazonaws\\.com/",
|
|
645
674
|
provider_match: {
|
|
646
|
-
|
|
675
|
+
or: [
|
|
676
|
+
{
|
|
677
|
+
contains: "bedrock"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
contains: "amazon"
|
|
681
|
+
}
|
|
682
|
+
]
|
|
647
683
|
},
|
|
648
684
|
extractors: [
|
|
649
685
|
{
|
|
@@ -889,6 +925,18 @@ const Q = [
|
|
|
889
925
|
output_mtok: 25
|
|
890
926
|
}
|
|
891
927
|
},
|
|
928
|
+
{
|
|
929
|
+
id: "global.anthropic.claude-opus-4-8-v1:0",
|
|
930
|
+
match: {
|
|
931
|
+
contains: "global.anthropic.claude-opus-4-8"
|
|
932
|
+
},
|
|
933
|
+
prices: {
|
|
934
|
+
input_mtok: 5,
|
|
935
|
+
cache_write_mtok: 6.25,
|
|
936
|
+
cache_read_mtok: 0.5,
|
|
937
|
+
output_mtok: 25
|
|
938
|
+
}
|
|
939
|
+
},
|
|
892
940
|
{
|
|
893
941
|
id: "global.anthropic.claude-sonnet-4-20250514-v1:0",
|
|
894
942
|
match: {
|
|
@@ -957,6 +1005,39 @@ const Q = [
|
|
|
957
1005
|
}
|
|
958
1006
|
}
|
|
959
1007
|
},
|
|
1008
|
+
{
|
|
1009
|
+
id: "google.gemma-3-12b-it",
|
|
1010
|
+
name: "Gemma 3 12B IT",
|
|
1011
|
+
match: {
|
|
1012
|
+
contains: "google.gemma-3-12b-it"
|
|
1013
|
+
},
|
|
1014
|
+
prices: {
|
|
1015
|
+
input_mtok: 0.09,
|
|
1016
|
+
output_mtok: 0.29
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
id: "google.gemma-3-27b-it",
|
|
1021
|
+
name: "Gemma 3 27B IT",
|
|
1022
|
+
match: {
|
|
1023
|
+
contains: "google.gemma-3-27b-it"
|
|
1024
|
+
},
|
|
1025
|
+
prices: {
|
|
1026
|
+
input_mtok: 0.23,
|
|
1027
|
+
output_mtok: 0.38
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
id: "google.gemma-3-4b-it",
|
|
1032
|
+
name: "Gemma 3 4B IT",
|
|
1033
|
+
match: {
|
|
1034
|
+
contains: "google.gemma-3-4b-it"
|
|
1035
|
+
},
|
|
1036
|
+
prices: {
|
|
1037
|
+
input_mtok: 0.04,
|
|
1038
|
+
output_mtok: 0.08
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
960
1041
|
{
|
|
961
1042
|
id: "meta.llama3-1-70b-instruct-v1:0",
|
|
962
1043
|
name: "Llama 3.1 70B Instruct",
|
|
@@ -1078,6 +1159,61 @@ const Q = [
|
|
|
1078
1159
|
output_mtok: 0.66
|
|
1079
1160
|
}
|
|
1080
1161
|
},
|
|
1162
|
+
{
|
|
1163
|
+
id: "mistral.devstral-2-123b",
|
|
1164
|
+
name: "Devstral 2 123B",
|
|
1165
|
+
match: {
|
|
1166
|
+
contains: "mistral.devstral-2-123b"
|
|
1167
|
+
},
|
|
1168
|
+
prices: {
|
|
1169
|
+
input_mtok: 0.4,
|
|
1170
|
+
output_mtok: 2
|
|
1171
|
+
}
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
id: "mistral.magistral-small-2509",
|
|
1175
|
+
name: "Magistral Small 2509",
|
|
1176
|
+
match: {
|
|
1177
|
+
contains: "mistral.magistral-small-2509"
|
|
1178
|
+
},
|
|
1179
|
+
prices: {
|
|
1180
|
+
input_mtok: 0.5,
|
|
1181
|
+
output_mtok: 1.5
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
id: "mistral.ministral-3-14b-instruct",
|
|
1186
|
+
name: "Ministral 14B 3.0",
|
|
1187
|
+
match: {
|
|
1188
|
+
contains: "mistral.ministral-3-14b-instruct"
|
|
1189
|
+
},
|
|
1190
|
+
prices: {
|
|
1191
|
+
input_mtok: 0.2,
|
|
1192
|
+
output_mtok: 0.2
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
id: "mistral.ministral-3-3b-instruct",
|
|
1197
|
+
name: "Ministral 3B 3.0",
|
|
1198
|
+
match: {
|
|
1199
|
+
contains: "mistral.ministral-3-3b-instruct"
|
|
1200
|
+
},
|
|
1201
|
+
prices: {
|
|
1202
|
+
input_mtok: 0.1,
|
|
1203
|
+
output_mtok: 0.1
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
id: "mistral.ministral-3-8b-instruct",
|
|
1208
|
+
name: "Ministral 8B 3.0",
|
|
1209
|
+
match: {
|
|
1210
|
+
contains: "mistral.ministral-3-8b-instruct"
|
|
1211
|
+
},
|
|
1212
|
+
prices: {
|
|
1213
|
+
input_mtok: 0.15,
|
|
1214
|
+
output_mtok: 0.15
|
|
1215
|
+
}
|
|
1216
|
+
},
|
|
1081
1217
|
{
|
|
1082
1218
|
id: "mistral.mistral-7b-instruct-v0:2",
|
|
1083
1219
|
name: "Mistral 7B Instruct",
|
|
@@ -1100,6 +1236,17 @@ const Q = [
|
|
|
1100
1236
|
output_mtok: 12
|
|
1101
1237
|
}
|
|
1102
1238
|
},
|
|
1239
|
+
{
|
|
1240
|
+
id: "mistral.mistral-large-3-675b-instruct",
|
|
1241
|
+
name: "Mistral Large 3",
|
|
1242
|
+
match: {
|
|
1243
|
+
contains: "mistral.mistral-large-3-675b-instruct"
|
|
1244
|
+
},
|
|
1245
|
+
prices: {
|
|
1246
|
+
input_mtok: 0.5,
|
|
1247
|
+
output_mtok: 1.5
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1103
1250
|
{
|
|
1104
1251
|
id: "mistral.mistral-small-2402-v1:0",
|
|
1105
1252
|
name: "Mistral Small (24.02)",
|
|
@@ -1133,6 +1280,28 @@ const Q = [
|
|
|
1133
1280
|
output_mtok: 6
|
|
1134
1281
|
}
|
|
1135
1282
|
},
|
|
1283
|
+
{
|
|
1284
|
+
id: "mistral.voxtral-mini-3b-2507",
|
|
1285
|
+
name: "Voxtral Mini 3B 2507",
|
|
1286
|
+
match: {
|
|
1287
|
+
contains: "mistral.voxtral-mini-3b-2507"
|
|
1288
|
+
},
|
|
1289
|
+
prices: {
|
|
1290
|
+
input_mtok: 0.04,
|
|
1291
|
+
output_mtok: 0.04
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
id: "mistral.voxtral-small-24b-2507",
|
|
1296
|
+
name: "Voxtral Small 24B 2507",
|
|
1297
|
+
match: {
|
|
1298
|
+
contains: "mistral.voxtral-small-24b-2507"
|
|
1299
|
+
},
|
|
1300
|
+
prices: {
|
|
1301
|
+
input_mtok: 0.1,
|
|
1302
|
+
output_mtok: 0.3
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1136
1305
|
{
|
|
1137
1306
|
id: "nvidia.nemotron-nano-3-30b:0",
|
|
1138
1307
|
name: "Nemotron 3 Nano 30B",
|
|
@@ -1566,6 +1735,37 @@ const Q = [
|
|
|
1566
1735
|
output_mtok: 27.5
|
|
1567
1736
|
}
|
|
1568
1737
|
},
|
|
1738
|
+
{
|
|
1739
|
+
id: "regional.anthropic.claude-opus-4-8-v1:0",
|
|
1740
|
+
match: {
|
|
1741
|
+
or: [
|
|
1742
|
+
{
|
|
1743
|
+
starts_with: "anthropic.claude-opus-4-8"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
starts_with: "claude-opus-4-8"
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
contains: "us.anthropic.claude-opus-4-8"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
contains: "au.anthropic.claude-opus-4-8"
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
contains: "eu.anthropic.claude-opus-4-8"
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
contains: "jp.anthropic.claude-opus-4-8"
|
|
1759
|
+
}
|
|
1760
|
+
]
|
|
1761
|
+
},
|
|
1762
|
+
prices: {
|
|
1763
|
+
input_mtok: 5.5,
|
|
1764
|
+
cache_write_mtok: 6.875,
|
|
1765
|
+
cache_read_mtok: 0.55,
|
|
1766
|
+
output_mtok: 27.5
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1569
1769
|
{
|
|
1570
1770
|
id: "regional.anthropic.claude-sonnet-4-20250514-v1:0",
|
|
1571
1771
|
match: {
|
|
@@ -2553,11 +2753,10 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
2553
2753
|
]
|
|
2554
2754
|
},
|
|
2555
2755
|
context_window: 1e6,
|
|
2556
|
-
price_comments: "Standard (non-promotional) pricing. DeepSeek is offering a temporary 75% promotional discount that is not reflected here.",
|
|
2557
2756
|
prices: {
|
|
2558
|
-
input_mtok:
|
|
2559
|
-
cache_read_mtok:
|
|
2560
|
-
output_mtok:
|
|
2757
|
+
input_mtok: 0.435,
|
|
2758
|
+
cache_read_mtok: 3625e-6,
|
|
2759
|
+
output_mtok: 0.87
|
|
2561
2760
|
}
|
|
2562
2761
|
}
|
|
2563
2762
|
]
|
|
@@ -3147,6 +3346,33 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
3147
3346
|
output_mtok: 25
|
|
3148
3347
|
}
|
|
3149
3348
|
},
|
|
3349
|
+
{
|
|
3350
|
+
id: "claude-opus-4-8",
|
|
3351
|
+
match: {
|
|
3352
|
+
or: [
|
|
3353
|
+
{
|
|
3354
|
+
contains: "claude-4-8-opus"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
contains: "claude-opus-4-8"
|
|
3358
|
+
},
|
|
3359
|
+
{
|
|
3360
|
+
contains: "claude-4.8-opus"
|
|
3361
|
+
},
|
|
3362
|
+
{
|
|
3363
|
+
contains: "claude-opus-4.8"
|
|
3364
|
+
}
|
|
3365
|
+
]
|
|
3366
|
+
},
|
|
3367
|
+
context_window: 1e6,
|
|
3368
|
+
price_comments: "Flat pricing across full 1M context window. Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models",
|
|
3369
|
+
prices: {
|
|
3370
|
+
input_mtok: 5,
|
|
3371
|
+
cache_write_mtok: 6.25,
|
|
3372
|
+
cache_read_mtok: 0.5,
|
|
3373
|
+
output_mtok: 25
|
|
3374
|
+
}
|
|
3375
|
+
},
|
|
3150
3376
|
{
|
|
3151
3377
|
id: "gemini-1.0-pro-vision-001",
|
|
3152
3378
|
name: "gemini 1.0 pro vision",
|
|
@@ -3567,6 +3793,21 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
3567
3793
|
}
|
|
3568
3794
|
}
|
|
3569
3795
|
},
|
|
3796
|
+
{
|
|
3797
|
+
id: "gemini-3.5-flash",
|
|
3798
|
+
name: "Gemini 3.5 Flash",
|
|
3799
|
+
description: "Google's most intelligent model built for speed, combining frontier intelligence with improved reasoning, coding, and multimodal understanding.",
|
|
3800
|
+
match: {
|
|
3801
|
+
starts_with: "gemini-3.5-flash"
|
|
3802
|
+
},
|
|
3803
|
+
context_window: 1e6,
|
|
3804
|
+
price_comments: "See https://ai.google.dev/gemini-api/docs/pricing. Standard tier pricing shown; Batch and Flex tiers offer 50% discount on input/output.",
|
|
3805
|
+
prices: {
|
|
3806
|
+
input_mtok: 1.5,
|
|
3807
|
+
cache_read_mtok: 0.15,
|
|
3808
|
+
output_mtok: 9
|
|
3809
|
+
}
|
|
3810
|
+
},
|
|
3570
3811
|
{
|
|
3571
3812
|
id: "gemini-embedding-001",
|
|
3572
3813
|
match: {
|
|
@@ -11062,6 +11303,27 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
11062
11303
|
output_mtok: 25
|
|
11063
11304
|
}
|
|
11064
11305
|
},
|
|
11306
|
+
{
|
|
11307
|
+
id: "anthropic/claude-opus-4.8",
|
|
11308
|
+
match: {
|
|
11309
|
+
or: [
|
|
11310
|
+
{
|
|
11311
|
+
equals: "anthropic/claude-opus-4.8"
|
|
11312
|
+
},
|
|
11313
|
+
{
|
|
11314
|
+
equals: "anthropic/claude-opus-4.8:beta"
|
|
11315
|
+
}
|
|
11316
|
+
]
|
|
11317
|
+
},
|
|
11318
|
+
context_window: 1e6,
|
|
11319
|
+
price_comments: "Flat pricing across full 1M context window (no tiered pricing). Ref: https://platform.claude.com/docs/en/about-claude/pricing#long-context-pricing",
|
|
11320
|
+
prices: {
|
|
11321
|
+
input_mtok: 5,
|
|
11322
|
+
cache_write_mtok: 6.25,
|
|
11323
|
+
cache_read_mtok: 0.5,
|
|
11324
|
+
output_mtok: 25
|
|
11325
|
+
}
|
|
11326
|
+
},
|
|
11065
11327
|
{
|
|
11066
11328
|
id: "anthropic/claude-sonnet-4.5",
|
|
11067
11329
|
match: {
|