tokencostauto 0.1.41__tar.gz → 0.1.45__tar.gz
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-0.1.41/tokencostauto.egg-info → tokencostauto-0.1.45}/PKG-INFO +1 -1
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/pyproject.toml +1 -1
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tokencostauto/model_prices.json +162 -29
- {tokencostauto-0.1.41 → tokencostauto-0.1.45/tokencostauto.egg-info}/PKG-INFO +1 -1
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/LICENSE +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/MANIFEST.in +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/README.md +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/setup.cfg +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tests/test_costs.py +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tokencostauto/__init__.py +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tokencostauto/constants.py +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tokencostauto/costs.py +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tokencostauto.egg-info/SOURCES.txt +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tokencostauto.egg-info/dependency_links.txt +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tokencostauto.egg-info/requires.txt +0 -0
- {tokencostauto-0.1.41 → tokencostauto-0.1.45}/tokencostauto.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tokencostauto
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.45
|
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
|
@@ -2034,6 +2034,7 @@
|
|
2034
2034
|
"supports_tool_choice": true
|
2035
2035
|
},
|
2036
2036
|
"claude-3-5-sonnet-20241022": {
|
2037
|
+
"supports_computer_use": true,
|
2037
2038
|
"max_tokens": 8192,
|
2038
2039
|
"max_input_tokens": 200000,
|
2039
2040
|
"max_output_tokens": 8192,
|
@@ -2060,6 +2061,7 @@
|
|
2060
2061
|
"supports_web_search": true
|
2061
2062
|
},
|
2062
2063
|
"claude-3-5-sonnet-latest": {
|
2064
|
+
"supports_computer_use": true,
|
2063
2065
|
"max_tokens": 8192,
|
2064
2066
|
"max_input_tokens": 200000,
|
2065
2067
|
"max_output_tokens": 8192,
|
@@ -2959,6 +2961,7 @@
|
|
2959
2961
|
"supports_tool_choice": true
|
2960
2962
|
},
|
2961
2963
|
"vertex_ai/claude-3-5-sonnet-v2@20241022": {
|
2964
|
+
"supports_computer_use": true,
|
2962
2965
|
"max_tokens": 8192,
|
2963
2966
|
"max_input_tokens": 200000,
|
2964
2967
|
"max_output_tokens": 8192,
|
@@ -4112,6 +4115,7 @@
|
|
4112
4115
|
"supports_prompt_caching": true
|
4113
4116
|
},
|
4114
4117
|
"openrouter/anthropic/claude-3.5-sonnet": {
|
4118
|
+
"supports_computer_use": true,
|
4115
4119
|
"max_tokens": 8192,
|
4116
4120
|
"max_input_tokens": 200000,
|
4117
4121
|
"max_output_tokens": 8192,
|
@@ -4126,6 +4130,7 @@
|
|
4126
4130
|
"supports_tool_choice": true
|
4127
4131
|
},
|
4128
4132
|
"openrouter/anthropic/claude-3.5-sonnet:beta": {
|
4133
|
+
"supports_computer_use": true,
|
4129
4134
|
"max_tokens": 8192,
|
4130
4135
|
"max_input_tokens": 200000,
|
4131
4136
|
"max_output_tokens": 8192,
|
@@ -4849,6 +4854,7 @@
|
|
4849
4854
|
"supports_tool_choice": true
|
4850
4855
|
},
|
4851
4856
|
"anthropic.claude-3-5-sonnet-20241022-v2:0": {
|
4857
|
+
"supports_computer_use": true,
|
4852
4858
|
"max_tokens": 8192,
|
4853
4859
|
"max_input_tokens": 200000,
|
4854
4860
|
"max_output_tokens": 8192,
|
@@ -4933,6 +4939,7 @@
|
|
4933
4939
|
"supports_tool_choice": true
|
4934
4940
|
},
|
4935
4941
|
"us.anthropic.claude-3-5-sonnet-20241022-v2:0": {
|
4942
|
+
"supports_computer_use": true,
|
4936
4943
|
"max_tokens": 8192,
|
4937
4944
|
"max_input_tokens": 200000,
|
4938
4945
|
"max_output_tokens": 8192,
|
@@ -5006,6 +5013,7 @@
|
|
5006
5013
|
"supports_tool_choice": true
|
5007
5014
|
},
|
5008
5015
|
"eu.anthropic.claude-3-5-sonnet-20241022-v2:0": {
|
5016
|
+
"supports_computer_use": true,
|
5009
5017
|
"max_tokens": 8192,
|
5010
5018
|
"max_input_tokens": 200000,
|
5011
5019
|
"max_output_tokens": 8192,
|
@@ -7815,6 +7823,7 @@
|
|
7815
7823
|
"supports_tool_choice": true
|
7816
7824
|
},
|
7817
7825
|
"vertex_ai/claude-3-5-sonnet": {
|
7826
|
+
"supports_computer_use": true,
|
7818
7827
|
"max_tokens": 8192,
|
7819
7828
|
"max_input_tokens": 200000,
|
7820
7829
|
"max_output_tokens": 8192,
|
@@ -7829,6 +7838,7 @@
|
|
7829
7838
|
"supports_tool_choice": true
|
7830
7839
|
},
|
7831
7840
|
"vertex_ai/claude-3-5-sonnet-v2": {
|
7841
|
+
"supports_computer_use": true,
|
7832
7842
|
"max_tokens": 8192,
|
7833
7843
|
"max_input_tokens": 200000,
|
7834
7844
|
"max_output_tokens": 8192,
|
@@ -8724,15 +8734,17 @@
|
|
8724
8734
|
"supports_tool_choice": true
|
8725
8735
|
},
|
8726
8736
|
"sambanova/Meta-Llama-3.1-8B-Instruct": {
|
8727
|
-
"max_tokens":
|
8728
|
-
"max_input_tokens":
|
8729
|
-
"max_output_tokens":
|
8737
|
+
"max_tokens": 16384,
|
8738
|
+
"max_input_tokens": 16384,
|
8739
|
+
"max_output_tokens": 16384,
|
8730
8740
|
"input_cost_per_token": 1e-07,
|
8731
8741
|
"output_cost_per_token": 2e-07,
|
8732
8742
|
"litellm_provider": "sambanova",
|
8733
|
-
"supports_function_calling": true,
|
8734
8743
|
"mode": "chat",
|
8735
|
-
"
|
8744
|
+
"supports_function_calling": true,
|
8745
|
+
"supports_tool_choice": true,
|
8746
|
+
"supports_response_schema": true,
|
8747
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
8736
8748
|
},
|
8737
8749
|
"sambanova/Meta-Llama-3.1-70B-Instruct": {
|
8738
8750
|
"max_tokens": 128000,
|
@@ -8746,48 +8758,50 @@
|
|
8746
8758
|
"supports_tool_choice": true
|
8747
8759
|
},
|
8748
8760
|
"sambanova/Meta-Llama-3.1-405B-Instruct": {
|
8749
|
-
"max_tokens":
|
8750
|
-
"max_input_tokens":
|
8751
|
-
"max_output_tokens":
|
8761
|
+
"max_tokens": 16384,
|
8762
|
+
"max_input_tokens": 16384,
|
8763
|
+
"max_output_tokens": 16384,
|
8752
8764
|
"input_cost_per_token": 5e-06,
|
8753
8765
|
"output_cost_per_token": 1e-05,
|
8754
8766
|
"litellm_provider": "sambanova",
|
8755
|
-
"supports_function_calling": true,
|
8756
8767
|
"mode": "chat",
|
8757
|
-
"
|
8768
|
+
"supports_function_calling": true,
|
8769
|
+
"supports_tool_choice": true,
|
8770
|
+
"supports_response_schema": true,
|
8771
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
8758
8772
|
},
|
8759
8773
|
"sambanova/Meta-Llama-3.2-1B-Instruct": {
|
8760
|
-
"max_tokens":
|
8761
|
-
"max_input_tokens":
|
8762
|
-
"max_output_tokens":
|
8763
|
-
"input_cost_per_token": 4e-
|
8764
|
-
"output_cost_per_token": 8e-
|
8774
|
+
"max_tokens": 16384,
|
8775
|
+
"max_input_tokens": 16384,
|
8776
|
+
"max_output_tokens": 16384,
|
8777
|
+
"input_cost_per_token": 4e-08,
|
8778
|
+
"output_cost_per_token": 8e-08,
|
8765
8779
|
"litellm_provider": "sambanova",
|
8766
|
-
"supports_function_calling": true,
|
8767
8780
|
"mode": "chat",
|
8768
|
-
"
|
8781
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
8769
8782
|
},
|
8770
8783
|
"sambanova/Meta-Llama-3.2-3B-Instruct": {
|
8771
|
-
"max_tokens":
|
8772
|
-
"max_input_tokens":
|
8773
|
-
"max_output_tokens":
|
8774
|
-
"input_cost_per_token": 8e-
|
8775
|
-
"output_cost_per_token": 1.6e-
|
8784
|
+
"max_tokens": 4096,
|
8785
|
+
"max_input_tokens": 4096,
|
8786
|
+
"max_output_tokens": 4096,
|
8787
|
+
"input_cost_per_token": 8e-08,
|
8788
|
+
"output_cost_per_token": 1.6e-07,
|
8776
8789
|
"litellm_provider": "sambanova",
|
8777
|
-
"supports_function_calling": true,
|
8778
8790
|
"mode": "chat",
|
8779
|
-
"
|
8791
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
8780
8792
|
},
|
8781
8793
|
"sambanova/Meta-Llama-3.3-70B-Instruct": {
|
8782
|
-
"max_tokens":
|
8783
|
-
"max_input_tokens":
|
8784
|
-
"max_output_tokens":
|
8794
|
+
"max_tokens": 131072,
|
8795
|
+
"max_input_tokens": 131072,
|
8796
|
+
"max_output_tokens": 131072,
|
8785
8797
|
"input_cost_per_token": 6e-07,
|
8786
8798
|
"output_cost_per_token": 1.2e-06,
|
8787
8799
|
"litellm_provider": "sambanova",
|
8788
|
-
"supports_function_calling": true,
|
8789
8800
|
"mode": "chat",
|
8790
|
-
"
|
8801
|
+
"supports_function_calling": true,
|
8802
|
+
"supports_response_schema": true,
|
8803
|
+
"supports_tool_choice": true,
|
8804
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
8791
8805
|
},
|
8792
8806
|
"sambanova/Qwen2.5-Coder-32B-Instruct": {
|
8793
8807
|
"max_tokens": 8000,
|
@@ -9662,6 +9676,7 @@
|
|
9662
9676
|
"supports_web_search": true
|
9663
9677
|
},
|
9664
9678
|
"claude-3-7-sonnet-latest": {
|
9679
|
+
"supports_computer_use": true,
|
9665
9680
|
"max_tokens": 128000,
|
9666
9681
|
"max_input_tokens": 200000,
|
9667
9682
|
"max_output_tokens": 128000,
|
@@ -9688,6 +9703,7 @@
|
|
9688
9703
|
"supports_reasoning": true
|
9689
9704
|
},
|
9690
9705
|
"claude-3-7-sonnet-20250219": {
|
9706
|
+
"supports_computer_use": true,
|
9691
9707
|
"max_tokens": 128000,
|
9692
9708
|
"max_input_tokens": 200000,
|
9693
9709
|
"max_output_tokens": 128000,
|
@@ -9715,6 +9731,7 @@
|
|
9715
9731
|
"supports_web_search": true
|
9716
9732
|
},
|
9717
9733
|
"vertex_ai/claude-3-7-sonnet@20250219": {
|
9734
|
+
"supports_computer_use": true,
|
9718
9735
|
"max_tokens": 8192,
|
9719
9736
|
"max_input_tokens": 200000,
|
9720
9737
|
"max_output_tokens": 8192,
|
@@ -9736,6 +9753,7 @@
|
|
9736
9753
|
"supports_tool_choice": true
|
9737
9754
|
},
|
9738
9755
|
"openrouter/anthropic/claude-3.7-sonnet": {
|
9756
|
+
"supports_computer_use": true,
|
9739
9757
|
"max_tokens": 8192,
|
9740
9758
|
"max_input_tokens": 200000,
|
9741
9759
|
"max_output_tokens": 8192,
|
@@ -9752,6 +9770,7 @@
|
|
9752
9770
|
"supports_tool_choice": true
|
9753
9771
|
},
|
9754
9772
|
"openrouter/anthropic/claude-3.7-sonnet:beta": {
|
9773
|
+
"supports_computer_use": true,
|
9755
9774
|
"max_tokens": 8192,
|
9756
9775
|
"max_input_tokens": 200000,
|
9757
9776
|
"max_output_tokens": 8192,
|
@@ -9780,6 +9799,7 @@
|
|
9780
9799
|
"mode": "rerank"
|
9781
9800
|
},
|
9782
9801
|
"anthropic.claude-3-7-sonnet-20250219-v1:0": {
|
9802
|
+
"supports_computer_use": true,
|
9783
9803
|
"max_tokens": 8192,
|
9784
9804
|
"max_input_tokens": 200000,
|
9785
9805
|
"max_output_tokens": 8192,
|
@@ -9799,6 +9819,7 @@
|
|
9799
9819
|
"supports_tool_choice": true
|
9800
9820
|
},
|
9801
9821
|
"us.anthropic.claude-3-7-sonnet-20250219-v1:0": {
|
9822
|
+
"supports_computer_use": true,
|
9802
9823
|
"max_tokens": 8192,
|
9803
9824
|
"max_input_tokens": 200000,
|
9804
9825
|
"max_output_tokens": 8192,
|
@@ -10474,6 +10495,7 @@
|
|
10474
10495
|
"mode": "chat"
|
10475
10496
|
},
|
10476
10497
|
"snowflake/claude-3-5-sonnet": {
|
10498
|
+
"supports_computer_use": true,
|
10477
10499
|
"max_tokens": 18000,
|
10478
10500
|
"max_input_tokens": 18000,
|
10479
10501
|
"max_output_tokens": 8192,
|
@@ -13267,6 +13289,7 @@
|
|
13267
13289
|
"source": "https://azuremarketplace.microsoft.com/pt-br/marketplace/apps/cohere.cohere-embed-4-offer?tab=PlansAndPrice"
|
13268
13290
|
},
|
13269
13291
|
"eu.anthropic.claude-3-7-sonnet-20250219-v1:0": {
|
13292
|
+
"supports_computer_use": true,
|
13270
13293
|
"max_tokens": 8192,
|
13271
13294
|
"max_input_tokens": 200000,
|
13272
13295
|
"max_output_tokens": 8192,
|
@@ -13359,5 +13382,115 @@
|
|
13359
13382
|
"max_output_tokens": 4096,
|
13360
13383
|
"litellm_provider": "featherless_ai",
|
13361
13384
|
"mode": "chat"
|
13385
|
+
},
|
13386
|
+
"sambanova/Llama-4-Maverick-17B-128E-Instruct": {
|
13387
|
+
"max_tokens": 131072,
|
13388
|
+
"max_input_tokens": 131072,
|
13389
|
+
"max_output_tokens": 131072,
|
13390
|
+
"input_cost_per_token": 6.3e-07,
|
13391
|
+
"output_cost_per_token": 1.8e-06,
|
13392
|
+
"litellm_provider": "sambanova",
|
13393
|
+
"mode": "chat",
|
13394
|
+
"supports_function_calling": true,
|
13395
|
+
"supports_tool_choice": true,
|
13396
|
+
"supports_response_schema": true,
|
13397
|
+
"supports_vision": true,
|
13398
|
+
"source": "https://cloud.sambanova.ai/plans/pricing",
|
13399
|
+
"metadata": {
|
13400
|
+
"notes": "For vision models, images are converted to 6432 input tokens and are billed at that amount"
|
13401
|
+
}
|
13402
|
+
},
|
13403
|
+
"sambanova/Llama-4-Scout-17B-16E-Instruct": {
|
13404
|
+
"max_tokens": 8192,
|
13405
|
+
"max_input_tokens": 8192,
|
13406
|
+
"max_output_tokens": 8192,
|
13407
|
+
"input_cost_per_token": 4e-07,
|
13408
|
+
"output_cost_per_token": 7e-07,
|
13409
|
+
"litellm_provider": "sambanova",
|
13410
|
+
"mode": "chat",
|
13411
|
+
"supports_function_calling": true,
|
13412
|
+
"supports_tool_choice": true,
|
13413
|
+
"supports_response_schema": true,
|
13414
|
+
"source": "https://cloud.sambanova.ai/plans/pricing",
|
13415
|
+
"metadata": {
|
13416
|
+
"notes": "For vision models, images are converted to 6432 input tokens and are billed at that amount"
|
13417
|
+
}
|
13418
|
+
},
|
13419
|
+
"sambanova/Meta-Llama-Guard-3-8B": {
|
13420
|
+
"max_tokens": 16384,
|
13421
|
+
"max_input_tokens": 16384,
|
13422
|
+
"max_output_tokens": 16384,
|
13423
|
+
"input_cost_per_token": 3e-07,
|
13424
|
+
"output_cost_per_token": 3e-07,
|
13425
|
+
"litellm_provider": "sambanova",
|
13426
|
+
"mode": "chat",
|
13427
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
13428
|
+
},
|
13429
|
+
"sambanova/Qwen3-32B": {
|
13430
|
+
"max_tokens": 8192,
|
13431
|
+
"max_input_tokens": 8192,
|
13432
|
+
"max_output_tokens": 8192,
|
13433
|
+
"input_cost_per_token": 4e-07,
|
13434
|
+
"output_cost_per_token": 8e-07,
|
13435
|
+
"litellm_provider": "sambanova",
|
13436
|
+
"supports_function_calling": true,
|
13437
|
+
"supports_tool_choice": true,
|
13438
|
+
"supports_reasoning": true,
|
13439
|
+
"mode": "chat",
|
13440
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
13441
|
+
},
|
13442
|
+
"sambanova/QwQ-32B": {
|
13443
|
+
"max_tokens": 16384,
|
13444
|
+
"max_input_tokens": 16384,
|
13445
|
+
"max_output_tokens": 16384,
|
13446
|
+
"input_cost_per_token": 5e-07,
|
13447
|
+
"output_cost_per_token": 1e-06,
|
13448
|
+
"litellm_provider": "sambanova",
|
13449
|
+
"mode": "chat",
|
13450
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
13451
|
+
},
|
13452
|
+
"sambanova/Qwen2-Audio-7B-Instruct": {
|
13453
|
+
"max_tokens": 4096,
|
13454
|
+
"max_input_tokens": 4096,
|
13455
|
+
"max_output_tokens": 4096,
|
13456
|
+
"input_cost_per_token": 5e-07,
|
13457
|
+
"output_cost_per_token": 0.0001,
|
13458
|
+
"litellm_provider": "sambanova",
|
13459
|
+
"mode": "chat",
|
13460
|
+
"supports_audio_input": true,
|
13461
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
13462
|
+
},
|
13463
|
+
"sambanova/DeepSeek-R1-Distill-Llama-70B": {
|
13464
|
+
"max_tokens": 131072,
|
13465
|
+
"max_input_tokens": 131072,
|
13466
|
+
"max_output_tokens": 131072,
|
13467
|
+
"input_cost_per_token": 7e-07,
|
13468
|
+
"output_cost_per_token": 1.4e-06,
|
13469
|
+
"litellm_provider": "sambanova",
|
13470
|
+
"mode": "chat",
|
13471
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
13472
|
+
},
|
13473
|
+
"sambanova/DeepSeek-R1": {
|
13474
|
+
"max_tokens": 32768,
|
13475
|
+
"max_input_tokens": 32768,
|
13476
|
+
"max_output_tokens": 32768,
|
13477
|
+
"input_cost_per_token": 5e-06,
|
13478
|
+
"output_cost_per_token": 7e-06,
|
13479
|
+
"litellm_provider": "sambanova",
|
13480
|
+
"mode": "chat",
|
13481
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
13482
|
+
},
|
13483
|
+
"sambanova/DeepSeek-V3-0324": {
|
13484
|
+
"max_tokens": 32768,
|
13485
|
+
"max_input_tokens": 32768,
|
13486
|
+
"max_output_tokens": 32768,
|
13487
|
+
"input_cost_per_token": 3e-06,
|
13488
|
+
"output_cost_per_token": 4.5e-06,
|
13489
|
+
"litellm_provider": "sambanova",
|
13490
|
+
"mode": "chat",
|
13491
|
+
"supports_function_calling": true,
|
13492
|
+
"supports_tool_choice": true,
|
13493
|
+
"supports_reasoning": true,
|
13494
|
+
"source": "https://cloud.sambanova.ai/plans/pricing"
|
13362
13495
|
}
|
13363
13496
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tokencostauto
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.45
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|