@pydantic/genai-prices 0.0.62 → 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 +278 -38
- package/dist/index.cjs +3 -3
- package/dist/index.js +244 -4
- 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",
|
|
@@ -896,6 +925,18 @@ const Q = [
|
|
|
896
925
|
output_mtok: 25
|
|
897
926
|
}
|
|
898
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
|
+
},
|
|
899
940
|
{
|
|
900
941
|
id: "global.anthropic.claude-sonnet-4-20250514-v1:0",
|
|
901
942
|
match: {
|
|
@@ -964,6 +1005,39 @@ const Q = [
|
|
|
964
1005
|
}
|
|
965
1006
|
}
|
|
966
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
|
+
},
|
|
967
1041
|
{
|
|
968
1042
|
id: "meta.llama3-1-70b-instruct-v1:0",
|
|
969
1043
|
name: "Llama 3.1 70B Instruct",
|
|
@@ -1085,6 +1159,61 @@ const Q = [
|
|
|
1085
1159
|
output_mtok: 0.66
|
|
1086
1160
|
}
|
|
1087
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
|
+
},
|
|
1088
1217
|
{
|
|
1089
1218
|
id: "mistral.mistral-7b-instruct-v0:2",
|
|
1090
1219
|
name: "Mistral 7B Instruct",
|
|
@@ -1107,6 +1236,17 @@ const Q = [
|
|
|
1107
1236
|
output_mtok: 12
|
|
1108
1237
|
}
|
|
1109
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
|
+
},
|
|
1110
1250
|
{
|
|
1111
1251
|
id: "mistral.mistral-small-2402-v1:0",
|
|
1112
1252
|
name: "Mistral Small (24.02)",
|
|
@@ -1140,6 +1280,28 @@ const Q = [
|
|
|
1140
1280
|
output_mtok: 6
|
|
1141
1281
|
}
|
|
1142
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
|
+
},
|
|
1143
1305
|
{
|
|
1144
1306
|
id: "nvidia.nemotron-nano-3-30b:0",
|
|
1145
1307
|
name: "Nemotron 3 Nano 30B",
|
|
@@ -1573,6 +1735,37 @@ const Q = [
|
|
|
1573
1735
|
output_mtok: 27.5
|
|
1574
1736
|
}
|
|
1575
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
|
+
},
|
|
1576
1769
|
{
|
|
1577
1770
|
id: "regional.anthropic.claude-sonnet-4-20250514-v1:0",
|
|
1578
1771
|
match: {
|
|
@@ -2560,11 +2753,10 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
2560
2753
|
]
|
|
2561
2754
|
},
|
|
2562
2755
|
context_window: 1e6,
|
|
2563
|
-
price_comments: "Standard (non-promotional) pricing. DeepSeek is offering a temporary 75% promotional discount that is not reflected here.",
|
|
2564
2756
|
prices: {
|
|
2565
|
-
input_mtok:
|
|
2566
|
-
cache_read_mtok:
|
|
2567
|
-
output_mtok:
|
|
2757
|
+
input_mtok: 0.435,
|
|
2758
|
+
cache_read_mtok: 3625e-6,
|
|
2759
|
+
output_mtok: 0.87
|
|
2568
2760
|
}
|
|
2569
2761
|
}
|
|
2570
2762
|
]
|
|
@@ -3154,6 +3346,33 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
3154
3346
|
output_mtok: 25
|
|
3155
3347
|
}
|
|
3156
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
|
+
},
|
|
3157
3376
|
{
|
|
3158
3377
|
id: "gemini-1.0-pro-vision-001",
|
|
3159
3378
|
name: "gemini 1.0 pro vision",
|
|
@@ -11084,6 +11303,27 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
11084
11303
|
output_mtok: 25
|
|
11085
11304
|
}
|
|
11086
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
|
+
},
|
|
11087
11327
|
{
|
|
11088
11328
|
id: "anthropic/claude-sonnet-4.5",
|
|
11089
11329
|
match: {
|