@pydantic/genai-prices 0.0.39 → 0.0.41
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 +309 -234
- package/dist/index.cjs +2 -2
- package/dist/index.js +90 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1822,7 +1822,12 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
1822
1822
|
{
|
|
1823
1823
|
path: "promptTokenCount",
|
|
1824
1824
|
dest: "input_tokens",
|
|
1825
|
-
required: !
|
|
1825
|
+
required: !1
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
path: "cachedContentTokenCount",
|
|
1829
|
+
dest: "cache_read_tokens",
|
|
1830
|
+
required: !1
|
|
1826
1831
|
},
|
|
1827
1832
|
{
|
|
1828
1833
|
path: [
|
|
@@ -1831,17 +1836,17 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
1831
1836
|
type: "array-match",
|
|
1832
1837
|
field: "modality",
|
|
1833
1838
|
match: {
|
|
1834
|
-
equals: "
|
|
1839
|
+
equals: "AUDIO"
|
|
1835
1840
|
}
|
|
1836
1841
|
},
|
|
1837
1842
|
"tokenCount"
|
|
1838
1843
|
],
|
|
1839
|
-
dest: "
|
|
1844
|
+
dest: "cache_audio_read_tokens",
|
|
1840
1845
|
required: !1
|
|
1841
1846
|
},
|
|
1842
1847
|
{
|
|
1843
1848
|
path: [
|
|
1844
|
-
"
|
|
1849
|
+
"promptTokensDetails",
|
|
1845
1850
|
{
|
|
1846
1851
|
type: "array-match",
|
|
1847
1852
|
field: "modality",
|
|
@@ -1851,12 +1856,12 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
1851
1856
|
},
|
|
1852
1857
|
"tokenCount"
|
|
1853
1858
|
],
|
|
1854
|
-
dest: "
|
|
1859
|
+
dest: "input_audio_tokens",
|
|
1855
1860
|
required: !1
|
|
1856
1861
|
},
|
|
1857
1862
|
{
|
|
1858
1863
|
path: [
|
|
1859
|
-
"
|
|
1864
|
+
"candidatesTokensDetails",
|
|
1860
1865
|
{
|
|
1861
1866
|
type: "array-match",
|
|
1862
1867
|
field: "modality",
|
|
@@ -1866,18 +1871,23 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
1866
1871
|
},
|
|
1867
1872
|
"tokenCount"
|
|
1868
1873
|
],
|
|
1869
|
-
dest: "
|
|
1874
|
+
dest: "output_audio_tokens",
|
|
1870
1875
|
required: !1
|
|
1871
1876
|
},
|
|
1872
1877
|
{
|
|
1873
1878
|
path: "candidatesTokenCount",
|
|
1874
1879
|
dest: "output_tokens",
|
|
1875
|
-
required: !
|
|
1880
|
+
required: !1
|
|
1876
1881
|
},
|
|
1877
1882
|
{
|
|
1878
1883
|
path: "thoughtsTokenCount",
|
|
1879
1884
|
dest: "output_tokens",
|
|
1880
1885
|
required: !1
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
path: "toolUsePromptTokenCount",
|
|
1889
|
+
dest: "output_tokens",
|
|
1890
|
+
required: !1
|
|
1881
1891
|
}
|
|
1882
1892
|
]
|
|
1883
1893
|
},
|
|
@@ -2290,6 +2300,43 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
2290
2300
|
}
|
|
2291
2301
|
}
|
|
2292
2302
|
},
|
|
2303
|
+
{
|
|
2304
|
+
id: "gemini-3-pro-preview",
|
|
2305
|
+
name: "Gemini 3 Pro Preview",
|
|
2306
|
+
description: "The best model in the world for multimodal understanding, and our most powerful agentic and vibe-coding model yet.",
|
|
2307
|
+
match: {
|
|
2308
|
+
starts_with: "gemini-3-pro-preview"
|
|
2309
|
+
},
|
|
2310
|
+
prices: {
|
|
2311
|
+
input_mtok: {
|
|
2312
|
+
base: 2,
|
|
2313
|
+
tiers: [
|
|
2314
|
+
{
|
|
2315
|
+
start: 2e5,
|
|
2316
|
+
price: 4
|
|
2317
|
+
}
|
|
2318
|
+
]
|
|
2319
|
+
},
|
|
2320
|
+
cache_read_mtok: {
|
|
2321
|
+
base: 0.2,
|
|
2322
|
+
tiers: [
|
|
2323
|
+
{
|
|
2324
|
+
start: 2e5,
|
|
2325
|
+
price: 0.4
|
|
2326
|
+
}
|
|
2327
|
+
]
|
|
2328
|
+
},
|
|
2329
|
+
output_mtok: {
|
|
2330
|
+
base: 12,
|
|
2331
|
+
tiers: [
|
|
2332
|
+
{
|
|
2333
|
+
start: 2e5,
|
|
2334
|
+
price: 18
|
|
2335
|
+
}
|
|
2336
|
+
]
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
},
|
|
2293
2340
|
{
|
|
2294
2341
|
id: "gemini-embedding-001",
|
|
2295
2342
|
match: {
|
|
@@ -3720,6 +3767,17 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
3720
3767
|
output_mtok: 6
|
|
3721
3768
|
}
|
|
3722
3769
|
},
|
|
3770
|
+
{
|
|
3771
|
+
id: "computer-use",
|
|
3772
|
+
name: "Computer use",
|
|
3773
|
+
match: {
|
|
3774
|
+
starts_with: "computer-use"
|
|
3775
|
+
},
|
|
3776
|
+
prices: {
|
|
3777
|
+
input_mtok: 3,
|
|
3778
|
+
output_mtok: 12
|
|
3779
|
+
}
|
|
3780
|
+
},
|
|
3723
3781
|
{
|
|
3724
3782
|
id: "curie",
|
|
3725
3783
|
match: {
|
|
@@ -4390,9 +4448,6 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
4390
4448
|
{
|
|
4391
4449
|
equals: "gpt-5.1-codex"
|
|
4392
4450
|
},
|
|
4393
|
-
{
|
|
4394
|
-
equals: "gpt-5.1-mini"
|
|
4395
|
-
},
|
|
4396
4451
|
{
|
|
4397
4452
|
equals: "gpt-5.1-chat-latest"
|
|
4398
4453
|
}
|
|
@@ -4405,6 +4460,26 @@ Compared to other leading proprietary and open-weights models Command A delivers
|
|
|
4405
4460
|
output_mtok: 10
|
|
4406
4461
|
}
|
|
4407
4462
|
},
|
|
4463
|
+
{
|
|
4464
|
+
id: "gpt-5.1-codex-mini",
|
|
4465
|
+
name: "GPT-5.1 Codex Mini",
|
|
4466
|
+
match: {
|
|
4467
|
+
or: [
|
|
4468
|
+
{
|
|
4469
|
+
equals: "gpt-5.1-codex-mini"
|
|
4470
|
+
},
|
|
4471
|
+
{
|
|
4472
|
+
equals: "gpt-5.1-mini"
|
|
4473
|
+
}
|
|
4474
|
+
]
|
|
4475
|
+
},
|
|
4476
|
+
context_window: 4e5,
|
|
4477
|
+
prices: {
|
|
4478
|
+
input_mtok: 0.25,
|
|
4479
|
+
cache_read_mtok: 0.025,
|
|
4480
|
+
output_mtok: 2
|
|
4481
|
+
}
|
|
4482
|
+
},
|
|
4408
4483
|
{
|
|
4409
4484
|
id: "gpt-realtime",
|
|
4410
4485
|
match: {
|
|
@@ -11931,12 +12006,12 @@ function S(t) {
|
|
|
11931
12006
|
e !== null && (g = e);
|
|
11932
12007
|
})) : (b = Promise.resolve(t), g = t));
|
|
11933
12008
|
}
|
|
11934
|
-
function
|
|
12009
|
+
function C(t) {
|
|
11935
12010
|
f = t;
|
|
11936
12011
|
}
|
|
11937
12012
|
function Q(t) {
|
|
11938
12013
|
t({
|
|
11939
|
-
onCalc:
|
|
12014
|
+
onCalc: C,
|
|
11940
12015
|
remoteDataUrl: G,
|
|
11941
12016
|
setProviderData: S
|
|
11942
12017
|
});
|
|
@@ -11972,7 +12047,7 @@ function E(t, e, a) {
|
|
|
11972
12047
|
}
|
|
11973
12048
|
if (!_.guard(e))
|
|
11974
12049
|
throw new Error(`Expected response data to be a mapping object, got ${c(e)}`);
|
|
11975
|
-
const o = q(i.model_path, e,
|
|
12050
|
+
const o = q(i.model_path, e, R, !1, []), m = y(i.root), r = q(m, e, _, !0, []), s = {};
|
|
11976
12051
|
for (const n of i.mappings) {
|
|
11977
12052
|
const u = q(n.path, r, z, n.required, m);
|
|
11978
12053
|
if (u !== null) {
|
|
@@ -12048,7 +12123,7 @@ function c(t) {
|
|
|
12048
12123
|
const _ = {
|
|
12049
12124
|
guard: (t) => c(t) === "mapping",
|
|
12050
12125
|
name: "mapping"
|
|
12051
|
-
},
|
|
12126
|
+
}, R = {
|
|
12052
12127
|
guard: (t) => typeof t == "string",
|
|
12053
12128
|
name: "string"
|
|
12054
12129
|
}, z = {
|