tokencostauto 0.1.45__py3-none-any.whl → 0.1.47__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 +263 -0
- {tokencostauto-0.1.45.dist-info → tokencostauto-0.1.47.dist-info}/METADATA +1 -1
- tokencostauto-0.1.47.dist-info/RECORD +9 -0
- tokencostauto-0.1.45.dist-info/RECORD +0 -9
- {tokencostauto-0.1.45.dist-info → tokencostauto-0.1.47.dist-info}/WHEEL +0 -0
- {tokencostauto-0.1.45.dist-info → tokencostauto-0.1.47.dist-info}/licenses/LICENSE +0 -0
- {tokencostauto-0.1.45.dist-info → tokencostauto-0.1.47.dist-info}/top_level.txt +0 -0
tokencostauto/model_prices.json
CHANGED
@@ -13492,5 +13492,268 @@
|
|
13492
13492
|
"supports_tool_choice": true,
|
13493
13493
|
"supports_reasoning": true,
|
13494
13494
|
"source": "https://cloud.sambanova.ai/plans/pricing"
|
13495
|
+
},
|
13496
|
+
"xai/grok-3": {
|
13497
|
+
"max_tokens": 131072,
|
13498
|
+
"max_input_tokens": 131072,
|
13499
|
+
"max_output_tokens": 131072,
|
13500
|
+
"input_cost_per_token": 3e-06,
|
13501
|
+
"output_cost_per_token": 1.5e-05,
|
13502
|
+
"litellm_provider": "xai",
|
13503
|
+
"mode": "chat",
|
13504
|
+
"supports_function_calling": true,
|
13505
|
+
"supports_tool_choice": true,
|
13506
|
+
"supports_response_schema": false,
|
13507
|
+
"source": "https://x.ai/api#pricing"
|
13508
|
+
},
|
13509
|
+
"gemini/gemini-2.5-flash-preview-tts": {
|
13510
|
+
"max_tokens": 65535,
|
13511
|
+
"max_input_tokens": 1048576,
|
13512
|
+
"max_output_tokens": 65535,
|
13513
|
+
"max_images_per_prompt": 3000,
|
13514
|
+
"max_videos_per_prompt": 10,
|
13515
|
+
"max_video_length": 1,
|
13516
|
+
"max_audio_length_hours": 8.4,
|
13517
|
+
"max_audio_per_prompt": 1,
|
13518
|
+
"max_pdf_size_mb": 30,
|
13519
|
+
"input_cost_per_audio_token": 1e-06,
|
13520
|
+
"input_cost_per_token": 1.5e-07,
|
13521
|
+
"output_cost_per_token": 6e-07,
|
13522
|
+
"output_cost_per_reasoning_token": 3.5e-06,
|
13523
|
+
"litellm_provider": "gemini",
|
13524
|
+
"mode": "chat",
|
13525
|
+
"rpm": 10,
|
13526
|
+
"tpm": 250000,
|
13527
|
+
"supports_system_messages": true,
|
13528
|
+
"supports_function_calling": true,
|
13529
|
+
"supports_vision": true,
|
13530
|
+
"supports_reasoning": true,
|
13531
|
+
"supports_response_schema": true,
|
13532
|
+
"supports_audio_output": false,
|
13533
|
+
"supports_tool_choice": true,
|
13534
|
+
"supported_endpoints": [
|
13535
|
+
"/v1/chat/completions",
|
13536
|
+
"/v1/completions"
|
13537
|
+
],
|
13538
|
+
"supported_modalities": [
|
13539
|
+
"text"
|
13540
|
+
],
|
13541
|
+
"supported_output_modalities": [
|
13542
|
+
"audio"
|
13543
|
+
],
|
13544
|
+
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview"
|
13545
|
+
},
|
13546
|
+
"gemini/gemini-2.5-flash-preview-05-20": {
|
13547
|
+
"max_tokens": 65535,
|
13548
|
+
"max_input_tokens": 1048576,
|
13549
|
+
"max_output_tokens": 65535,
|
13550
|
+
"max_images_per_prompt": 3000,
|
13551
|
+
"max_videos_per_prompt": 10,
|
13552
|
+
"max_video_length": 1,
|
13553
|
+
"max_audio_length_hours": 8.4,
|
13554
|
+
"max_audio_per_prompt": 1,
|
13555
|
+
"max_pdf_size_mb": 30,
|
13556
|
+
"input_cost_per_audio_token": 1e-06,
|
13557
|
+
"input_cost_per_token": 1.5e-07,
|
13558
|
+
"output_cost_per_token": 6e-07,
|
13559
|
+
"output_cost_per_reasoning_token": 3.5e-06,
|
13560
|
+
"litellm_provider": "gemini",
|
13561
|
+
"mode": "chat",
|
13562
|
+
"rpm": 10,
|
13563
|
+
"tpm": 250000,
|
13564
|
+
"supports_system_messages": true,
|
13565
|
+
"supports_function_calling": true,
|
13566
|
+
"supports_vision": true,
|
13567
|
+
"supports_reasoning": true,
|
13568
|
+
"supports_response_schema": true,
|
13569
|
+
"supports_audio_output": false,
|
13570
|
+
"supports_tool_choice": true,
|
13571
|
+
"supported_endpoints": [
|
13572
|
+
"/v1/chat/completions",
|
13573
|
+
"/v1/completions"
|
13574
|
+
],
|
13575
|
+
"supported_modalities": [
|
13576
|
+
"text",
|
13577
|
+
"image",
|
13578
|
+
"audio",
|
13579
|
+
"video"
|
13580
|
+
],
|
13581
|
+
"supported_output_modalities": [
|
13582
|
+
"text"
|
13583
|
+
],
|
13584
|
+
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview"
|
13585
|
+
},
|
13586
|
+
"gemini-2.5-flash-preview-05-20": {
|
13587
|
+
"max_tokens": 65535,
|
13588
|
+
"max_input_tokens": 1048576,
|
13589
|
+
"max_output_tokens": 65535,
|
13590
|
+
"max_images_per_prompt": 3000,
|
13591
|
+
"max_videos_per_prompt": 10,
|
13592
|
+
"max_video_length": 1,
|
13593
|
+
"max_audio_length_hours": 8.4,
|
13594
|
+
"max_audio_per_prompt": 1,
|
13595
|
+
"max_pdf_size_mb": 30,
|
13596
|
+
"input_cost_per_audio_token": 1e-06,
|
13597
|
+
"input_cost_per_token": 1.5e-07,
|
13598
|
+
"output_cost_per_token": 6e-07,
|
13599
|
+
"output_cost_per_reasoning_token": 3.5e-06,
|
13600
|
+
"litellm_provider": "vertex_ai-language-models",
|
13601
|
+
"mode": "chat",
|
13602
|
+
"supports_reasoning": true,
|
13603
|
+
"supports_system_messages": true,
|
13604
|
+
"supports_function_calling": true,
|
13605
|
+
"supports_vision": true,
|
13606
|
+
"supports_response_schema": true,
|
13607
|
+
"supports_audio_output": false,
|
13608
|
+
"supports_tool_choice": true,
|
13609
|
+
"supported_endpoints": [
|
13610
|
+
"/v1/chat/completions",
|
13611
|
+
"/v1/completions",
|
13612
|
+
"/v1/batch"
|
13613
|
+
],
|
13614
|
+
"supported_modalities": [
|
13615
|
+
"text",
|
13616
|
+
"image",
|
13617
|
+
"audio",
|
13618
|
+
"video"
|
13619
|
+
],
|
13620
|
+
"supported_output_modalities": [
|
13621
|
+
"text"
|
13622
|
+
],
|
13623
|
+
"source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview"
|
13624
|
+
},
|
13625
|
+
"gemini-2.0-flash-preview-image-generation": {
|
13626
|
+
"max_tokens": 8192,
|
13627
|
+
"max_input_tokens": 1048576,
|
13628
|
+
"max_output_tokens": 8192,
|
13629
|
+
"max_images_per_prompt": 3000,
|
13630
|
+
"max_videos_per_prompt": 10,
|
13631
|
+
"max_video_length": 1,
|
13632
|
+
"max_audio_length_hours": 8.4,
|
13633
|
+
"max_audio_per_prompt": 1,
|
13634
|
+
"max_pdf_size_mb": 30,
|
13635
|
+
"input_cost_per_audio_token": 7e-07,
|
13636
|
+
"input_cost_per_token": 1e-07,
|
13637
|
+
"output_cost_per_token": 4e-07,
|
13638
|
+
"litellm_provider": "vertex_ai-language-models",
|
13639
|
+
"mode": "chat",
|
13640
|
+
"supports_system_messages": true,
|
13641
|
+
"supports_function_calling": true,
|
13642
|
+
"supports_vision": true,
|
13643
|
+
"supports_response_schema": true,
|
13644
|
+
"supports_audio_output": true,
|
13645
|
+
"supports_audio_input": true,
|
13646
|
+
"supported_modalities": [
|
13647
|
+
"text",
|
13648
|
+
"image",
|
13649
|
+
"audio",
|
13650
|
+
"video"
|
13651
|
+
],
|
13652
|
+
"supported_output_modalities": [
|
13653
|
+
"text",
|
13654
|
+
"image"
|
13655
|
+
],
|
13656
|
+
"supports_tool_choice": true,
|
13657
|
+
"source": "https://ai.google.dev/pricing#2_0flash"
|
13658
|
+
},
|
13659
|
+
"gemini-2.5-pro-preview-tts": {
|
13660
|
+
"max_tokens": 65535,
|
13661
|
+
"max_input_tokens": 1048576,
|
13662
|
+
"max_output_tokens": 65535,
|
13663
|
+
"max_images_per_prompt": 3000,
|
13664
|
+
"max_videos_per_prompt": 10,
|
13665
|
+
"max_video_length": 1,
|
13666
|
+
"max_audio_length_hours": 8.4,
|
13667
|
+
"max_audio_per_prompt": 1,
|
13668
|
+
"max_pdf_size_mb": 30,
|
13669
|
+
"input_cost_per_audio_token": 7e-07,
|
13670
|
+
"input_cost_per_token": 1.25e-06,
|
13671
|
+
"input_cost_per_token_above_200k_tokens": 2.5e-06,
|
13672
|
+
"output_cost_per_token": 1e-05,
|
13673
|
+
"output_cost_per_token_above_200k_tokens": 1.5e-05,
|
13674
|
+
"litellm_provider": "vertex_ai-language-models",
|
13675
|
+
"mode": "chat",
|
13676
|
+
"supports_system_messages": true,
|
13677
|
+
"supports_function_calling": true,
|
13678
|
+
"supports_vision": true,
|
13679
|
+
"supports_response_schema": true,
|
13680
|
+
"supports_audio_output": false,
|
13681
|
+
"supports_tool_choice": true,
|
13682
|
+
"supported_modalities": [
|
13683
|
+
"text"
|
13684
|
+
],
|
13685
|
+
"supported_output_modalities": [
|
13686
|
+
"audio"
|
13687
|
+
],
|
13688
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-2.5-pro-preview"
|
13689
|
+
},
|
13690
|
+
"gemini/gemini-2.0-flash-preview-image-generation": {
|
13691
|
+
"max_tokens": 8192,
|
13692
|
+
"max_input_tokens": 1048576,
|
13693
|
+
"max_output_tokens": 8192,
|
13694
|
+
"max_images_per_prompt": 3000,
|
13695
|
+
"max_videos_per_prompt": 10,
|
13696
|
+
"max_video_length": 1,
|
13697
|
+
"max_audio_length_hours": 8.4,
|
13698
|
+
"max_audio_per_prompt": 1,
|
13699
|
+
"max_pdf_size_mb": 30,
|
13700
|
+
"input_cost_per_audio_token": 7e-07,
|
13701
|
+
"input_cost_per_token": 1e-07,
|
13702
|
+
"output_cost_per_token": 4e-07,
|
13703
|
+
"litellm_provider": "gemini",
|
13704
|
+
"mode": "chat",
|
13705
|
+
"rpm": 10000,
|
13706
|
+
"tpm": 10000000,
|
13707
|
+
"supports_system_messages": true,
|
13708
|
+
"supports_function_calling": true,
|
13709
|
+
"supports_vision": true,
|
13710
|
+
"supports_response_schema": true,
|
13711
|
+
"supports_audio_output": true,
|
13712
|
+
"supports_audio_input": true,
|
13713
|
+
"supported_modalities": [
|
13714
|
+
"text",
|
13715
|
+
"image",
|
13716
|
+
"audio",
|
13717
|
+
"video"
|
13718
|
+
],
|
13719
|
+
"supported_output_modalities": [
|
13720
|
+
"text",
|
13721
|
+
"image"
|
13722
|
+
],
|
13723
|
+
"supports_tool_choice": true,
|
13724
|
+
"source": "https://ai.google.dev/pricing#2_0flash"
|
13725
|
+
},
|
13726
|
+
"gemini/gemini-2.5-pro-preview-tts": {
|
13727
|
+
"max_tokens": 65535,
|
13728
|
+
"max_input_tokens": 1048576,
|
13729
|
+
"max_output_tokens": 65535,
|
13730
|
+
"max_images_per_prompt": 3000,
|
13731
|
+
"max_videos_per_prompt": 10,
|
13732
|
+
"max_video_length": 1,
|
13733
|
+
"max_audio_length_hours": 8.4,
|
13734
|
+
"max_audio_per_prompt": 1,
|
13735
|
+
"max_pdf_size_mb": 30,
|
13736
|
+
"input_cost_per_audio_token": 7e-07,
|
13737
|
+
"input_cost_per_token": 1.25e-06,
|
13738
|
+
"input_cost_per_token_above_200k_tokens": 2.5e-06,
|
13739
|
+
"output_cost_per_token": 1e-05,
|
13740
|
+
"output_cost_per_token_above_200k_tokens": 1.5e-05,
|
13741
|
+
"litellm_provider": "gemini",
|
13742
|
+
"mode": "chat",
|
13743
|
+
"rpm": 10000,
|
13744
|
+
"tpm": 10000000,
|
13745
|
+
"supports_system_messages": true,
|
13746
|
+
"supports_function_calling": true,
|
13747
|
+
"supports_vision": true,
|
13748
|
+
"supports_response_schema": true,
|
13749
|
+
"supports_audio_output": false,
|
13750
|
+
"supports_tool_choice": true,
|
13751
|
+
"supported_modalities": [
|
13752
|
+
"text"
|
13753
|
+
],
|
13754
|
+
"supported_output_modalities": [
|
13755
|
+
"audio"
|
13756
|
+
],
|
13757
|
+
"source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-2.5-pro-preview"
|
13495
13758
|
}
|
13496
13759
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tokencostauto
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.47
|
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=QYFIE9i7S1IVs-je6G1X94rccGaJo8HZS-tzRePlxjQ,490510
|
5
|
+
tokencostauto-0.1.47.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
|
6
|
+
tokencostauto-0.1.47.dist-info/METADATA,sha256=0yoWYLBpu2IjCBYqFtDh0BXYoMOHsti88VvgrEovRF4,204075
|
7
|
+
tokencostauto-0.1.47.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
8
|
+
tokencostauto-0.1.47.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
|
9
|
+
tokencostauto-0.1.47.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=daBX_R3upEm3qKffxLRbCbvEUV0O_tV2zAihAZk_1Ik,481554
|
5
|
-
tokencostauto-0.1.45.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
|
6
|
-
tokencostauto-0.1.45.dist-info/METADATA,sha256=p1YnDxA8s9nFXYxVeqj1foigM4p9epkVPG49Nrq3C2Q,204075
|
7
|
-
tokencostauto-0.1.45.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
8
|
-
tokencostauto-0.1.45.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
|
9
|
-
tokencostauto-0.1.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|