tokencostauto 0.1.47__py3-none-any.whl → 0.1.49__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.
@@ -13755,5 +13755,281 @@
13755
13755
  "audio"
13756
13756
  ],
13757
13757
  "source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-2.5-pro-preview"
13758
+ },
13759
+ "claude-opus-4-20250514": {
13760
+ "max_tokens": 128000,
13761
+ "max_input_tokens": 200000,
13762
+ "max_output_tokens": 128000,
13763
+ "input_cost_per_token": 1.5e-05,
13764
+ "output_cost_per_token": 7.5e-05,
13765
+ "search_context_cost_per_query": {
13766
+ "search_context_size_low": 0.01,
13767
+ "search_context_size_medium": 0.01,
13768
+ "search_context_size_high": 0.01
13769
+ },
13770
+ "cache_creation_input_token_cost": 1.875e-05,
13771
+ "cache_read_input_token_cost": 1.5e-06,
13772
+ "litellm_provider": "anthropic",
13773
+ "mode": "chat",
13774
+ "supports_function_calling": true,
13775
+ "supports_vision": true,
13776
+ "tool_use_system_prompt_tokens": 159,
13777
+ "supports_assistant_prefill": true,
13778
+ "supports_pdf_input": true,
13779
+ "supports_prompt_caching": true,
13780
+ "supports_response_schema": true,
13781
+ "supports_tool_choice": true,
13782
+ "supports_reasoning": true,
13783
+ "supports_computer_use": true
13784
+ },
13785
+ "claude-sonnet-4-20250514": {
13786
+ "max_tokens": 128000,
13787
+ "max_input_tokens": 200000,
13788
+ "max_output_tokens": 128000,
13789
+ "input_cost_per_token": 3e-06,
13790
+ "output_cost_per_token": 1.5e-05,
13791
+ "search_context_cost_per_query": {
13792
+ "search_context_size_low": 0.01,
13793
+ "search_context_size_medium": 0.01,
13794
+ "search_context_size_high": 0.01
13795
+ },
13796
+ "cache_creation_input_token_cost": 3.75e-06,
13797
+ "cache_read_input_token_cost": 3e-07,
13798
+ "litellm_provider": "anthropic",
13799
+ "mode": "chat",
13800
+ "supports_function_calling": true,
13801
+ "supports_vision": true,
13802
+ "tool_use_system_prompt_tokens": 159,
13803
+ "supports_assistant_prefill": true,
13804
+ "supports_pdf_input": true,
13805
+ "supports_prompt_caching": true,
13806
+ "supports_response_schema": true,
13807
+ "supports_tool_choice": true,
13808
+ "supports_reasoning": true,
13809
+ "supports_computer_use": true
13810
+ },
13811
+ "vertex_ai/claude-opus-4@20250514": {
13812
+ "max_tokens": 128000,
13813
+ "max_input_tokens": 200000,
13814
+ "max_output_tokens": 128000,
13815
+ "input_cost_per_token": 1.5e-05,
13816
+ "output_cost_per_token": 7.5e-05,
13817
+ "search_context_cost_per_query": {
13818
+ "search_context_size_low": 0.01,
13819
+ "search_context_size_medium": 0.01,
13820
+ "search_context_size_high": 0.01
13821
+ },
13822
+ "cache_creation_input_token_cost": 1.875e-05,
13823
+ "cache_read_input_token_cost": 1.5e-06,
13824
+ "litellm_provider": "vertex_ai-anthropic_models",
13825
+ "mode": "chat",
13826
+ "supports_function_calling": true,
13827
+ "supports_vision": true,
13828
+ "tool_use_system_prompt_tokens": 159,
13829
+ "supports_assistant_prefill": true,
13830
+ "supports_pdf_input": true,
13831
+ "supports_prompt_caching": true,
13832
+ "supports_response_schema": true,
13833
+ "supports_tool_choice": true,
13834
+ "supports_reasoning": true,
13835
+ "supports_computer_use": true
13836
+ },
13837
+ "vertex_ai/claude-sonnet-4@20250514": {
13838
+ "max_tokens": 128000,
13839
+ "max_input_tokens": 200000,
13840
+ "max_output_tokens": 128000,
13841
+ "input_cost_per_token": 3e-06,
13842
+ "output_cost_per_token": 1.5e-05,
13843
+ "search_context_cost_per_query": {
13844
+ "search_context_size_low": 0.01,
13845
+ "search_context_size_medium": 0.01,
13846
+ "search_context_size_high": 0.01
13847
+ },
13848
+ "cache_creation_input_token_cost": 3.75e-06,
13849
+ "cache_read_input_token_cost": 3e-07,
13850
+ "litellm_provider": "vertex_ai-anthropic_models",
13851
+ "mode": "chat",
13852
+ "supports_function_calling": true,
13853
+ "supports_vision": true,
13854
+ "tool_use_system_prompt_tokens": 159,
13855
+ "supports_assistant_prefill": true,
13856
+ "supports_pdf_input": true,
13857
+ "supports_prompt_caching": true,
13858
+ "supports_response_schema": true,
13859
+ "supports_tool_choice": true,
13860
+ "supports_reasoning": true,
13861
+ "supports_computer_use": true
13862
+ },
13863
+ "anthropic.claude-opus-4-20250514-v1:0": {
13864
+ "max_tokens": 128000,
13865
+ "max_input_tokens": 200000,
13866
+ "max_output_tokens": 128000,
13867
+ "input_cost_per_token": 1.5e-05,
13868
+ "output_cost_per_token": 7.5e-05,
13869
+ "search_context_cost_per_query": {
13870
+ "search_context_size_low": 0.01,
13871
+ "search_context_size_medium": 0.01,
13872
+ "search_context_size_high": 0.01
13873
+ },
13874
+ "cache_creation_input_token_cost": 1.875e-05,
13875
+ "cache_read_input_token_cost": 1.5e-06,
13876
+ "litellm_provider": "bedrock_converse",
13877
+ "mode": "chat",
13878
+ "supports_function_calling": true,
13879
+ "supports_vision": true,
13880
+ "tool_use_system_prompt_tokens": 159,
13881
+ "supports_assistant_prefill": true,
13882
+ "supports_pdf_input": true,
13883
+ "supports_prompt_caching": true,
13884
+ "supports_response_schema": true,
13885
+ "supports_tool_choice": true,
13886
+ "supports_reasoning": true,
13887
+ "supports_computer_use": true
13888
+ },
13889
+ "anthropic.claude-sonnet-4-20250514-v1:0": {
13890
+ "max_tokens": 128000,
13891
+ "max_input_tokens": 200000,
13892
+ "max_output_tokens": 128000,
13893
+ "input_cost_per_token": 3e-06,
13894
+ "output_cost_per_token": 1.5e-05,
13895
+ "search_context_cost_per_query": {
13896
+ "search_context_size_low": 0.01,
13897
+ "search_context_size_medium": 0.01,
13898
+ "search_context_size_high": 0.01
13899
+ },
13900
+ "cache_creation_input_token_cost": 3.75e-06,
13901
+ "cache_read_input_token_cost": 3e-07,
13902
+ "litellm_provider": "bedrock_converse",
13903
+ "mode": "chat",
13904
+ "supports_function_calling": true,
13905
+ "supports_vision": true,
13906
+ "tool_use_system_prompt_tokens": 159,
13907
+ "supports_assistant_prefill": true,
13908
+ "supports_pdf_input": true,
13909
+ "supports_prompt_caching": true,
13910
+ "supports_response_schema": true,
13911
+ "supports_tool_choice": true,
13912
+ "supports_reasoning": true,
13913
+ "supports_computer_use": true
13914
+ },
13915
+ "us.anthropic.claude-opus-4-20250514-v1:0": {
13916
+ "max_tokens": 128000,
13917
+ "max_input_tokens": 200000,
13918
+ "max_output_tokens": 128000,
13919
+ "input_cost_per_token": 1.5e-05,
13920
+ "output_cost_per_token": 7.5e-05,
13921
+ "search_context_cost_per_query": {
13922
+ "search_context_size_low": 0.01,
13923
+ "search_context_size_medium": 0.01,
13924
+ "search_context_size_high": 0.01
13925
+ },
13926
+ "cache_creation_input_token_cost": 1.875e-05,
13927
+ "cache_read_input_token_cost": 1.5e-06,
13928
+ "litellm_provider": "bedrock_converse",
13929
+ "mode": "chat",
13930
+ "supports_function_calling": true,
13931
+ "supports_vision": true,
13932
+ "tool_use_system_prompt_tokens": 159,
13933
+ "supports_assistant_prefill": true,
13934
+ "supports_pdf_input": true,
13935
+ "supports_prompt_caching": true,
13936
+ "supports_response_schema": true,
13937
+ "supports_tool_choice": true,
13938
+ "supports_reasoning": true,
13939
+ "supports_computer_use": true
13940
+ },
13941
+ "us.anthropic.claude-sonnet-4-20250514-v1:0": {
13942
+ "max_tokens": 128000,
13943
+ "max_input_tokens": 200000,
13944
+ "max_output_tokens": 128000,
13945
+ "input_cost_per_token": 3e-06,
13946
+ "output_cost_per_token": 1.5e-05,
13947
+ "search_context_cost_per_query": {
13948
+ "search_context_size_low": 0.01,
13949
+ "search_context_size_medium": 0.01,
13950
+ "search_context_size_high": 0.01
13951
+ },
13952
+ "cache_creation_input_token_cost": 3.75e-06,
13953
+ "cache_read_input_token_cost": 3e-07,
13954
+ "litellm_provider": "bedrock_converse",
13955
+ "mode": "chat",
13956
+ "supports_function_calling": true,
13957
+ "supports_vision": true,
13958
+ "tool_use_system_prompt_tokens": 159,
13959
+ "supports_assistant_prefill": true,
13960
+ "supports_pdf_input": true,
13961
+ "supports_prompt_caching": true,
13962
+ "supports_response_schema": true,
13963
+ "supports_tool_choice": true,
13964
+ "supports_reasoning": true,
13965
+ "supports_computer_use": true
13966
+ },
13967
+ "eu.anthropic.claude-opus-4-20250514-v1:0": {
13968
+ "max_tokens": 128000,
13969
+ "max_input_tokens": 200000,
13970
+ "max_output_tokens": 128000,
13971
+ "input_cost_per_token": 1.5e-05,
13972
+ "output_cost_per_token": 7.5e-05,
13973
+ "search_context_cost_per_query": {
13974
+ "search_context_size_low": 0.01,
13975
+ "search_context_size_medium": 0.01,
13976
+ "search_context_size_high": 0.01
13977
+ },
13978
+ "cache_creation_input_token_cost": 1.875e-05,
13979
+ "cache_read_input_token_cost": 1.5e-06,
13980
+ "litellm_provider": "bedrock_converse",
13981
+ "mode": "chat",
13982
+ "supports_function_calling": true,
13983
+ "supports_vision": true,
13984
+ "tool_use_system_prompt_tokens": 159,
13985
+ "supports_assistant_prefill": true,
13986
+ "supports_pdf_input": true,
13987
+ "supports_prompt_caching": true,
13988
+ "supports_response_schema": true,
13989
+ "supports_tool_choice": true,
13990
+ "supports_reasoning": true,
13991
+ "supports_computer_use": true
13992
+ },
13993
+ "eu.anthropic.claude-sonnet-4-20250514-v1:0": {
13994
+ "max_tokens": 128000,
13995
+ "max_input_tokens": 200000,
13996
+ "max_output_tokens": 128000,
13997
+ "input_cost_per_token": 3e-06,
13998
+ "output_cost_per_token": 1.5e-05,
13999
+ "search_context_cost_per_query": {
14000
+ "search_context_size_low": 0.01,
14001
+ "search_context_size_medium": 0.01,
14002
+ "search_context_size_high": 0.01
14003
+ },
14004
+ "cache_creation_input_token_cost": 3.75e-06,
14005
+ "cache_read_input_token_cost": 3e-07,
14006
+ "litellm_provider": "bedrock_converse",
14007
+ "mode": "chat",
14008
+ "supports_function_calling": true,
14009
+ "supports_vision": true,
14010
+ "tool_use_system_prompt_tokens": 159,
14011
+ "supports_assistant_prefill": true,
14012
+ "supports_pdf_input": true,
14013
+ "supports_prompt_caching": true,
14014
+ "supports_response_schema": true,
14015
+ "supports_tool_choice": true,
14016
+ "supports_reasoning": true,
14017
+ "supports_computer_use": true
14018
+ },
14019
+ "databricks/databricks-llama-4-maverick": {
14020
+ "max_tokens": 128000,
14021
+ "max_input_tokens": 128000,
14022
+ "max_output_tokens": 128000,
14023
+ "input_cost_per_token": 5e-06,
14024
+ "input_dbu_cost_per_token": 7.143e-05,
14025
+ "output_cost_per_token": 1.5e-05,
14026
+ "output_dbu_cost_per_token": 0.00021429,
14027
+ "litellm_provider": "databricks",
14028
+ "mode": "chat",
14029
+ "source": "https://www.databricks.com/product/pricing/foundation-model-serving",
14030
+ "metadata": {
14031
+ "notes": "Databricks documentation now provides both DBU costs (_dbu_cost_per_token) and dollar costs(_cost_per_token)."
14032
+ },
14033
+ "supports_tool_choice": true
13758
14034
  }
13759
14035
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tokencostauto
3
- Version: 0.1.47
3
+ Version: 0.1.49
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=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,,
@@ -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=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,,