pricetoken 0.3.1 → 0.4.0

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/index.js CHANGED
@@ -276,6 +276,45 @@ var STATIC_PRICING = [
276
276
  confidence: "high",
277
277
  lastUpdated: null
278
278
  },
279
+ {
280
+ modelId: "gpt-5.1",
281
+ provider: "openai",
282
+ displayName: "GPT-5.1",
283
+ inputPerMTok: 1.25,
284
+ outputPerMTok: 10,
285
+ contextWindow: 4e5,
286
+ maxOutputTokens: 128e3,
287
+ source: "seed",
288
+ status: "active",
289
+ confidence: "high",
290
+ lastUpdated: null
291
+ },
292
+ {
293
+ modelId: "o3-pro",
294
+ provider: "openai",
295
+ displayName: "o3 Pro",
296
+ inputPerMTok: 20,
297
+ outputPerMTok: 80,
298
+ contextWindow: 2e5,
299
+ maxOutputTokens: 1e5,
300
+ source: "seed",
301
+ status: "active",
302
+ confidence: "high",
303
+ lastUpdated: null
304
+ },
305
+ {
306
+ modelId: "o3-mini",
307
+ provider: "openai",
308
+ displayName: "o3 Mini",
309
+ inputPerMTok: 1.1,
310
+ outputPerMTok: 4.4,
311
+ contextWindow: 2e5,
312
+ maxOutputTokens: 1e5,
313
+ source: "seed",
314
+ status: "active",
315
+ confidence: "high",
316
+ lastUpdated: null
317
+ },
279
318
  // Google
280
319
  {
281
320
  modelId: "gemini-2.5-pro",
@@ -342,6 +381,32 @@ var STATIC_PRICING = [
342
381
  confidence: "high",
343
382
  lastUpdated: null
344
383
  },
384
+ {
385
+ modelId: "gemini-3.1-pro-preview",
386
+ provider: "google",
387
+ displayName: "Gemini 3.1 Pro Preview",
388
+ inputPerMTok: 2,
389
+ outputPerMTok: 12,
390
+ contextWindow: 1048576,
391
+ maxOutputTokens: 65536,
392
+ source: "seed",
393
+ status: "preview",
394
+ confidence: "high",
395
+ lastUpdated: null
396
+ },
397
+ {
398
+ modelId: "gemini-3-flash-preview",
399
+ provider: "google",
400
+ displayName: "Gemini 3 Flash Preview",
401
+ inputPerMTok: 0.5,
402
+ outputPerMTok: 3,
403
+ contextWindow: 1048576,
404
+ maxOutputTokens: 65536,
405
+ source: "seed",
406
+ status: "preview",
407
+ confidence: "high",
408
+ lastUpdated: null
409
+ },
345
410
  // DeepSeek
346
411
  {
347
412
  modelId: "deepseek-chat",
@@ -368,6 +433,112 @@ var STATIC_PRICING = [
368
433
  status: "active",
369
434
  confidence: "high",
370
435
  lastUpdated: null
436
+ },
437
+ // xAI
438
+ {
439
+ modelId: "grok-4",
440
+ provider: "xai",
441
+ displayName: "Grok 4",
442
+ inputPerMTok: 3,
443
+ outputPerMTok: 15,
444
+ contextWindow: 256e3,
445
+ maxOutputTokens: null,
446
+ source: "seed",
447
+ status: "active",
448
+ confidence: "high",
449
+ lastUpdated: null
450
+ },
451
+ {
452
+ modelId: "grok-4.1-fast",
453
+ provider: "xai",
454
+ displayName: "Grok 4.1 Fast",
455
+ inputPerMTok: 0.2,
456
+ outputPerMTok: 0.5,
457
+ contextWindow: 2e6,
458
+ maxOutputTokens: null,
459
+ source: "seed",
460
+ status: "active",
461
+ confidence: "high",
462
+ lastUpdated: null
463
+ },
464
+ {
465
+ modelId: "grok-3",
466
+ provider: "xai",
467
+ displayName: "Grok 3",
468
+ inputPerMTok: 3,
469
+ outputPerMTok: 15,
470
+ contextWindow: 131072,
471
+ maxOutputTokens: null,
472
+ source: "seed",
473
+ status: "active",
474
+ confidence: "high",
475
+ lastUpdated: null
476
+ },
477
+ {
478
+ modelId: "grok-3-mini",
479
+ provider: "xai",
480
+ displayName: "Grok 3 Mini",
481
+ inputPerMTok: 0.3,
482
+ outputPerMTok: 0.5,
483
+ contextWindow: 131072,
484
+ maxOutputTokens: null,
485
+ source: "seed",
486
+ status: "active",
487
+ confidence: "high",
488
+ lastUpdated: null
489
+ },
490
+ // Mistral
491
+ {
492
+ modelId: "mistral-large-3",
493
+ provider: "mistral",
494
+ displayName: "Mistral Large 3",
495
+ inputPerMTok: 0.5,
496
+ outputPerMTok: 1.5,
497
+ contextWindow: 262e3,
498
+ maxOutputTokens: null,
499
+ source: "seed",
500
+ status: "active",
501
+ confidence: "high",
502
+ lastUpdated: null
503
+ },
504
+ {
505
+ modelId: "mistral-medium-3",
506
+ provider: "mistral",
507
+ displayName: "Mistral Medium 3",
508
+ inputPerMTok: 0.4,
509
+ outputPerMTok: 2,
510
+ contextWindow: 131072,
511
+ maxOutputTokens: null,
512
+ source: "seed",
513
+ status: "active",
514
+ confidence: "high",
515
+ lastUpdated: null
516
+ },
517
+ {
518
+ modelId: "codestral",
519
+ provider: "mistral",
520
+ displayName: "Codestral",
521
+ inputPerMTok: 0.3,
522
+ outputPerMTok: 0.9,
523
+ contextWindow: 256e3,
524
+ maxOutputTokens: null,
525
+ source: "seed",
526
+ status: "active",
527
+ confidence: "high",
528
+ lastUpdated: null
529
+ },
530
+ {
531
+ modelId: "mistral-small-3.1",
532
+ provider: "mistral",
533
+ displayName: "Mistral Small 3.1",
534
+ inputPerMTok: 0.35,
535
+ outputPerMTok: 0.56,
536
+ contextWindow: 128e3,
537
+ maxOutputTokens: null,
538
+ source: "seed",
539
+ status: "active",
540
+ confidence: "high",
541
+ lastUpdated: null
371
542
  }
372
543
  ];
373
544
 
package/dist/index.mjs CHANGED
@@ -247,6 +247,45 @@ var STATIC_PRICING = [
247
247
  confidence: "high",
248
248
  lastUpdated: null
249
249
  },
250
+ {
251
+ modelId: "gpt-5.1",
252
+ provider: "openai",
253
+ displayName: "GPT-5.1",
254
+ inputPerMTok: 1.25,
255
+ outputPerMTok: 10,
256
+ contextWindow: 4e5,
257
+ maxOutputTokens: 128e3,
258
+ source: "seed",
259
+ status: "active",
260
+ confidence: "high",
261
+ lastUpdated: null
262
+ },
263
+ {
264
+ modelId: "o3-pro",
265
+ provider: "openai",
266
+ displayName: "o3 Pro",
267
+ inputPerMTok: 20,
268
+ outputPerMTok: 80,
269
+ contextWindow: 2e5,
270
+ maxOutputTokens: 1e5,
271
+ source: "seed",
272
+ status: "active",
273
+ confidence: "high",
274
+ lastUpdated: null
275
+ },
276
+ {
277
+ modelId: "o3-mini",
278
+ provider: "openai",
279
+ displayName: "o3 Mini",
280
+ inputPerMTok: 1.1,
281
+ outputPerMTok: 4.4,
282
+ contextWindow: 2e5,
283
+ maxOutputTokens: 1e5,
284
+ source: "seed",
285
+ status: "active",
286
+ confidence: "high",
287
+ lastUpdated: null
288
+ },
250
289
  // Google
251
290
  {
252
291
  modelId: "gemini-2.5-pro",
@@ -313,6 +352,32 @@ var STATIC_PRICING = [
313
352
  confidence: "high",
314
353
  lastUpdated: null
315
354
  },
355
+ {
356
+ modelId: "gemini-3.1-pro-preview",
357
+ provider: "google",
358
+ displayName: "Gemini 3.1 Pro Preview",
359
+ inputPerMTok: 2,
360
+ outputPerMTok: 12,
361
+ contextWindow: 1048576,
362
+ maxOutputTokens: 65536,
363
+ source: "seed",
364
+ status: "preview",
365
+ confidence: "high",
366
+ lastUpdated: null
367
+ },
368
+ {
369
+ modelId: "gemini-3-flash-preview",
370
+ provider: "google",
371
+ displayName: "Gemini 3 Flash Preview",
372
+ inputPerMTok: 0.5,
373
+ outputPerMTok: 3,
374
+ contextWindow: 1048576,
375
+ maxOutputTokens: 65536,
376
+ source: "seed",
377
+ status: "preview",
378
+ confidence: "high",
379
+ lastUpdated: null
380
+ },
316
381
  // DeepSeek
317
382
  {
318
383
  modelId: "deepseek-chat",
@@ -339,6 +404,112 @@ var STATIC_PRICING = [
339
404
  status: "active",
340
405
  confidence: "high",
341
406
  lastUpdated: null
407
+ },
408
+ // xAI
409
+ {
410
+ modelId: "grok-4",
411
+ provider: "xai",
412
+ displayName: "Grok 4",
413
+ inputPerMTok: 3,
414
+ outputPerMTok: 15,
415
+ contextWindow: 256e3,
416
+ maxOutputTokens: null,
417
+ source: "seed",
418
+ status: "active",
419
+ confidence: "high",
420
+ lastUpdated: null
421
+ },
422
+ {
423
+ modelId: "grok-4.1-fast",
424
+ provider: "xai",
425
+ displayName: "Grok 4.1 Fast",
426
+ inputPerMTok: 0.2,
427
+ outputPerMTok: 0.5,
428
+ contextWindow: 2e6,
429
+ maxOutputTokens: null,
430
+ source: "seed",
431
+ status: "active",
432
+ confidence: "high",
433
+ lastUpdated: null
434
+ },
435
+ {
436
+ modelId: "grok-3",
437
+ provider: "xai",
438
+ displayName: "Grok 3",
439
+ inputPerMTok: 3,
440
+ outputPerMTok: 15,
441
+ contextWindow: 131072,
442
+ maxOutputTokens: null,
443
+ source: "seed",
444
+ status: "active",
445
+ confidence: "high",
446
+ lastUpdated: null
447
+ },
448
+ {
449
+ modelId: "grok-3-mini",
450
+ provider: "xai",
451
+ displayName: "Grok 3 Mini",
452
+ inputPerMTok: 0.3,
453
+ outputPerMTok: 0.5,
454
+ contextWindow: 131072,
455
+ maxOutputTokens: null,
456
+ source: "seed",
457
+ status: "active",
458
+ confidence: "high",
459
+ lastUpdated: null
460
+ },
461
+ // Mistral
462
+ {
463
+ modelId: "mistral-large-3",
464
+ provider: "mistral",
465
+ displayName: "Mistral Large 3",
466
+ inputPerMTok: 0.5,
467
+ outputPerMTok: 1.5,
468
+ contextWindow: 262e3,
469
+ maxOutputTokens: null,
470
+ source: "seed",
471
+ status: "active",
472
+ confidence: "high",
473
+ lastUpdated: null
474
+ },
475
+ {
476
+ modelId: "mistral-medium-3",
477
+ provider: "mistral",
478
+ displayName: "Mistral Medium 3",
479
+ inputPerMTok: 0.4,
480
+ outputPerMTok: 2,
481
+ contextWindow: 131072,
482
+ maxOutputTokens: null,
483
+ source: "seed",
484
+ status: "active",
485
+ confidence: "high",
486
+ lastUpdated: null
487
+ },
488
+ {
489
+ modelId: "codestral",
490
+ provider: "mistral",
491
+ displayName: "Codestral",
492
+ inputPerMTok: 0.3,
493
+ outputPerMTok: 0.9,
494
+ contextWindow: 256e3,
495
+ maxOutputTokens: null,
496
+ source: "seed",
497
+ status: "active",
498
+ confidence: "high",
499
+ lastUpdated: null
500
+ },
501
+ {
502
+ modelId: "mistral-small-3.1",
503
+ provider: "mistral",
504
+ displayName: "Mistral Small 3.1",
505
+ inputPerMTok: 0.35,
506
+ outputPerMTok: 0.56,
507
+ contextWindow: 128e3,
508
+ maxOutputTokens: null,
509
+ source: "seed",
510
+ status: "active",
511
+ confidence: "high",
512
+ lastUpdated: null
342
513
  }
343
514
  ];
344
515
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pricetoken",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Real-time LLM pricing data — typed client, cost calculator, and static pricing",
5
5
  "keywords": [
6
6
  "llm",
@@ -10,7 +10,10 @@
10
10
  "cost",
11
11
  "openai",
12
12
  "anthropic",
13
- "google"
13
+ "google",
14
+ "xai",
15
+ "mistral",
16
+ "grok"
14
17
  ],
15
18
  "homepage": "https://pricetoken.ai",
16
19
  "bugs": {