tokencostauto 0.1.380__tar.gz → 0.1.382__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.380/tokencostauto.egg-info → tokencostauto-0.1.382}/PKG-INFO +1 -1
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/pyproject.toml +1 -1
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/tokencostauto/model_prices.json +75 -23
- {tokencostauto-0.1.380 → tokencostauto-0.1.382/tokencostauto.egg-info}/PKG-INFO +1 -1
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/LICENSE +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/MANIFEST.in +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/README.md +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/setup.cfg +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/tests/test_costs.py +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/tokencostauto/__init__.py +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/tokencostauto/constants.py +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/tokencostauto/costs.py +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/tokencostauto.egg-info/SOURCES.txt +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/tokencostauto.egg-info/dependency_links.txt +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/tokencostauto.egg-info/requires.txt +0 -0
- {tokencostauto-0.1.380 → tokencostauto-0.1.382}/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.382
|
|
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
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
"mode": "chat",
|
|
1744
1744
|
"output_cost_per_token": 8e-07,
|
|
1745
1745
|
"supports_function_calling": true,
|
|
1746
|
-
"supports_response_schema":
|
|
1746
|
+
"supports_response_schema": false,
|
|
1747
1747
|
"supports_tool_choice": true
|
|
1748
1748
|
},
|
|
1749
1749
|
"groq/llama3-8b-8192": {
|
|
@@ -1776,7 +1776,7 @@
|
|
|
1776
1776
|
"mode": "chat",
|
|
1777
1777
|
"output_cost_per_token": 8e-08,
|
|
1778
1778
|
"supports_function_calling": true,
|
|
1779
|
-
"supports_response_schema":
|
|
1779
|
+
"supports_response_schema": false,
|
|
1780
1780
|
"supports_tool_choice": true
|
|
1781
1781
|
},
|
|
1782
1782
|
"groq/llama-3.1-70b-versatile": {
|
|
@@ -1789,7 +1789,7 @@
|
|
|
1789
1789
|
"mode": "chat",
|
|
1790
1790
|
"output_cost_per_token": 7.9e-07,
|
|
1791
1791
|
"supports_function_calling": true,
|
|
1792
|
-
"supports_response_schema":
|
|
1792
|
+
"supports_response_schema": false,
|
|
1793
1793
|
"supports_tool_choice": true
|
|
1794
1794
|
},
|
|
1795
1795
|
"groq/llama-3.1-405b-reasoning": {
|
|
@@ -1801,7 +1801,7 @@
|
|
|
1801
1801
|
"mode": "chat",
|
|
1802
1802
|
"output_cost_per_token": 7.9e-07,
|
|
1803
1803
|
"supports_function_calling": true,
|
|
1804
|
-
"supports_response_schema":
|
|
1804
|
+
"supports_response_schema": false,
|
|
1805
1805
|
"supports_tool_choice": true
|
|
1806
1806
|
},
|
|
1807
1807
|
"groq/mixtral-8x7b-32768": {
|
|
@@ -1814,7 +1814,7 @@
|
|
|
1814
1814
|
"mode": "chat",
|
|
1815
1815
|
"output_cost_per_token": 2.4e-07,
|
|
1816
1816
|
"supports_function_calling": true,
|
|
1817
|
-
"supports_response_schema":
|
|
1817
|
+
"supports_response_schema": false,
|
|
1818
1818
|
"supports_tool_choice": true
|
|
1819
1819
|
},
|
|
1820
1820
|
"groq/gemma-7b-it": {
|
|
@@ -1827,7 +1827,7 @@
|
|
|
1827
1827
|
"mode": "chat",
|
|
1828
1828
|
"output_cost_per_token": 7e-08,
|
|
1829
1829
|
"supports_function_calling": true,
|
|
1830
|
-
"supports_response_schema":
|
|
1830
|
+
"supports_response_schema": false,
|
|
1831
1831
|
"supports_tool_choice": true
|
|
1832
1832
|
},
|
|
1833
1833
|
"groq/gemma2-9b-it": {
|
|
@@ -1839,7 +1839,7 @@
|
|
|
1839
1839
|
"mode": "chat",
|
|
1840
1840
|
"output_cost_per_token": 2e-07,
|
|
1841
1841
|
"supports_function_calling": false,
|
|
1842
|
-
"supports_response_schema":
|
|
1842
|
+
"supports_response_schema": false,
|
|
1843
1843
|
"supports_tool_choice": false
|
|
1844
1844
|
},
|
|
1845
1845
|
"groq/llama3-groq-70b-8192-tool-use-preview": {
|
|
@@ -1852,7 +1852,7 @@
|
|
|
1852
1852
|
"mode": "chat",
|
|
1853
1853
|
"output_cost_per_token": 8.9e-07,
|
|
1854
1854
|
"supports_function_calling": true,
|
|
1855
|
-
"supports_response_schema":
|
|
1855
|
+
"supports_response_schema": false,
|
|
1856
1856
|
"supports_tool_choice": true
|
|
1857
1857
|
},
|
|
1858
1858
|
"groq/llama3-groq-8b-8192-tool-use-preview": {
|
|
@@ -1865,7 +1865,7 @@
|
|
|
1865
1865
|
"mode": "chat",
|
|
1866
1866
|
"output_cost_per_token": 1.9e-07,
|
|
1867
1867
|
"supports_function_calling": true,
|
|
1868
|
-
"supports_response_schema":
|
|
1868
|
+
"supports_response_schema": false,
|
|
1869
1869
|
"supports_tool_choice": true
|
|
1870
1870
|
},
|
|
1871
1871
|
"cerebras/llama3.1-8b": {
|
|
@@ -7793,7 +7793,7 @@
|
|
|
7793
7793
|
"mode": "chat",
|
|
7794
7794
|
"output_cost_per_token": 4e-08,
|
|
7795
7795
|
"supports_function_calling": true,
|
|
7796
|
-
"supports_response_schema":
|
|
7796
|
+
"supports_response_schema": false,
|
|
7797
7797
|
"supports_tool_choice": true
|
|
7798
7798
|
},
|
|
7799
7799
|
"groq/llama-3.2-3b-preview": {
|
|
@@ -7806,7 +7806,7 @@
|
|
|
7806
7806
|
"mode": "chat",
|
|
7807
7807
|
"output_cost_per_token": 6e-08,
|
|
7808
7808
|
"supports_function_calling": true,
|
|
7809
|
-
"supports_response_schema":
|
|
7809
|
+
"supports_response_schema": false,
|
|
7810
7810
|
"supports_tool_choice": true
|
|
7811
7811
|
},
|
|
7812
7812
|
"groq/llama-3.2-11b-text-preview": {
|
|
@@ -7819,7 +7819,7 @@
|
|
|
7819
7819
|
"mode": "chat",
|
|
7820
7820
|
"output_cost_per_token": 1.8e-07,
|
|
7821
7821
|
"supports_function_calling": true,
|
|
7822
|
-
"supports_response_schema":
|
|
7822
|
+
"supports_response_schema": false,
|
|
7823
7823
|
"supports_tool_choice": true
|
|
7824
7824
|
},
|
|
7825
7825
|
"groq/llama-3.2-11b-vision-preview": {
|
|
@@ -7832,7 +7832,7 @@
|
|
|
7832
7832
|
"mode": "chat",
|
|
7833
7833
|
"output_cost_per_token": 1.8e-07,
|
|
7834
7834
|
"supports_function_calling": true,
|
|
7835
|
-
"supports_response_schema":
|
|
7835
|
+
"supports_response_schema": false,
|
|
7836
7836
|
"supports_tool_choice": true,
|
|
7837
7837
|
"supports_vision": true
|
|
7838
7838
|
},
|
|
@@ -7846,7 +7846,7 @@
|
|
|
7846
7846
|
"mode": "chat",
|
|
7847
7847
|
"output_cost_per_token": 9e-07,
|
|
7848
7848
|
"supports_function_calling": true,
|
|
7849
|
-
"supports_response_schema":
|
|
7849
|
+
"supports_response_schema": false,
|
|
7850
7850
|
"supports_tool_choice": true
|
|
7851
7851
|
},
|
|
7852
7852
|
"groq/llama-3.2-90b-vision-preview": {
|
|
@@ -7859,7 +7859,7 @@
|
|
|
7859
7859
|
"mode": "chat",
|
|
7860
7860
|
"output_cost_per_token": 9e-07,
|
|
7861
7861
|
"supports_function_calling": true,
|
|
7862
|
-
"supports_response_schema":
|
|
7862
|
+
"supports_response_schema": false,
|
|
7863
7863
|
"supports_tool_choice": true,
|
|
7864
7864
|
"supports_vision": true
|
|
7865
7865
|
},
|
|
@@ -8337,7 +8337,7 @@
|
|
|
8337
8337
|
"mode": "chat",
|
|
8338
8338
|
"output_cost_per_token": 7.9e-07,
|
|
8339
8339
|
"supports_function_calling": true,
|
|
8340
|
-
"supports_response_schema":
|
|
8340
|
+
"supports_response_schema": false,
|
|
8341
8341
|
"supports_tool_choice": true
|
|
8342
8342
|
},
|
|
8343
8343
|
"groq/llama-3.3-70b-specdec": {
|
|
@@ -9095,7 +9095,7 @@
|
|
|
9095
9095
|
"output_cost_per_token": 9.9e-07,
|
|
9096
9096
|
"supports_function_calling": true,
|
|
9097
9097
|
"supports_reasoning": true,
|
|
9098
|
-
"supports_response_schema":
|
|
9098
|
+
"supports_response_schema": false,
|
|
9099
9099
|
"supports_tool_choice": true
|
|
9100
9100
|
},
|
|
9101
9101
|
"gemini/gemini-2.0-flash": {
|
|
@@ -16949,14 +16949,15 @@
|
|
|
16949
16949
|
"supports_vision": true
|
|
16950
16950
|
},
|
|
16951
16951
|
"moonshot/kimi-thinking-preview": {
|
|
16952
|
-
"
|
|
16952
|
+
"cache_read_input_token_cost": 1.5e-07,
|
|
16953
|
+
"input_cost_per_token": 6e-07,
|
|
16953
16954
|
"litellm_provider": "moonshot",
|
|
16954
16955
|
"max_input_tokens": 131072,
|
|
16955
16956
|
"max_output_tokens": 131072,
|
|
16956
16957
|
"max_tokens": 131072,
|
|
16957
16958
|
"mode": "chat",
|
|
16958
|
-
"output_cost_per_token":
|
|
16959
|
-
"source": "https://platform.moonshot.ai/docs/pricing",
|
|
16959
|
+
"output_cost_per_token": 2.5e-06,
|
|
16960
|
+
"source": "https://platform.moonshot.ai/docs/pricing/chat#generation-model-kimi-k2",
|
|
16960
16961
|
"supports_vision": true
|
|
16961
16962
|
},
|
|
16962
16963
|
"moonshot/moonshot-v1-8k-vision-preview": {
|
|
@@ -17008,7 +17009,7 @@
|
|
|
17008
17009
|
"output_cost_per_token": 5.9e-07,
|
|
17009
17010
|
"supports_function_calling": true,
|
|
17010
17011
|
"supports_reasoning": true,
|
|
17011
|
-
"supports_response_schema":
|
|
17012
|
+
"supports_response_schema": false,
|
|
17012
17013
|
"supports_tool_choice": true
|
|
17013
17014
|
},
|
|
17014
17015
|
"openrouter/qwen/qwen-vl-plus": {
|
|
@@ -22660,8 +22661,8 @@
|
|
|
22660
22661
|
"max_tokens": 128000,
|
|
22661
22662
|
"max_input_tokens": 128000,
|
|
22662
22663
|
"max_output_tokens": 128000,
|
|
22663
|
-
"input_cost_per_token":
|
|
22664
|
-
"output_cost_per_token":
|
|
22664
|
+
"input_cost_per_token": 6e-07,
|
|
22665
|
+
"output_cost_per_token": 2.5e-06,
|
|
22665
22666
|
"litellm_provider": "wandb",
|
|
22666
22667
|
"mode": "chat"
|
|
22667
22668
|
},
|
|
@@ -28952,5 +28953,56 @@
|
|
|
28952
28953
|
"supports_tool_choice": true,
|
|
28953
28954
|
"supports_vision": true,
|
|
28954
28955
|
"tool_use_system_prompt_tokens": 159
|
|
28956
|
+
},
|
|
28957
|
+
"amazon.titan-image-generator-v2:0": {
|
|
28958
|
+
"input_cost_per_image": 0.0,
|
|
28959
|
+
"output_cost_per_image": 0.008,
|
|
28960
|
+
"output_cost_per_image_premium_image": 0.01,
|
|
28961
|
+
"output_cost_per_image_above_1024_and_1024_pixels": 0.01,
|
|
28962
|
+
"output_cost_per_image_above_1024_and_1024_pixels_and_premium_image": 0.012,
|
|
28963
|
+
"litellm_provider": "bedrock",
|
|
28964
|
+
"mode": "image_generation"
|
|
28965
|
+
},
|
|
28966
|
+
"moonshot/kimi-k2-0905-preview": {
|
|
28967
|
+
"cache_read_input_token_cost": 1.5e-07,
|
|
28968
|
+
"input_cost_per_token": 6e-07,
|
|
28969
|
+
"litellm_provider": "moonshot",
|
|
28970
|
+
"max_input_tokens": 262144,
|
|
28971
|
+
"max_output_tokens": 262144,
|
|
28972
|
+
"max_tokens": 262144,
|
|
28973
|
+
"mode": "chat",
|
|
28974
|
+
"output_cost_per_token": 2.5e-06,
|
|
28975
|
+
"source": "https://platform.moonshot.ai/docs/pricing/chat#generation-model-kimi-k2",
|
|
28976
|
+
"supports_function_calling": true,
|
|
28977
|
+
"supports_tool_choice": true,
|
|
28978
|
+
"supports_web_search": true
|
|
28979
|
+
},
|
|
28980
|
+
"moonshot/kimi-k2-turbo-preview": {
|
|
28981
|
+
"cache_read_input_token_cost": 1.5e-07,
|
|
28982
|
+
"input_cost_per_token": 1.15e-06,
|
|
28983
|
+
"litellm_provider": "moonshot",
|
|
28984
|
+
"max_input_tokens": 262144,
|
|
28985
|
+
"max_output_tokens": 262144,
|
|
28986
|
+
"max_tokens": 262144,
|
|
28987
|
+
"mode": "chat",
|
|
28988
|
+
"output_cost_per_token": 8e-06,
|
|
28989
|
+
"source": "https://platform.moonshot.ai/docs/pricing/chat#generation-model-kimi-k2",
|
|
28990
|
+
"supports_function_calling": true,
|
|
28991
|
+
"supports_tool_choice": true,
|
|
28992
|
+
"supports_web_search": true
|
|
28993
|
+
},
|
|
28994
|
+
"moonshot/kimi-k2-thinking-turbo": {
|
|
28995
|
+
"cache_read_input_token_cost": 1.5e-07,
|
|
28996
|
+
"input_cost_per_token": 1.15e-06,
|
|
28997
|
+
"litellm_provider": "moonshot",
|
|
28998
|
+
"max_input_tokens": 262144,
|
|
28999
|
+
"max_output_tokens": 262144,
|
|
29000
|
+
"max_tokens": 262144,
|
|
29001
|
+
"mode": "chat",
|
|
29002
|
+
"output_cost_per_token": 8e-06,
|
|
29003
|
+
"source": "https://platform.moonshot.ai/docs/pricing/chat#generation-model-kimi-k2",
|
|
29004
|
+
"supports_function_calling": true,
|
|
29005
|
+
"supports_tool_choice": true,
|
|
29006
|
+
"supports_web_search": true
|
|
28955
29007
|
}
|
|
28956
29008
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tokencostauto
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.382
|
|
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
|