tokencostauto 0.1.49__py3-none-any.whl → 0.1.52__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 +46 -21
- {tokencostauto-0.1.49.dist-info → tokencostauto-0.1.52.dist-info}/METADATA +1 -1
- tokencostauto-0.1.52.dist-info/RECORD +9 -0
- tokencostauto-0.1.49.dist-info/RECORD +0 -9
- {tokencostauto-0.1.49.dist-info → tokencostauto-0.1.52.dist-info}/WHEEL +0 -0
- {tokencostauto-0.1.49.dist-info → tokencostauto-0.1.52.dist-info}/licenses/LICENSE +0 -0
- {tokencostauto-0.1.49.dist-info → tokencostauto-0.1.52.dist-info}/top_level.txt +0 -0
tokencostauto/model_prices.json
CHANGED
@@ -12999,7 +12999,7 @@
|
|
12999
12999
|
"max_output_tokens": 128000,
|
13000
13000
|
"input_cost_per_token": 2.5e-06,
|
13001
13001
|
"input_dbu_cost_per_token": 3.571e-05,
|
13002
|
-
"output_cost_per_token":
|
13002
|
+
"output_cost_per_token": 1.7857e-05,
|
13003
13003
|
"output_db_cost_per_token": 0.000214286,
|
13004
13004
|
"litellm_provider": "databricks",
|
13005
13005
|
"mode": "chat",
|
@@ -13757,9 +13757,9 @@
|
|
13757
13757
|
"source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-2.5-pro-preview"
|
13758
13758
|
},
|
13759
13759
|
"claude-opus-4-20250514": {
|
13760
|
-
"max_tokens":
|
13760
|
+
"max_tokens": 32000,
|
13761
13761
|
"max_input_tokens": 200000,
|
13762
|
-
"max_output_tokens":
|
13762
|
+
"max_output_tokens": 32000,
|
13763
13763
|
"input_cost_per_token": 1.5e-05,
|
13764
13764
|
"output_cost_per_token": 7.5e-05,
|
13765
13765
|
"search_context_cost_per_query": {
|
@@ -13783,9 +13783,9 @@
|
|
13783
13783
|
"supports_computer_use": true
|
13784
13784
|
},
|
13785
13785
|
"claude-sonnet-4-20250514": {
|
13786
|
-
"max_tokens":
|
13786
|
+
"max_tokens": 64000,
|
13787
13787
|
"max_input_tokens": 200000,
|
13788
|
-
"max_output_tokens":
|
13788
|
+
"max_output_tokens": 64000,
|
13789
13789
|
"input_cost_per_token": 3e-06,
|
13790
13790
|
"output_cost_per_token": 1.5e-05,
|
13791
13791
|
"search_context_cost_per_query": {
|
@@ -13809,9 +13809,9 @@
|
|
13809
13809
|
"supports_computer_use": true
|
13810
13810
|
},
|
13811
13811
|
"vertex_ai/claude-opus-4@20250514": {
|
13812
|
-
"max_tokens":
|
13812
|
+
"max_tokens": 32000,
|
13813
13813
|
"max_input_tokens": 200000,
|
13814
|
-
"max_output_tokens":
|
13814
|
+
"max_output_tokens": 32000,
|
13815
13815
|
"input_cost_per_token": 1.5e-05,
|
13816
13816
|
"output_cost_per_token": 7.5e-05,
|
13817
13817
|
"search_context_cost_per_query": {
|
@@ -13835,9 +13835,9 @@
|
|
13835
13835
|
"supports_computer_use": true
|
13836
13836
|
},
|
13837
13837
|
"vertex_ai/claude-sonnet-4@20250514": {
|
13838
|
-
"max_tokens":
|
13838
|
+
"max_tokens": 64000,
|
13839
13839
|
"max_input_tokens": 200000,
|
13840
|
-
"max_output_tokens":
|
13840
|
+
"max_output_tokens": 64000,
|
13841
13841
|
"input_cost_per_token": 3e-06,
|
13842
13842
|
"output_cost_per_token": 1.5e-05,
|
13843
13843
|
"search_context_cost_per_query": {
|
@@ -13861,9 +13861,9 @@
|
|
13861
13861
|
"supports_computer_use": true
|
13862
13862
|
},
|
13863
13863
|
"anthropic.claude-opus-4-20250514-v1:0": {
|
13864
|
-
"max_tokens":
|
13864
|
+
"max_tokens": 32000,
|
13865
13865
|
"max_input_tokens": 200000,
|
13866
|
-
"max_output_tokens":
|
13866
|
+
"max_output_tokens": 32000,
|
13867
13867
|
"input_cost_per_token": 1.5e-05,
|
13868
13868
|
"output_cost_per_token": 7.5e-05,
|
13869
13869
|
"search_context_cost_per_query": {
|
@@ -13887,9 +13887,9 @@
|
|
13887
13887
|
"supports_computer_use": true
|
13888
13888
|
},
|
13889
13889
|
"anthropic.claude-sonnet-4-20250514-v1:0": {
|
13890
|
-
"max_tokens":
|
13890
|
+
"max_tokens": 64000,
|
13891
13891
|
"max_input_tokens": 200000,
|
13892
|
-
"max_output_tokens":
|
13892
|
+
"max_output_tokens": 64000,
|
13893
13893
|
"input_cost_per_token": 3e-06,
|
13894
13894
|
"output_cost_per_token": 1.5e-05,
|
13895
13895
|
"search_context_cost_per_query": {
|
@@ -13913,9 +13913,9 @@
|
|
13913
13913
|
"supports_computer_use": true
|
13914
13914
|
},
|
13915
13915
|
"us.anthropic.claude-opus-4-20250514-v1:0": {
|
13916
|
-
"max_tokens":
|
13916
|
+
"max_tokens": 32000,
|
13917
13917
|
"max_input_tokens": 200000,
|
13918
|
-
"max_output_tokens":
|
13918
|
+
"max_output_tokens": 32000,
|
13919
13919
|
"input_cost_per_token": 1.5e-05,
|
13920
13920
|
"output_cost_per_token": 7.5e-05,
|
13921
13921
|
"search_context_cost_per_query": {
|
@@ -13939,9 +13939,9 @@
|
|
13939
13939
|
"supports_computer_use": true
|
13940
13940
|
},
|
13941
13941
|
"us.anthropic.claude-sonnet-4-20250514-v1:0": {
|
13942
|
-
"max_tokens":
|
13942
|
+
"max_tokens": 64000,
|
13943
13943
|
"max_input_tokens": 200000,
|
13944
|
-
"max_output_tokens":
|
13944
|
+
"max_output_tokens": 64000,
|
13945
13945
|
"input_cost_per_token": 3e-06,
|
13946
13946
|
"output_cost_per_token": 1.5e-05,
|
13947
13947
|
"search_context_cost_per_query": {
|
@@ -13965,9 +13965,9 @@
|
|
13965
13965
|
"supports_computer_use": true
|
13966
13966
|
},
|
13967
13967
|
"eu.anthropic.claude-opus-4-20250514-v1:0": {
|
13968
|
-
"max_tokens":
|
13968
|
+
"max_tokens": 32000,
|
13969
13969
|
"max_input_tokens": 200000,
|
13970
|
-
"max_output_tokens":
|
13970
|
+
"max_output_tokens": 32000,
|
13971
13971
|
"input_cost_per_token": 1.5e-05,
|
13972
13972
|
"output_cost_per_token": 7.5e-05,
|
13973
13973
|
"search_context_cost_per_query": {
|
@@ -13991,9 +13991,9 @@
|
|
13991
13991
|
"supports_computer_use": true
|
13992
13992
|
},
|
13993
13993
|
"eu.anthropic.claude-sonnet-4-20250514-v1:0": {
|
13994
|
-
"max_tokens":
|
13994
|
+
"max_tokens": 64000,
|
13995
13995
|
"max_input_tokens": 200000,
|
13996
|
-
"max_output_tokens":
|
13996
|
+
"max_output_tokens": 64000,
|
13997
13997
|
"input_cost_per_token": 3e-06,
|
13998
13998
|
"output_cost_per_token": 1.5e-05,
|
13999
13999
|
"search_context_cost_per_query": {
|
@@ -14031,5 +14031,30 @@
|
|
14031
14031
|
"notes": "Databricks documentation now provides both DBU costs (_dbu_cost_per_token) and dollar costs(_cost_per_token)."
|
14032
14032
|
},
|
14033
14033
|
"supports_tool_choice": true
|
14034
|
+
},
|
14035
|
+
"azure_ai/mistral-medium-2505": {
|
14036
|
+
"max_tokens": 8191,
|
14037
|
+
"max_input_tokens": 131072,
|
14038
|
+
"max_output_tokens": 8191,
|
14039
|
+
"input_cost_per_token": 4e-07,
|
14040
|
+
"output_cost_per_token": 2e-06,
|
14041
|
+
"litellm_provider": "azure_ai",
|
14042
|
+
"mode": "chat",
|
14043
|
+
"supports_function_calling": true,
|
14044
|
+
"supports_assistant_prefill": true,
|
14045
|
+
"supports_tool_choice": true
|
14046
|
+
},
|
14047
|
+
"mistral/devstral-small-2505": {
|
14048
|
+
"max_tokens": 128000,
|
14049
|
+
"max_input_tokens": 128000,
|
14050
|
+
"max_output_tokens": 128000,
|
14051
|
+
"input_cost_per_token": 1e-07,
|
14052
|
+
"output_cost_per_token": 3e-07,
|
14053
|
+
"litellm_provider": "mistral",
|
14054
|
+
"mode": "chat",
|
14055
|
+
"source": "https://mistral.ai/news/devstral",
|
14056
|
+
"supports_function_calling": true,
|
14057
|
+
"supports_assistant_prefill": true,
|
14058
|
+
"supports_tool_choice": true
|
14034
14059
|
}
|
14035
14060
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tokencostauto
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.52
|
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=loRI4dZvjZ6rLnPdy49en_88xzGP5N0K2_uOpaNg_WI,502054
|
5
|
+
tokencostauto-0.1.52.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
|
6
|
+
tokencostauto-0.1.52.dist-info/METADATA,sha256=0z5FS55nqOiwQRzfrEmL-8YrGR1WW9KtjG_ASCxMP8Y,204075
|
7
|
+
tokencostauto-0.1.52.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
8
|
+
tokencostauto-0.1.52.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
|
9
|
+
tokencostauto-0.1.52.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=2pxtl_-l1ENJdrcGEXEglkN96gR2h_CNUU99HVxcoWc,501196
|
5
|
-
tokencostauto-0.1.49.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
|
6
|
-
tokencostauto-0.1.49.dist-info/METADATA,sha256=R9jkk6Mx-RLDjNLOlhWbeUFz_pZO1WVjPgJK5aZKPlA,204075
|
7
|
-
tokencostauto-0.1.49.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
8
|
-
tokencostauto-0.1.49.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
|
9
|
-
tokencostauto-0.1.49.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|