tokencostauto 0.1.95__py3-none-any.whl → 0.1.99__py3-none-any.whl
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.
- tokencostauto/model_prices.json +229 -17
- {tokencostauto-0.1.95.dist-info → tokencostauto-0.1.99.dist-info}/METADATA +1 -1
- tokencostauto-0.1.99.dist-info/RECORD +9 -0
- tokencostauto-0.1.95.dist-info/RECORD +0 -9
- {tokencostauto-0.1.95.dist-info → tokencostauto-0.1.99.dist-info}/WHEEL +0 -0
- {tokencostauto-0.1.95.dist-info → tokencostauto-0.1.99.dist-info}/licenses/LICENSE +0 -0
- {tokencostauto-0.1.95.dist-info → tokencostauto-0.1.99.dist-info}/top_level.txt +0 -0
tokencostauto/model_prices.json
CHANGED
@@ -11692,9 +11692,9 @@
|
|
11692
11692
|
"max_tokens": 100000,
|
11693
11693
|
"max_input_tokens": 200000,
|
11694
11694
|
"max_output_tokens": 100000,
|
11695
|
-
"input_cost_per_token":
|
11696
|
-
"output_cost_per_token":
|
11697
|
-
"cache_read_input_token_cost":
|
11695
|
+
"input_cost_per_token": 2e-06,
|
11696
|
+
"output_cost_per_token": 8e-06,
|
11697
|
+
"cache_read_input_token_cost": 5e-07,
|
11698
11698
|
"litellm_provider": "azure",
|
11699
11699
|
"mode": "chat",
|
11700
11700
|
"supported_endpoints": [
|
@@ -12267,7 +12267,8 @@
|
|
12267
12267
|
"text"
|
12268
12268
|
],
|
12269
12269
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
12270
|
-
"supports_web_search": true
|
12270
|
+
"supports_web_search": true,
|
12271
|
+
"supports_pdf_input": true
|
12271
12272
|
},
|
12272
12273
|
"gemini-2.5-flash-preview-04-17": {
|
12273
12274
|
"max_tokens": 65535,
|
@@ -12308,7 +12309,8 @@
|
|
12308
12309
|
],
|
12309
12310
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
12310
12311
|
"supports_parallel_function_calling": true,
|
12311
|
-
"supports_web_search": true
|
12312
|
+
"supports_web_search": true,
|
12313
|
+
"supports_pdf_input": true
|
12312
12314
|
},
|
12313
12315
|
"gemini-2.0-flash": {
|
12314
12316
|
"max_tokens": 8192,
|
@@ -12457,7 +12459,8 @@
|
|
12457
12459
|
],
|
12458
12460
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
12459
12461
|
"supports_parallel_function_calling": true,
|
12460
|
-
"supports_web_search": true
|
12462
|
+
"supports_web_search": true,
|
12463
|
+
"supports_pdf_input": true
|
12461
12464
|
},
|
12462
12465
|
"gemini-2.5-pro-preview-03-25": {
|
12463
12466
|
"max_tokens": 65535,
|
@@ -12499,7 +12502,8 @@
|
|
12499
12502
|
],
|
12500
12503
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
12501
12504
|
"supports_parallel_function_calling": true,
|
12502
|
-
"supports_web_search": true
|
12505
|
+
"supports_web_search": true,
|
12506
|
+
"supports_pdf_input": true
|
12503
12507
|
},
|
12504
12508
|
"gemini/gemini-2.0-flash-lite": {
|
12505
12509
|
"max_input_tokens": 1048576,
|
@@ -12571,7 +12575,8 @@
|
|
12571
12575
|
],
|
12572
12576
|
"source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-2.5-pro-preview",
|
12573
12577
|
"supports_web_search": true,
|
12574
|
-
"supports_url_context": true
|
12578
|
+
"supports_url_context": true,
|
12579
|
+
"supports_pdf_input": true
|
12575
12580
|
},
|
12576
12581
|
"gemini/gemini-2.5-pro-preview-03-25": {
|
12577
12582
|
"max_tokens": 65535,
|
@@ -12608,7 +12613,8 @@
|
|
12608
12613
|
"text"
|
12609
12614
|
],
|
12610
12615
|
"source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-2.5-pro-preview",
|
12611
|
-
"supports_web_search": true
|
12616
|
+
"supports_web_search": true,
|
12617
|
+
"supports_pdf_input": true
|
12612
12618
|
},
|
12613
12619
|
"vertex_ai/meta/llama-4-scout-17b-16e-instruct-maas": {
|
12614
12620
|
"max_tokens": 10000000.0,
|
@@ -13637,7 +13643,8 @@
|
|
13637
13643
|
],
|
13638
13644
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
13639
13645
|
"supports_web_search": true,
|
13640
|
-
"supports_url_context": true
|
13646
|
+
"supports_url_context": true,
|
13647
|
+
"supports_pdf_input": true
|
13641
13648
|
},
|
13642
13649
|
"gemini-2.5-flash-preview-05-20": {
|
13643
13650
|
"max_tokens": 65535,
|
@@ -13679,7 +13686,8 @@
|
|
13679
13686
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
13680
13687
|
"supports_parallel_function_calling": true,
|
13681
13688
|
"supports_web_search": true,
|
13682
|
-
"supports_url_context": true
|
13689
|
+
"supports_url_context": true,
|
13690
|
+
"supports_pdf_input": true
|
13683
13691
|
},
|
13684
13692
|
"gemini-2.0-flash-preview-image-generation": {
|
13685
13693
|
"max_tokens": 8192,
|
@@ -14362,7 +14370,8 @@
|
|
14362
14370
|
],
|
14363
14371
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
14364
14372
|
"supports_parallel_function_calling": true,
|
14365
|
-
"supports_web_search": true
|
14373
|
+
"supports_web_search": true,
|
14374
|
+
"supports_pdf_input": true
|
14366
14375
|
},
|
14367
14376
|
"gemini/gemini-2.5-pro-preview-06-05": {
|
14368
14377
|
"max_tokens": 65535,
|
@@ -14400,7 +14409,8 @@
|
|
14400
14409
|
],
|
14401
14410
|
"source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-2.5-pro-preview",
|
14402
14411
|
"supports_web_search": true,
|
14403
|
-
"supports_url_context": true
|
14412
|
+
"supports_url_context": true,
|
14413
|
+
"supports_pdf_input": true
|
14404
14414
|
},
|
14405
14415
|
"gpt-4o-audio-preview-2025-06-03": {
|
14406
14416
|
"max_tokens": 16384,
|
@@ -15212,6 +15222,7 @@
|
|
15212
15222
|
"supports_pdf_input": true,
|
15213
15223
|
"supports_response_schema": true,
|
15214
15224
|
"supports_tool_choice": true,
|
15225
|
+
"supports_reasoning": true,
|
15215
15226
|
"supported_endpoints": [
|
15216
15227
|
"/v1/chat/completions",
|
15217
15228
|
"/v1/completions"
|
@@ -15268,7 +15279,8 @@
|
|
15268
15279
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
15269
15280
|
"supports_parallel_function_calling": true,
|
15270
15281
|
"supports_web_search": true,
|
15271
|
-
"supports_url_context": true
|
15282
|
+
"supports_url_context": true,
|
15283
|
+
"supports_pdf_input": true
|
15272
15284
|
},
|
15273
15285
|
"gemini-2.5-flash-lite-preview-06-17": {
|
15274
15286
|
"max_tokens": 65535,
|
@@ -15310,7 +15322,8 @@
|
|
15310
15322
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
|
15311
15323
|
"supports_parallel_function_calling": true,
|
15312
15324
|
"supports_web_search": true,
|
15313
|
-
"supports_url_context": true
|
15325
|
+
"supports_url_context": true,
|
15326
|
+
"supports_pdf_input": true
|
15314
15327
|
},
|
15315
15328
|
"openrouter/deepseek/deepseek-r1-0528": {
|
15316
15329
|
"max_tokens": 8192,
|
@@ -15430,7 +15443,8 @@
|
|
15430
15443
|
"supports_web_search": true,
|
15431
15444
|
"supports_url_context": true,
|
15432
15445
|
"tpm": 8000000,
|
15433
|
-
"rpm": 100000
|
15446
|
+
"rpm": 100000,
|
15447
|
+
"supports_pdf_input": true
|
15434
15448
|
},
|
15435
15449
|
"gemini/gemini-2.5-flash-lite-preview-06-17": {
|
15436
15450
|
"max_tokens": 65535,
|
@@ -15474,6 +15488,204 @@
|
|
15474
15488
|
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-lite",
|
15475
15489
|
"supports_parallel_function_calling": true,
|
15476
15490
|
"supports_web_search": true,
|
15477
|
-
"supports_url_context": true
|
15491
|
+
"supports_url_context": true,
|
15492
|
+
"supports_pdf_input": true
|
15493
|
+
},
|
15494
|
+
"gemini-2.5-pro": {
|
15495
|
+
"max_tokens": 65535,
|
15496
|
+
"max_input_tokens": 1048576,
|
15497
|
+
"max_output_tokens": 65535,
|
15498
|
+
"max_images_per_prompt": 3000,
|
15499
|
+
"max_videos_per_prompt": 10,
|
15500
|
+
"max_video_length": 1,
|
15501
|
+
"max_audio_length_hours": 8.4,
|
15502
|
+
"max_audio_per_prompt": 1,
|
15503
|
+
"max_pdf_size_mb": 30,
|
15504
|
+
"input_cost_per_token": 1.25e-06,
|
15505
|
+
"input_cost_per_token_above_200k_tokens": 2.5e-06,
|
15506
|
+
"output_cost_per_token": 1e-05,
|
15507
|
+
"output_cost_per_token_above_200k_tokens": 1.5e-05,
|
15508
|
+
"litellm_provider": "vertex_ai-language-models",
|
15509
|
+
"mode": "chat",
|
15510
|
+
"supports_system_messages": true,
|
15511
|
+
"supports_function_calling": true,
|
15512
|
+
"supports_vision": true,
|
15513
|
+
"supports_audio_input": true,
|
15514
|
+
"supports_video_input": true,
|
15515
|
+
"supports_pdf_input": true,
|
15516
|
+
"supports_response_schema": true,
|
15517
|
+
"supports_tool_choice": true,
|
15518
|
+
"supports_reasoning": true,
|
15519
|
+
"supported_endpoints": [
|
15520
|
+
"/v1/chat/completions",
|
15521
|
+
"/v1/completions"
|
15522
|
+
],
|
15523
|
+
"supported_modalities": [
|
15524
|
+
"text",
|
15525
|
+
"image",
|
15526
|
+
"audio",
|
15527
|
+
"video"
|
15528
|
+
],
|
15529
|
+
"supported_output_modalities": [
|
15530
|
+
"text"
|
15531
|
+
],
|
15532
|
+
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing",
|
15533
|
+
"supports_web_search": true
|
15534
|
+
},
|
15535
|
+
"apac.amazon.nova-micro-v1:0": {
|
15536
|
+
"max_tokens": 10000,
|
15537
|
+
"max_input_tokens": 300000,
|
15538
|
+
"max_output_tokens": 10000,
|
15539
|
+
"input_cost_per_token": 3.7e-08,
|
15540
|
+
"output_cost_per_token": 1.48e-07,
|
15541
|
+
"litellm_provider": "bedrock_converse",
|
15542
|
+
"mode": "chat",
|
15543
|
+
"supports_function_calling": true,
|
15544
|
+
"supports_prompt_caching": true,
|
15545
|
+
"supports_response_schema": true
|
15546
|
+
},
|
15547
|
+
"apac.amazon.nova-lite-v1:0": {
|
15548
|
+
"max_tokens": 10000,
|
15549
|
+
"max_input_tokens": 128000,
|
15550
|
+
"max_output_tokens": 10000,
|
15551
|
+
"input_cost_per_token": 6.3e-08,
|
15552
|
+
"output_cost_per_token": 2.52e-07,
|
15553
|
+
"litellm_provider": "bedrock_converse",
|
15554
|
+
"mode": "chat",
|
15555
|
+
"supports_function_calling": true,
|
15556
|
+
"supports_vision": true,
|
15557
|
+
"supports_pdf_input": true,
|
15558
|
+
"supports_prompt_caching": true,
|
15559
|
+
"supports_response_schema": true
|
15560
|
+
},
|
15561
|
+
"apac.amazon.nova-pro-v1:0": {
|
15562
|
+
"max_tokens": 10000,
|
15563
|
+
"max_input_tokens": 300000,
|
15564
|
+
"max_output_tokens": 10000,
|
15565
|
+
"input_cost_per_token": 8.4e-07,
|
15566
|
+
"output_cost_per_token": 3.36e-06,
|
15567
|
+
"litellm_provider": "bedrock_converse",
|
15568
|
+
"mode": "chat",
|
15569
|
+
"supports_function_calling": true,
|
15570
|
+
"supports_vision": true,
|
15571
|
+
"supports_pdf_input": true,
|
15572
|
+
"supports_prompt_caching": true,
|
15573
|
+
"supports_response_schema": true
|
15574
|
+
},
|
15575
|
+
"apac.anthropic.claude-3-haiku-20240307-v1:0": {
|
15576
|
+
"max_tokens": 4096,
|
15577
|
+
"max_input_tokens": 200000,
|
15578
|
+
"max_output_tokens": 4096,
|
15579
|
+
"input_cost_per_token": 2.5e-07,
|
15580
|
+
"output_cost_per_token": 1.25e-06,
|
15581
|
+
"litellm_provider": "bedrock",
|
15582
|
+
"mode": "chat",
|
15583
|
+
"supports_function_calling": true,
|
15584
|
+
"supports_response_schema": true,
|
15585
|
+
"supports_vision": true,
|
15586
|
+
"supports_pdf_input": true,
|
15587
|
+
"supports_tool_choice": true
|
15588
|
+
},
|
15589
|
+
"apac.anthropic.claude-3-sonnet-20240229-v1:0": {
|
15590
|
+
"max_tokens": 4096,
|
15591
|
+
"max_input_tokens": 200000,
|
15592
|
+
"max_output_tokens": 4096,
|
15593
|
+
"input_cost_per_token": 3e-06,
|
15594
|
+
"output_cost_per_token": 1.5e-05,
|
15595
|
+
"litellm_provider": "bedrock",
|
15596
|
+
"mode": "chat",
|
15597
|
+
"supports_function_calling": true,
|
15598
|
+
"supports_response_schema": true,
|
15599
|
+
"supports_vision": true,
|
15600
|
+
"supports_pdf_input": true,
|
15601
|
+
"supports_tool_choice": true
|
15602
|
+
},
|
15603
|
+
"apac.anthropic.claude-3-5-sonnet-20240620-v1:0": {
|
15604
|
+
"max_tokens": 4096,
|
15605
|
+
"max_input_tokens": 200000,
|
15606
|
+
"max_output_tokens": 4096,
|
15607
|
+
"input_cost_per_token": 3e-06,
|
15608
|
+
"output_cost_per_token": 1.5e-05,
|
15609
|
+
"litellm_provider": "bedrock",
|
15610
|
+
"mode": "chat",
|
15611
|
+
"supports_function_calling": true,
|
15612
|
+
"supports_response_schema": true,
|
15613
|
+
"supports_vision": true,
|
15614
|
+
"supports_pdf_input": true,
|
15615
|
+
"supports_tool_choice": true
|
15616
|
+
},
|
15617
|
+
"apac.anthropic.claude-3-5-sonnet-20241022-v2:0": {
|
15618
|
+
"max_tokens": 8192,
|
15619
|
+
"max_input_tokens": 200000,
|
15620
|
+
"max_output_tokens": 8192,
|
15621
|
+
"input_cost_per_token": 3e-06,
|
15622
|
+
"output_cost_per_token": 1.5e-05,
|
15623
|
+
"cache_creation_input_token_cost": 3.75e-06,
|
15624
|
+
"cache_read_input_token_cost": 3e-07,
|
15625
|
+
"litellm_provider": "bedrock",
|
15626
|
+
"mode": "chat",
|
15627
|
+
"supports_function_calling": true,
|
15628
|
+
"supports_vision": true,
|
15629
|
+
"supports_assistant_prefill": true,
|
15630
|
+
"supports_computer_use": true,
|
15631
|
+
"supports_pdf_input": true,
|
15632
|
+
"supports_prompt_caching": true,
|
15633
|
+
"supports_response_schema": true,
|
15634
|
+
"supports_tool_choice": true
|
15635
|
+
},
|
15636
|
+
"apac.anthropic.claude-sonnet-4-20250514-v1:0": {
|
15637
|
+
"max_tokens": 64000,
|
15638
|
+
"max_input_tokens": 200000,
|
15639
|
+
"max_output_tokens": 64000,
|
15640
|
+
"input_cost_per_token": 3e-06,
|
15641
|
+
"output_cost_per_token": 1.5e-05,
|
15642
|
+
"search_context_cost_per_query": {
|
15643
|
+
"search_context_size_low": 0.01,
|
15644
|
+
"search_context_size_medium": 0.01,
|
15645
|
+
"search_context_size_high": 0.01
|
15646
|
+
},
|
15647
|
+
"cache_creation_input_token_cost": 3.75e-06,
|
15648
|
+
"cache_read_input_token_cost": 3e-07,
|
15649
|
+
"litellm_provider": "bedrock_converse",
|
15650
|
+
"mode": "chat",
|
15651
|
+
"supports_function_calling": true,
|
15652
|
+
"supports_vision": true,
|
15653
|
+
"tool_use_system_prompt_tokens": 159,
|
15654
|
+
"supports_assistant_prefill": true,
|
15655
|
+
"supports_pdf_input": true,
|
15656
|
+
"supports_prompt_caching": true,
|
15657
|
+
"supports_response_schema": true,
|
15658
|
+
"supports_tool_choice": true,
|
15659
|
+
"supports_reasoning": true,
|
15660
|
+
"supports_computer_use": true
|
15661
|
+
},
|
15662
|
+
"azure/codex-mini": {
|
15663
|
+
"max_tokens": 100000,
|
15664
|
+
"max_input_tokens": 200000,
|
15665
|
+
"max_output_tokens": 100000,
|
15666
|
+
"input_cost_per_token": 1.5e-06,
|
15667
|
+
"output_cost_per_token": 6e-06,
|
15668
|
+
"cache_read_input_token_cost": 3.75e-07,
|
15669
|
+
"litellm_provider": "azure",
|
15670
|
+
"mode": "responses",
|
15671
|
+
"supports_pdf_input": true,
|
15672
|
+
"supports_function_calling": true,
|
15673
|
+
"supports_parallel_function_calling": true,
|
15674
|
+
"supports_vision": true,
|
15675
|
+
"supports_prompt_caching": true,
|
15676
|
+
"supports_system_messages": true,
|
15677
|
+
"supports_response_schema": true,
|
15678
|
+
"supports_tool_choice": true,
|
15679
|
+
"supports_reasoning": true,
|
15680
|
+
"supported_modalities": [
|
15681
|
+
"text",
|
15682
|
+
"image"
|
15683
|
+
],
|
15684
|
+
"supported_output_modalities": [
|
15685
|
+
"text"
|
15686
|
+
],
|
15687
|
+
"supported_endpoints": [
|
15688
|
+
"/v1/responses"
|
15689
|
+
]
|
15478
15690
|
}
|
15479
15691
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tokencostauto
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.99
|
4
4
|
Summary: To calculate token and translated USD cost of string and message calls to OpenAI, for example when used by AI agents
|
5
5
|
Author-email: Trisha Pan <trishaepan@gmail.com>, Alex Reibman <areibman@gmail.com>, Pratyush Shukla <ps4534@nyu.edu>, Thiago MadPin <madpin@gmail.com>
|
6
6
|
Project-URL: Homepage, https://github.com/madpin/tokencostaudo
|
@@ -0,0 +1,9 @@
|
|
1
|
+
tokencostauto/__init__.py,sha256=-4d_ryFH62SgNXPXA8vGPFZoAKtOBjnsg37EB_RkZG8,289
|
2
|
+
tokencostauto/constants.py,sha256=_82MlTkTrdrwzyRosQD7d3JdgNP9KAUM-cZo8DE00P0,3395
|
3
|
+
tokencostauto/costs.py,sha256=tXsgrTypq-dCHaHtoXcg2XepezWsAvZpl9gEsv_53iE,10679
|
4
|
+
tokencostauto/model_prices.json,sha256=2tm5giElPWeuZt2jD1P_-jm42a6VIUlg9JLIpfzE-DQ,559726
|
5
|
+
tokencostauto-0.1.99.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
|
6
|
+
tokencostauto-0.1.99.dist-info/METADATA,sha256=5ruApCI_ky0Wh_UWfb88_BcCdM059JxN8S1xMBp3UE4,204075
|
7
|
+
tokencostauto-0.1.99.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
8
|
+
tokencostauto-0.1.99.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
|
9
|
+
tokencostauto-0.1.99.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
tokencostauto/__init__.py,sha256=-4d_ryFH62SgNXPXA8vGPFZoAKtOBjnsg37EB_RkZG8,289
|
2
|
-
tokencostauto/constants.py,sha256=_82MlTkTrdrwzyRosQD7d3JdgNP9KAUM-cZo8DE00P0,3395
|
3
|
-
tokencostauto/costs.py,sha256=tXsgrTypq-dCHaHtoXcg2XepezWsAvZpl9gEsv_53iE,10679
|
4
|
-
tokencostauto/model_prices.json,sha256=SsYzn5lHWD9m7X35Y9r0-fT-u46mClNfAaCiwe7HLAA,552246
|
5
|
-
tokencostauto-0.1.95.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
|
6
|
-
tokencostauto-0.1.95.dist-info/METADATA,sha256=d5pI0kLcxV2gZmxckvwyNep5UTYDqQoD7wFXmQ5gZ0c,204075
|
7
|
-
tokencostauto-0.1.95.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
8
|
-
tokencostauto-0.1.95.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
|
9
|
-
tokencostauto-0.1.95.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|