@llmgateway/models 1.268.0 → 1.268.2
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/helpers.spec.js +22 -0
- package/dist/helpers.spec.js.map +1 -1
- package/dist/models/alibaba.d.ts +313 -18
- package/dist/models/alibaba.js +391 -30
- package/dist/models/alibaba.js.map +1 -1
- package/dist/models/tencent.d.ts +1 -0
- package/dist/models/tencent.js +1 -0
- package/dist/models/tencent.js.map +1 -1
- package/dist/models.d.ts +314 -18
- package/package.json +1 -1
package/dist/helpers.spec.js
CHANGED
|
@@ -75,6 +75,28 @@ describe("resolveTimeBasedPricing", () => {
|
|
|
75
75
|
cachedInputPrice: "0.007e-6",
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
+
const lateWindowMapping = {
|
|
79
|
+
...peakPricedMapping,
|
|
80
|
+
peakPricing: { ...peakPricedMapping.peakPricing, hoursUtc: [[15, 20]] },
|
|
81
|
+
};
|
|
82
|
+
const peakRates = {
|
|
83
|
+
inputPrice: "0.44e-6",
|
|
84
|
+
outputPrice: "1.32e-6",
|
|
85
|
+
cachedInputPrice: "0.014e-6",
|
|
86
|
+
};
|
|
87
|
+
const offPeakRates = {
|
|
88
|
+
inputPrice: "0.22e-6",
|
|
89
|
+
outputPrice: "0.66e-6",
|
|
90
|
+
cachedInputPrice: "0.007e-6",
|
|
91
|
+
};
|
|
92
|
+
it.each([
|
|
93
|
+
["Friday 23:00 Beijing", "2026-08-28T15:00:00Z", peakRates],
|
|
94
|
+
["Saturday 00:00 Beijing", "2026-08-28T16:00:00Z", offPeakRates],
|
|
95
|
+
["Sunday 23:00 Beijing", "2026-08-30T15:00:00Z", offPeakRates],
|
|
96
|
+
["Monday 00:00 Beijing", "2026-08-30T16:00:00Z", peakRates],
|
|
97
|
+
])("counts the off-peak day on the vendor clock, not in UTC (%s)", (_label, iso, expected) => {
|
|
98
|
+
expect(resolveTimeBasedPricing(lateWindowMapping, at(iso))).toEqual(expected);
|
|
99
|
+
});
|
|
78
100
|
it("keeps peak rates on weekdays", () => {
|
|
79
101
|
expect(resolveTimeBasedPricing(peakPricedMapping, at("2026-08-24T02:00:00Z"))).toEqual({
|
|
80
102
|
inputPrice: "0.44e-6",
|
package/dist/helpers.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.spec.js","sourceRoot":"","sources":["../src/helpers.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAIvD,MAAM,iBAAiB,GAAG;IACzB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,WAAW;IAC7B,WAAW,EAAE;QACZ,IAAI,EAAE;YACL,UAAU,EAAE,SAAS;YACrB,WAAW,EAAE,SAAS;YACtB,gBAAgB,EAAE,UAAU;SAC5B;QACD,OAAO,EAAE;YACR,UAAU,EAAE,SAAS;YACrB,WAAW,EAAE,SAAS;YACtB,gBAAgB,EAAE,UAAU;SAC5B;QACD,QAAQ,EAAE;YACT,CAAC,CAAC,EAAE,CAAC,CAAC;YACN,CAAC,CAAC,EAAE,EAAE,CAAC;SACP;QACD,WAAW,EAAE;YACZ,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;YAClB,gBAAgB,EAAE,GAAG;YACrB,aAAa,EAAE,cAAc;SAC7B;KACD;CAID,CAAC;AAEF,MAAM,EAAE,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;AAE1C,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,uEAAuE,EAAE,GAAG,EAAE;QAChF,MAAM,OAAO,GAAG;YACf,UAAU,EAAE,SAAS;YACrB,WAAW,EAAE,SAAS;YACtB,gBAAgB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AA8D,EAC9D,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QACzB,MAAM,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAClE,QAAQ,CACR,CAAC;IACH,CAAC,CACD,CAAC;IAEF,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACvC,MAAM,CACL,uBAAuB,CAAC,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAAC,CAAC,CACtE,CAAC,OAAO,CAAC;YACT,UAAU,EAAE,SAAS;YACrB,WAAW,EAAE,SAAS;YACtB,gBAAgB,EAAE,UAAU;SAC5B,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8DAA8D,EAAE,GAAG,EAAE;QACvE,MAAM,OAAO,GAAG;YACf,UAAU,EAAE,SAAS;YACrB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE;gBACZ,IAAI,EAAE;oBACL,UAAU,EAAE,SAAS;oBACrB,WAAW,EAAE,SAAS;iBACtB;gBACD,OAAO,EAAE;oBACR,UAAU,EAAE,SAAS;oBACrB,WAAW,EAAE,SAAS;iBACtB;gBACD,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aAClB;SAID,CAAC;QAEF,MAAM,CACL,uBAAuB,CAAC,OAAO,EAAE,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAC5D,CAAC,OAAO,CAAC;YACT,UAAU,EAAE,SAAS;YACrB,WAAW,EAAE,SAAS;YACtB,gBAAgB,EAAE,SAAS;SAC3B,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/dist/models/alibaba.d.ts
CHANGED
|
@@ -401,11 +401,44 @@ export declare const alibabaModels: [{
|
|
|
401
401
|
readonly test: "skip";
|
|
402
402
|
readonly providerId: "alibaba";
|
|
403
403
|
readonly externalId: "qwen3-coder-plus";
|
|
404
|
-
readonly inputPrice: "
|
|
405
|
-
readonly outputPrice: "
|
|
406
|
-
readonly cachedInputPrice: "
|
|
407
|
-
readonly cacheReadInputPrice: "0.
|
|
408
|
-
readonly cacheWriteInputPrice: "
|
|
404
|
+
readonly inputPrice: "1e-6";
|
|
405
|
+
readonly outputPrice: "5e-6";
|
|
406
|
+
readonly cachedInputPrice: "0.2e-6";
|
|
407
|
+
readonly cacheReadInputPrice: "0.1e-6";
|
|
408
|
+
readonly cacheWriteInputPrice: "1.25e-6";
|
|
409
|
+
readonly pricingTiers: [{
|
|
410
|
+
readonly name: "Up to 32K";
|
|
411
|
+
readonly upToTokens: 32000;
|
|
412
|
+
readonly inputPrice: "1e-6";
|
|
413
|
+
readonly outputPrice: "5e-6";
|
|
414
|
+
readonly cachedInputPrice: "0.2e-6";
|
|
415
|
+
readonly cacheReadInputPrice: "0.1e-6";
|
|
416
|
+
readonly cacheWriteInputPrice: "1.25e-6";
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "32K-128K";
|
|
419
|
+
readonly upToTokens: 128000;
|
|
420
|
+
readonly inputPrice: "1.8e-6";
|
|
421
|
+
readonly outputPrice: "9e-6";
|
|
422
|
+
readonly cachedInputPrice: "0.36e-6";
|
|
423
|
+
readonly cacheReadInputPrice: "0.18e-6";
|
|
424
|
+
readonly cacheWriteInputPrice: "2.25e-6";
|
|
425
|
+
}, {
|
|
426
|
+
readonly name: "128K-256K";
|
|
427
|
+
readonly upToTokens: 256000;
|
|
428
|
+
readonly inputPrice: "3e-6";
|
|
429
|
+
readonly outputPrice: "15e-6";
|
|
430
|
+
readonly cachedInputPrice: "0.6e-6";
|
|
431
|
+
readonly cacheReadInputPrice: "0.3e-6";
|
|
432
|
+
readonly cacheWriteInputPrice: "3.75e-6";
|
|
433
|
+
}, {
|
|
434
|
+
readonly name: "256K-1M";
|
|
435
|
+
readonly upToTokens: 1000000;
|
|
436
|
+
readonly inputPrice: "6e-6";
|
|
437
|
+
readonly outputPrice: "60e-6";
|
|
438
|
+
readonly cachedInputPrice: "1.2e-6";
|
|
439
|
+
readonly cacheReadInputPrice: "0.6e-6";
|
|
440
|
+
readonly cacheWriteInputPrice: "7.5e-6";
|
|
441
|
+
}];
|
|
409
442
|
readonly requestPrice: "0";
|
|
410
443
|
readonly contextSize: 1000000;
|
|
411
444
|
readonly maxOutput: 66000;
|
|
@@ -1089,11 +1122,36 @@ export declare const alibabaModels: [{
|
|
|
1089
1122
|
readonly test: "skip";
|
|
1090
1123
|
readonly providerId: "alibaba";
|
|
1091
1124
|
readonly externalId: "qwen3-max-preview";
|
|
1092
|
-
readonly inputPrice: "
|
|
1093
|
-
readonly outputPrice: "
|
|
1094
|
-
readonly cachedInputPrice: "0.
|
|
1095
|
-
readonly cacheReadInputPrice: "0.
|
|
1096
|
-
readonly cacheWriteInputPrice: "
|
|
1125
|
+
readonly inputPrice: "1.2e-6";
|
|
1126
|
+
readonly outputPrice: "6e-6";
|
|
1127
|
+
readonly cachedInputPrice: "0.24e-6";
|
|
1128
|
+
readonly cacheReadInputPrice: "0.12e-6";
|
|
1129
|
+
readonly cacheWriteInputPrice: "1.5e-6";
|
|
1130
|
+
readonly pricingTiers: [{
|
|
1131
|
+
readonly name: "Up to 32K";
|
|
1132
|
+
readonly upToTokens: 32000;
|
|
1133
|
+
readonly inputPrice: "1.2e-6";
|
|
1134
|
+
readonly outputPrice: "6e-6";
|
|
1135
|
+
readonly cachedInputPrice: "0.24e-6";
|
|
1136
|
+
readonly cacheReadInputPrice: "0.12e-6";
|
|
1137
|
+
readonly cacheWriteInputPrice: "1.5e-6";
|
|
1138
|
+
}, {
|
|
1139
|
+
readonly name: "32K-128K";
|
|
1140
|
+
readonly upToTokens: 128000;
|
|
1141
|
+
readonly inputPrice: "2.4e-6";
|
|
1142
|
+
readonly outputPrice: "12e-6";
|
|
1143
|
+
readonly cachedInputPrice: "0.48e-6";
|
|
1144
|
+
readonly cacheReadInputPrice: "0.24e-6";
|
|
1145
|
+
readonly cacheWriteInputPrice: "3e-6";
|
|
1146
|
+
}, {
|
|
1147
|
+
readonly name: "128K-256K";
|
|
1148
|
+
readonly upToTokens: 256000;
|
|
1149
|
+
readonly inputPrice: "3e-6";
|
|
1150
|
+
readonly outputPrice: "15e-6";
|
|
1151
|
+
readonly cachedInputPrice: "0.6e-6";
|
|
1152
|
+
readonly cacheReadInputPrice: "0.3e-6";
|
|
1153
|
+
readonly cacheWriteInputPrice: "3.75e-6";
|
|
1154
|
+
}];
|
|
1097
1155
|
readonly requestPrice: "0";
|
|
1098
1156
|
readonly contextSize: 256000;
|
|
1099
1157
|
readonly maxOutput: 32800;
|
|
@@ -1161,13 +1219,18 @@ export declare const alibabaModels: [{
|
|
|
1161
1219
|
readonly cacheWriteInputPrice: "2.0625e-6";
|
|
1162
1220
|
}, {
|
|
1163
1221
|
readonly id: "us-virginia";
|
|
1222
|
+
readonly inputPrice: "1.65e-6";
|
|
1223
|
+
readonly outputPrice: "4.951e-6";
|
|
1224
|
+
readonly cachedInputPrice: "0.33e-6";
|
|
1225
|
+
readonly cacheReadInputPrice: "0.165e-6";
|
|
1226
|
+
readonly cacheWriteInputPrice: "2.0625e-6";
|
|
1164
1227
|
}, {
|
|
1165
1228
|
readonly id: "cn-beijing";
|
|
1166
|
-
readonly inputPrice: "1.
|
|
1167
|
-
readonly outputPrice: "
|
|
1168
|
-
readonly cachedInputPrice: "0.
|
|
1169
|
-
readonly cacheReadInputPrice: "0.
|
|
1170
|
-
readonly cacheWriteInputPrice: "2.
|
|
1229
|
+
readonly inputPrice: "1.65e-6";
|
|
1230
|
+
readonly outputPrice: "4.951e-6";
|
|
1231
|
+
readonly cachedInputPrice: "0.33e-6";
|
|
1232
|
+
readonly cacheReadInputPrice: "0.165e-6";
|
|
1233
|
+
readonly cacheWriteInputPrice: "2.0625e-6";
|
|
1171
1234
|
}];
|
|
1172
1235
|
readonly requestPrice: "0";
|
|
1173
1236
|
readonly contextSize: 1000000;
|
|
@@ -1279,8 +1342,52 @@ export declare const alibabaModels: [{
|
|
|
1279
1342
|
}];
|
|
1280
1343
|
}, {
|
|
1281
1344
|
readonly id: "us-virginia";
|
|
1345
|
+
readonly inputPrice: "0.276e-6";
|
|
1346
|
+
readonly outputPrice: "1.101e-6";
|
|
1347
|
+
readonly cachedInputPrice: "0.0552e-6";
|
|
1348
|
+
readonly cacheReadInputPrice: "0.0276e-6";
|
|
1349
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
1350
|
+
readonly pricingTiers: [{
|
|
1351
|
+
readonly name: "Up to 256K";
|
|
1352
|
+
readonly upToTokens: 256000;
|
|
1353
|
+
readonly inputPrice: "0.276e-6";
|
|
1354
|
+
readonly outputPrice: "1.101e-6";
|
|
1355
|
+
readonly cachedInputPrice: "0.0552e-6";
|
|
1356
|
+
readonly cacheReadInputPrice: "0.0276e-6";
|
|
1357
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly name: "Over 256K";
|
|
1360
|
+
readonly upToTokens: number;
|
|
1361
|
+
readonly inputPrice: "0.826e-6";
|
|
1362
|
+
readonly outputPrice: "3.301e-6";
|
|
1363
|
+
readonly cachedInputPrice: "0.1652e-6";
|
|
1364
|
+
readonly cacheReadInputPrice: "0.0826e-6";
|
|
1365
|
+
readonly cacheWriteInputPrice: "1.0325e-6";
|
|
1366
|
+
}];
|
|
1282
1367
|
}, {
|
|
1283
1368
|
readonly id: "cn-beijing";
|
|
1369
|
+
readonly inputPrice: "0.276e-6";
|
|
1370
|
+
readonly outputPrice: "1.101e-6";
|
|
1371
|
+
readonly cachedInputPrice: "0.0552e-6";
|
|
1372
|
+
readonly cacheReadInputPrice: "0.0276e-6";
|
|
1373
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
1374
|
+
readonly pricingTiers: [{
|
|
1375
|
+
readonly name: "Up to 256K";
|
|
1376
|
+
readonly upToTokens: 256000;
|
|
1377
|
+
readonly inputPrice: "0.276e-6";
|
|
1378
|
+
readonly outputPrice: "1.101e-6";
|
|
1379
|
+
readonly cachedInputPrice: "0.0552e-6";
|
|
1380
|
+
readonly cacheReadInputPrice: "0.0276e-6";
|
|
1381
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
1382
|
+
}, {
|
|
1383
|
+
readonly name: "Over 256K";
|
|
1384
|
+
readonly upToTokens: number;
|
|
1385
|
+
readonly inputPrice: "0.826e-6";
|
|
1386
|
+
readonly outputPrice: "3.301e-6";
|
|
1387
|
+
readonly cachedInputPrice: "0.1652e-6";
|
|
1388
|
+
readonly cacheReadInputPrice: "0.0826e-6";
|
|
1389
|
+
readonly cacheWriteInputPrice: "1.0325e-6";
|
|
1390
|
+
}];
|
|
1284
1391
|
}];
|
|
1285
1392
|
readonly requestPrice: "0";
|
|
1286
1393
|
readonly contextSize: 1000000;
|
|
@@ -1338,10 +1445,100 @@ export declare const alibabaModels: [{
|
|
|
1338
1445
|
readonly id: "singapore";
|
|
1339
1446
|
}, {
|
|
1340
1447
|
readonly id: "eu-frankfurt";
|
|
1448
|
+
readonly inputPrice: "0.028e-6";
|
|
1449
|
+
readonly outputPrice: "0.110e-6";
|
|
1450
|
+
readonly cachedInputPrice: "0.0056e-6";
|
|
1451
|
+
readonly cacheReadInputPrice: "0.0028e-6";
|
|
1452
|
+
readonly cacheWriteInputPrice: "0.035e-6";
|
|
1453
|
+
readonly pricingTiers: [{
|
|
1454
|
+
readonly name: "Up to 32K";
|
|
1455
|
+
readonly upToTokens: 32000;
|
|
1456
|
+
readonly inputPrice: "0.028e-6";
|
|
1457
|
+
readonly outputPrice: "0.110e-6";
|
|
1458
|
+
readonly cachedInputPrice: "0.0056e-6";
|
|
1459
|
+
readonly cacheReadInputPrice: "0.0028e-6";
|
|
1460
|
+
readonly cacheWriteInputPrice: "0.035e-6";
|
|
1461
|
+
}, {
|
|
1462
|
+
readonly name: "32K-256K";
|
|
1463
|
+
readonly upToTokens: 256000;
|
|
1464
|
+
readonly inputPrice: "0.083e-6";
|
|
1465
|
+
readonly outputPrice: "0.330e-6";
|
|
1466
|
+
readonly cachedInputPrice: "0.0166e-6";
|
|
1467
|
+
readonly cacheReadInputPrice: "0.0083e-6";
|
|
1468
|
+
readonly cacheWriteInputPrice: "0.10375e-6";
|
|
1469
|
+
}, {
|
|
1470
|
+
readonly name: "256K-1M";
|
|
1471
|
+
readonly upToTokens: 1000000;
|
|
1472
|
+
readonly inputPrice: "0.165e-6";
|
|
1473
|
+
readonly outputPrice: "0.660e-6";
|
|
1474
|
+
readonly cachedInputPrice: "0.033e-6";
|
|
1475
|
+
readonly cacheReadInputPrice: "0.0165e-6";
|
|
1476
|
+
readonly cacheWriteInputPrice: "0.20625e-6";
|
|
1477
|
+
}];
|
|
1341
1478
|
}, {
|
|
1342
1479
|
readonly id: "us-virginia";
|
|
1480
|
+
readonly inputPrice: "0.028e-6";
|
|
1481
|
+
readonly outputPrice: "0.110e-6";
|
|
1482
|
+
readonly cachedInputPrice: "0.0056e-6";
|
|
1483
|
+
readonly cacheReadInputPrice: "0.0028e-6";
|
|
1484
|
+
readonly cacheWriteInputPrice: "0.035e-6";
|
|
1485
|
+
readonly pricingTiers: [{
|
|
1486
|
+
readonly name: "Up to 32K";
|
|
1487
|
+
readonly upToTokens: 32000;
|
|
1488
|
+
readonly inputPrice: "0.028e-6";
|
|
1489
|
+
readonly outputPrice: "0.110e-6";
|
|
1490
|
+
readonly cachedInputPrice: "0.0056e-6";
|
|
1491
|
+
readonly cacheReadInputPrice: "0.0028e-6";
|
|
1492
|
+
readonly cacheWriteInputPrice: "0.035e-6";
|
|
1493
|
+
}, {
|
|
1494
|
+
readonly name: "32K-256K";
|
|
1495
|
+
readonly upToTokens: 256000;
|
|
1496
|
+
readonly inputPrice: "0.083e-6";
|
|
1497
|
+
readonly outputPrice: "0.330e-6";
|
|
1498
|
+
readonly cachedInputPrice: "0.0166e-6";
|
|
1499
|
+
readonly cacheReadInputPrice: "0.0083e-6";
|
|
1500
|
+
readonly cacheWriteInputPrice: "0.10375e-6";
|
|
1501
|
+
}, {
|
|
1502
|
+
readonly name: "256K-1M";
|
|
1503
|
+
readonly upToTokens: 1000000;
|
|
1504
|
+
readonly inputPrice: "0.165e-6";
|
|
1505
|
+
readonly outputPrice: "0.660e-6";
|
|
1506
|
+
readonly cachedInputPrice: "0.033e-6";
|
|
1507
|
+
readonly cacheReadInputPrice: "0.0165e-6";
|
|
1508
|
+
readonly cacheWriteInputPrice: "0.20625e-6";
|
|
1509
|
+
}];
|
|
1343
1510
|
}, {
|
|
1344
1511
|
readonly id: "cn-beijing";
|
|
1512
|
+
readonly inputPrice: "0.028e-6";
|
|
1513
|
+
readonly outputPrice: "0.110e-6";
|
|
1514
|
+
readonly cachedInputPrice: "0.0056e-6";
|
|
1515
|
+
readonly cacheReadInputPrice: "0.0028e-6";
|
|
1516
|
+
readonly cacheWriteInputPrice: "0.035e-6";
|
|
1517
|
+
readonly pricingTiers: [{
|
|
1518
|
+
readonly name: "Up to 32K";
|
|
1519
|
+
readonly upToTokens: 32000;
|
|
1520
|
+
readonly inputPrice: "0.028e-6";
|
|
1521
|
+
readonly outputPrice: "0.110e-6";
|
|
1522
|
+
readonly cachedInputPrice: "0.0056e-6";
|
|
1523
|
+
readonly cacheReadInputPrice: "0.0028e-6";
|
|
1524
|
+
readonly cacheWriteInputPrice: "0.035e-6";
|
|
1525
|
+
}, {
|
|
1526
|
+
readonly name: "32K-256K";
|
|
1527
|
+
readonly upToTokens: 256000;
|
|
1528
|
+
readonly inputPrice: "0.083e-6";
|
|
1529
|
+
readonly outputPrice: "0.330e-6";
|
|
1530
|
+
readonly cachedInputPrice: "0.0166e-6";
|
|
1531
|
+
readonly cacheReadInputPrice: "0.0083e-6";
|
|
1532
|
+
readonly cacheWriteInputPrice: "0.10375e-6";
|
|
1533
|
+
}, {
|
|
1534
|
+
readonly name: "256K-1M";
|
|
1535
|
+
readonly upToTokens: 1000000;
|
|
1536
|
+
readonly inputPrice: "0.165e-6";
|
|
1537
|
+
readonly outputPrice: "0.660e-6";
|
|
1538
|
+
readonly cachedInputPrice: "0.033e-6";
|
|
1539
|
+
readonly cacheReadInputPrice: "0.0165e-6";
|
|
1540
|
+
readonly cacheWriteInputPrice: "0.20625e-6";
|
|
1541
|
+
}];
|
|
1345
1542
|
}];
|
|
1346
1543
|
readonly requestPrice: "0";
|
|
1347
1544
|
readonly contextSize: 1000000;
|
|
@@ -2559,6 +2756,22 @@ export declare const alibabaModels: [{
|
|
|
2559
2756
|
readonly inputPrice: "0.5e-6";
|
|
2560
2757
|
readonly outputPrice: "3e-6";
|
|
2561
2758
|
readonly cachedInputPrice: "0.05e-6";
|
|
2759
|
+
readonly cacheWriteInputPrice: "0.625e-6";
|
|
2760
|
+
readonly pricingTiers: [{
|
|
2761
|
+
readonly name: "Up to 256K";
|
|
2762
|
+
readonly upToTokens: 256000;
|
|
2763
|
+
readonly inputPrice: "0.5e-6";
|
|
2764
|
+
readonly outputPrice: "3e-6";
|
|
2765
|
+
readonly cachedInputPrice: "0.05e-6";
|
|
2766
|
+
readonly cacheWriteInputPrice: "0.625e-6";
|
|
2767
|
+
}, {
|
|
2768
|
+
readonly name: "Over 256K";
|
|
2769
|
+
readonly upToTokens: number;
|
|
2770
|
+
readonly inputPrice: "2e-6";
|
|
2771
|
+
readonly outputPrice: "6e-6";
|
|
2772
|
+
readonly cachedInputPrice: "0.2e-6";
|
|
2773
|
+
readonly cacheWriteInputPrice: "2.5e-6";
|
|
2774
|
+
}];
|
|
2562
2775
|
readonly regions: [{
|
|
2563
2776
|
readonly id: "singapore";
|
|
2564
2777
|
}, {
|
|
@@ -2566,13 +2779,67 @@ export declare const alibabaModels: [{
|
|
|
2566
2779
|
readonly inputPrice: "0.276e-6";
|
|
2567
2780
|
readonly outputPrice: "1.651e-6";
|
|
2568
2781
|
readonly cachedInputPrice: "0.0276e-6";
|
|
2782
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
2783
|
+
readonly pricingTiers: [{
|
|
2784
|
+
readonly name: "Up to 256K";
|
|
2785
|
+
readonly upToTokens: 256000;
|
|
2786
|
+
readonly inputPrice: "0.276e-6";
|
|
2787
|
+
readonly outputPrice: "1.651e-6";
|
|
2788
|
+
readonly cachedInputPrice: "0.0276e-6";
|
|
2789
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
2790
|
+
}, {
|
|
2791
|
+
readonly name: "Over 256K";
|
|
2792
|
+
readonly upToTokens: number;
|
|
2793
|
+
readonly inputPrice: "1.101e-6";
|
|
2794
|
+
readonly outputPrice: "6.602e-6";
|
|
2795
|
+
readonly cachedInputPrice: "0.1101e-6";
|
|
2796
|
+
readonly cacheWriteInputPrice: "1.37625e-6";
|
|
2797
|
+
}];
|
|
2569
2798
|
}, {
|
|
2570
2799
|
readonly id: "us-virginia";
|
|
2800
|
+
readonly inputPrice: "0.276e-6";
|
|
2801
|
+
readonly outputPrice: "1.651e-6";
|
|
2802
|
+
readonly cachedInputPrice: "0.0276e-6";
|
|
2803
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
2804
|
+
readonly pricingTiers: [{
|
|
2805
|
+
readonly name: "Up to 256K";
|
|
2806
|
+
readonly upToTokens: 256000;
|
|
2807
|
+
readonly inputPrice: "0.276e-6";
|
|
2808
|
+
readonly outputPrice: "1.651e-6";
|
|
2809
|
+
readonly cachedInputPrice: "0.0276e-6";
|
|
2810
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
2811
|
+
}, {
|
|
2812
|
+
readonly name: "Over 256K";
|
|
2813
|
+
readonly upToTokens: number;
|
|
2814
|
+
readonly inputPrice: "1.101e-6";
|
|
2815
|
+
readonly outputPrice: "6.602e-6";
|
|
2816
|
+
readonly cachedInputPrice: "0.1101e-6";
|
|
2817
|
+
readonly cacheWriteInputPrice: "1.37625e-6";
|
|
2818
|
+
}];
|
|
2571
2819
|
}, {
|
|
2572
2820
|
readonly id: "cn-beijing";
|
|
2821
|
+
readonly inputPrice: "0.276e-6";
|
|
2822
|
+
readonly outputPrice: "1.651e-6";
|
|
2823
|
+
readonly cachedInputPrice: "0.0276e-6";
|
|
2824
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
2825
|
+
readonly pricingTiers: [{
|
|
2826
|
+
readonly name: "Up to 256K";
|
|
2827
|
+
readonly upToTokens: 256000;
|
|
2828
|
+
readonly inputPrice: "0.276e-6";
|
|
2829
|
+
readonly outputPrice: "1.651e-6";
|
|
2830
|
+
readonly cachedInputPrice: "0.0276e-6";
|
|
2831
|
+
readonly cacheWriteInputPrice: "0.345e-6";
|
|
2832
|
+
}, {
|
|
2833
|
+
readonly name: "Over 256K";
|
|
2834
|
+
readonly upToTokens: number;
|
|
2835
|
+
readonly inputPrice: "1.101e-6";
|
|
2836
|
+
readonly outputPrice: "6.602e-6";
|
|
2837
|
+
readonly cachedInputPrice: "0.1101e-6";
|
|
2838
|
+
readonly cacheWriteInputPrice: "1.37625e-6";
|
|
2839
|
+
}];
|
|
2573
2840
|
}];
|
|
2574
2841
|
readonly requestPrice: "0";
|
|
2575
|
-
readonly contextSize:
|
|
2842
|
+
readonly contextSize: 1000000;
|
|
2576
2843
|
readonly maxOutput: 65536;
|
|
2577
2844
|
readonly reasoning: true;
|
|
2578
2845
|
readonly reasoningEfforts: ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
@@ -2595,16 +2862,22 @@ export declare const alibabaModels: [{
|
|
|
2595
2862
|
readonly providers: [{
|
|
2596
2863
|
readonly providerId: "alibaba";
|
|
2597
2864
|
readonly externalId: "qwen3.6-35b-a3b";
|
|
2598
|
-
readonly inputPrice: "0.
|
|
2599
|
-
readonly outputPrice: "
|
|
2865
|
+
readonly inputPrice: "0.375e-6";
|
|
2866
|
+
readonly outputPrice: "2.25e-6";
|
|
2600
2867
|
readonly regions: [{
|
|
2601
2868
|
readonly id: "singapore";
|
|
2602
2869
|
}, {
|
|
2603
2870
|
readonly id: "eu-frankfurt";
|
|
2871
|
+
readonly inputPrice: "0.248e-6";
|
|
2872
|
+
readonly outputPrice: "1.485e-6";
|
|
2604
2873
|
}, {
|
|
2605
2874
|
readonly id: "us-virginia";
|
|
2875
|
+
readonly inputPrice: "0.248e-6";
|
|
2876
|
+
readonly outputPrice: "1.485e-6";
|
|
2606
2877
|
}, {
|
|
2607
2878
|
readonly id: "cn-beijing";
|
|
2879
|
+
readonly inputPrice: "0.248e-6";
|
|
2880
|
+
readonly outputPrice: "1.485e-6";
|
|
2608
2881
|
}];
|
|
2609
2882
|
readonly requestPrice: "0";
|
|
2610
2883
|
readonly contextSize: 262144;
|
|
@@ -2670,6 +2943,28 @@ export declare const alibabaModels: [{
|
|
|
2670
2943
|
readonly id: "singapore";
|
|
2671
2944
|
}, {
|
|
2672
2945
|
readonly id: "eu-frankfurt";
|
|
2946
|
+
readonly inputPrice: "0.165e-6";
|
|
2947
|
+
readonly outputPrice: "0.99e-6";
|
|
2948
|
+
readonly cachedInputPrice: "0.033e-6";
|
|
2949
|
+
readonly cacheReadInputPrice: "0.0165e-6";
|
|
2950
|
+
readonly cacheWriteInputPrice: "0.20625e-6";
|
|
2951
|
+
readonly pricingTiers: [{
|
|
2952
|
+
readonly name: "Up to 256K";
|
|
2953
|
+
readonly upToTokens: 256000;
|
|
2954
|
+
readonly inputPrice: "0.165e-6";
|
|
2955
|
+
readonly outputPrice: "0.99e-6";
|
|
2956
|
+
readonly cachedInputPrice: "0.033e-6";
|
|
2957
|
+
readonly cacheReadInputPrice: "0.0165e-6";
|
|
2958
|
+
readonly cacheWriteInputPrice: "0.20625e-6";
|
|
2959
|
+
}, {
|
|
2960
|
+
readonly name: "Over 256K";
|
|
2961
|
+
readonly upToTokens: number;
|
|
2962
|
+
readonly inputPrice: "0.66e-6";
|
|
2963
|
+
readonly outputPrice: "3.961e-6";
|
|
2964
|
+
readonly cachedInputPrice: "0.132e-6";
|
|
2965
|
+
readonly cacheReadInputPrice: "0.066e-6";
|
|
2966
|
+
readonly cacheWriteInputPrice: "0.825e-6";
|
|
2967
|
+
}];
|
|
2673
2968
|
}, {
|
|
2674
2969
|
readonly id: "us-virginia";
|
|
2675
2970
|
readonly inputPrice: "0.165e-6";
|