tokencostauto 0.1.462__tar.gz → 0.1.466__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tokencostauto
3
- Version: 0.1.462
3
+ Version: 0.1.466
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
@@ -11,7 +11,7 @@ tokencostauto = ["model_prices.json"]
11
11
  [project]
12
12
 
13
13
  name = "tokencostauto"
14
- version = "0.1.462"
14
+ version = "0.1.466"
15
15
 
16
16
  authors = [
17
17
  { name = "Trisha Pan", email = "trishaepan@gmail.com" },
@@ -37,14 +37,14 @@
37
37
  "supports_vision": true
38
38
  },
39
39
  "gpt-4o-audio-preview": {
40
- "input_cost_per_audio_token": 0.0001,
40
+ "input_cost_per_audio_token": 4e-05,
41
41
  "input_cost_per_token": 2.5e-06,
42
42
  "litellm_provider": "openai",
43
43
  "max_input_tokens": 128000,
44
44
  "max_output_tokens": 16384,
45
45
  "max_tokens": 16384,
46
46
  "mode": "chat",
47
- "output_cost_per_audio_token": 0.0002,
47
+ "output_cost_per_audio_token": 8e-05,
48
48
  "output_cost_per_token": 1e-05,
49
49
  "supports_audio_input": true,
50
50
  "supports_audio_output": true,
@@ -54,14 +54,14 @@
54
54
  "supports_tool_choice": true
55
55
  },
56
56
  "gpt-4o-audio-preview-2024-10-01": {
57
- "input_cost_per_audio_token": 0.0001,
57
+ "input_cost_per_audio_token": 4e-05,
58
58
  "input_cost_per_token": 2.5e-06,
59
59
  "litellm_provider": "openai",
60
60
  "max_input_tokens": 128000,
61
61
  "max_output_tokens": 16384,
62
62
  "max_tokens": 16384,
63
63
  "mode": "chat",
64
- "output_cost_per_audio_token": 0.0002,
64
+ "output_cost_per_audio_token": 8e-05,
65
65
  "output_cost_per_token": 1e-05,
66
66
  "supports_audio_input": true,
67
67
  "supports_audio_output": true,
@@ -31659,6 +31659,9 @@
31659
31659
  "output_cost_per_token": 0.0
31660
31660
  },
31661
31661
  "azure_ai/claude-haiku-4-5": {
31662
+ "cache_creation_input_token_cost": 1.25e-06,
31663
+ "cache_creation_input_token_cost_above_1hr": 2e-06,
31664
+ "cache_read_input_token_cost": 1e-07,
31662
31665
  "input_cost_per_token": 1e-06,
31663
31666
  "litellm_provider": "azure_ai",
31664
31667
  "max_input_tokens": 200000,
@@ -31677,6 +31680,9 @@
31677
31680
  "supports_vision": true
31678
31681
  },
31679
31682
  "azure_ai/claude-opus-4-1": {
31683
+ "cache_creation_input_token_cost": 1.875e-05,
31684
+ "cache_creation_input_token_cost_above_1hr": 3e-05,
31685
+ "cache_read_input_token_cost": 1.5e-06,
31680
31686
  "input_cost_per_token": 1.5e-05,
31681
31687
  "litellm_provider": "azure_ai",
31682
31688
  "max_input_tokens": 200000,
@@ -31695,6 +31701,9 @@
31695
31701
  "supports_vision": true
31696
31702
  },
31697
31703
  "azure_ai/claude-sonnet-4-5": {
31704
+ "cache_creation_input_token_cost": 3.75e-06,
31705
+ "cache_creation_input_token_cost_above_1hr": 6e-06,
31706
+ "cache_read_input_token_cost": 3e-07,
31698
31707
  "input_cost_per_token": 3e-06,
31699
31708
  "litellm_provider": "azure_ai",
31700
31709
  "max_input_tokens": 200000,
@@ -35382,6 +35391,9 @@
35382
35391
  "supports_system_messages": true
35383
35392
  },
35384
35393
  "azure_ai/claude-opus-4-5": {
35394
+ "cache_creation_input_token_cost": 6.25e-06,
35395
+ "cache_creation_input_token_cost_above_1hr": 1e-05,
35396
+ "cache_read_input_token_cost": 5e-07,
35385
35397
  "input_cost_per_token": 5e-06,
35386
35398
  "litellm_provider": "azure_ai",
35387
35399
  "max_input_tokens": 200000,
@@ -35657,5 +35669,360 @@
35657
35669
  "mode": "chat",
35658
35670
  "output_cost_per_token": 0,
35659
35671
  "supports_reasoning": true
35672
+ },
35673
+ "gmi/anthropic/claude-opus-4.5": {
35674
+ "input_cost_per_token": 5e-06,
35675
+ "litellm_provider": "gmi",
35676
+ "max_input_tokens": 409600,
35677
+ "max_output_tokens": 32000,
35678
+ "max_tokens": 32000,
35679
+ "mode": "chat",
35680
+ "output_cost_per_token": 2.5e-05,
35681
+ "supports_function_calling": true,
35682
+ "supports_vision": true
35683
+ },
35684
+ "gmi/anthropic/claude-sonnet-4.5": {
35685
+ "input_cost_per_token": 3e-06,
35686
+ "litellm_provider": "gmi",
35687
+ "max_input_tokens": 409600,
35688
+ "max_output_tokens": 32000,
35689
+ "max_tokens": 32000,
35690
+ "mode": "chat",
35691
+ "output_cost_per_token": 1.5e-05,
35692
+ "supports_function_calling": true,
35693
+ "supports_vision": true
35694
+ },
35695
+ "gmi/anthropic/claude-sonnet-4": {
35696
+ "input_cost_per_token": 3e-06,
35697
+ "litellm_provider": "gmi",
35698
+ "max_input_tokens": 409600,
35699
+ "max_output_tokens": 32000,
35700
+ "max_tokens": 32000,
35701
+ "mode": "chat",
35702
+ "output_cost_per_token": 1.5e-05,
35703
+ "supports_function_calling": true,
35704
+ "supports_vision": true
35705
+ },
35706
+ "gmi/anthropic/claude-opus-4": {
35707
+ "input_cost_per_token": 1.5e-05,
35708
+ "litellm_provider": "gmi",
35709
+ "max_input_tokens": 409600,
35710
+ "max_output_tokens": 32000,
35711
+ "max_tokens": 32000,
35712
+ "mode": "chat",
35713
+ "output_cost_per_token": 7.5e-05,
35714
+ "supports_function_calling": true,
35715
+ "supports_vision": true
35716
+ },
35717
+ "gmi/openai/gpt-5.2": {
35718
+ "input_cost_per_token": 1.75e-06,
35719
+ "litellm_provider": "gmi",
35720
+ "max_input_tokens": 409600,
35721
+ "max_output_tokens": 32000,
35722
+ "max_tokens": 32000,
35723
+ "mode": "chat",
35724
+ "output_cost_per_token": 1.4e-05,
35725
+ "supports_function_calling": true
35726
+ },
35727
+ "gmi/openai/gpt-5.1": {
35728
+ "input_cost_per_token": 1.25e-06,
35729
+ "litellm_provider": "gmi",
35730
+ "max_input_tokens": 409600,
35731
+ "max_output_tokens": 32000,
35732
+ "max_tokens": 32000,
35733
+ "mode": "chat",
35734
+ "output_cost_per_token": 1e-05,
35735
+ "supports_function_calling": true
35736
+ },
35737
+ "gmi/openai/gpt-5": {
35738
+ "input_cost_per_token": 1.25e-06,
35739
+ "litellm_provider": "gmi",
35740
+ "max_input_tokens": 409600,
35741
+ "max_output_tokens": 32000,
35742
+ "max_tokens": 32000,
35743
+ "mode": "chat",
35744
+ "output_cost_per_token": 1e-05,
35745
+ "supports_function_calling": true
35746
+ },
35747
+ "gmi/openai/gpt-4o": {
35748
+ "input_cost_per_token": 2.5e-06,
35749
+ "litellm_provider": "gmi",
35750
+ "max_input_tokens": 131072,
35751
+ "max_output_tokens": 16384,
35752
+ "max_tokens": 16384,
35753
+ "mode": "chat",
35754
+ "output_cost_per_token": 1e-05,
35755
+ "supports_function_calling": true,
35756
+ "supports_vision": true
35757
+ },
35758
+ "gmi/openai/gpt-4o-mini": {
35759
+ "input_cost_per_token": 1.5e-07,
35760
+ "litellm_provider": "gmi",
35761
+ "max_input_tokens": 131072,
35762
+ "max_output_tokens": 16384,
35763
+ "max_tokens": 16384,
35764
+ "mode": "chat",
35765
+ "output_cost_per_token": 6e-07,
35766
+ "supports_function_calling": true,
35767
+ "supports_vision": true
35768
+ },
35769
+ "gmi/deepseek-ai/DeepSeek-V3.2": {
35770
+ "input_cost_per_token": 2.8e-07,
35771
+ "litellm_provider": "gmi",
35772
+ "max_input_tokens": 163840,
35773
+ "max_output_tokens": 16384,
35774
+ "max_tokens": 16384,
35775
+ "mode": "chat",
35776
+ "output_cost_per_token": 4e-07,
35777
+ "supports_function_calling": true
35778
+ },
35779
+ "gmi/deepseek-ai/DeepSeek-V3-0324": {
35780
+ "input_cost_per_token": 2.8e-07,
35781
+ "litellm_provider": "gmi",
35782
+ "max_input_tokens": 163840,
35783
+ "max_output_tokens": 16384,
35784
+ "max_tokens": 16384,
35785
+ "mode": "chat",
35786
+ "output_cost_per_token": 8.8e-07,
35787
+ "supports_function_calling": true
35788
+ },
35789
+ "gmi/google/gemini-3-pro-preview": {
35790
+ "input_cost_per_token": 2e-06,
35791
+ "litellm_provider": "gmi",
35792
+ "max_input_tokens": 1048576,
35793
+ "max_output_tokens": 65536,
35794
+ "max_tokens": 65536,
35795
+ "mode": "chat",
35796
+ "output_cost_per_token": 1.2e-05,
35797
+ "supports_function_calling": true,
35798
+ "supports_vision": true
35799
+ },
35800
+ "gmi/google/gemini-3-flash-preview": {
35801
+ "input_cost_per_token": 5e-07,
35802
+ "litellm_provider": "gmi",
35803
+ "max_input_tokens": 1048576,
35804
+ "max_output_tokens": 65536,
35805
+ "max_tokens": 65536,
35806
+ "mode": "chat",
35807
+ "output_cost_per_token": 3e-06,
35808
+ "supports_function_calling": true,
35809
+ "supports_vision": true
35810
+ },
35811
+ "gmi/moonshotai/Kimi-K2-Thinking": {
35812
+ "input_cost_per_token": 8e-07,
35813
+ "litellm_provider": "gmi",
35814
+ "max_input_tokens": 262144,
35815
+ "max_output_tokens": 16384,
35816
+ "max_tokens": 16384,
35817
+ "mode": "chat",
35818
+ "output_cost_per_token": 1.2e-06
35819
+ },
35820
+ "gmi/MiniMaxAI/MiniMax-M2.1": {
35821
+ "input_cost_per_token": 3e-07,
35822
+ "litellm_provider": "gmi",
35823
+ "max_input_tokens": 196608,
35824
+ "max_output_tokens": 16384,
35825
+ "max_tokens": 16384,
35826
+ "mode": "chat",
35827
+ "output_cost_per_token": 1.2e-06
35828
+ },
35829
+ "gmi/Qwen/Qwen3-VL-235B-A22B-Instruct-FP8": {
35830
+ "input_cost_per_token": 3e-07,
35831
+ "litellm_provider": "gmi",
35832
+ "max_input_tokens": 262144,
35833
+ "max_output_tokens": 16384,
35834
+ "max_tokens": 16384,
35835
+ "mode": "chat",
35836
+ "output_cost_per_token": 1.4e-06,
35837
+ "supports_vision": true
35838
+ },
35839
+ "gmi/zai-org/GLM-4.7-FP8": {
35840
+ "input_cost_per_token": 4e-07,
35841
+ "litellm_provider": "gmi",
35842
+ "max_input_tokens": 202752,
35843
+ "max_output_tokens": 16384,
35844
+ "max_tokens": 16384,
35845
+ "mode": "chat",
35846
+ "output_cost_per_token": 2e-06
35847
+ },
35848
+ "gpt-audio": {
35849
+ "input_cost_per_audio_token": 3.2e-05,
35850
+ "input_cost_per_token": 2.5e-06,
35851
+ "litellm_provider": "openai",
35852
+ "max_input_tokens": 128000,
35853
+ "max_output_tokens": 16384,
35854
+ "max_tokens": 16384,
35855
+ "mode": "chat",
35856
+ "output_cost_per_audio_token": 6.4e-05,
35857
+ "output_cost_per_token": 1e-05,
35858
+ "supported_endpoints": [
35859
+ "/v1/chat/completions",
35860
+ "/v1/responses",
35861
+ "/v1/realtime",
35862
+ "/v1/batch"
35863
+ ],
35864
+ "supported_modalities": [
35865
+ "text",
35866
+ "audio"
35867
+ ],
35868
+ "supported_output_modalities": [
35869
+ "text",
35870
+ "audio"
35871
+ ],
35872
+ "supports_audio_input": true,
35873
+ "supports_audio_output": true,
35874
+ "supports_function_calling": true,
35875
+ "supports_native_streaming": true,
35876
+ "supports_parallel_function_calling": true,
35877
+ "supports_prompt_caching": false,
35878
+ "supports_reasoning": false,
35879
+ "supports_response_schema": false,
35880
+ "supports_system_messages": true,
35881
+ "supports_tool_choice": true,
35882
+ "supports_vision": false
35883
+ },
35884
+ "gpt-audio-2025-08-28": {
35885
+ "input_cost_per_audio_token": 3.2e-05,
35886
+ "input_cost_per_token": 2.5e-06,
35887
+ "litellm_provider": "openai",
35888
+ "max_input_tokens": 128000,
35889
+ "max_output_tokens": 16384,
35890
+ "max_tokens": 16384,
35891
+ "mode": "chat",
35892
+ "output_cost_per_audio_token": 6.4e-05,
35893
+ "output_cost_per_token": 1e-05,
35894
+ "supported_endpoints": [
35895
+ "/v1/chat/completions",
35896
+ "/v1/responses",
35897
+ "/v1/realtime",
35898
+ "/v1/batch"
35899
+ ],
35900
+ "supported_modalities": [
35901
+ "text",
35902
+ "audio"
35903
+ ],
35904
+ "supported_output_modalities": [
35905
+ "text",
35906
+ "audio"
35907
+ ],
35908
+ "supports_audio_input": true,
35909
+ "supports_audio_output": true,
35910
+ "supports_function_calling": true,
35911
+ "supports_native_streaming": true,
35912
+ "supports_parallel_function_calling": true,
35913
+ "supports_prompt_caching": false,
35914
+ "supports_reasoning": false,
35915
+ "supports_response_schema": false,
35916
+ "supports_system_messages": true,
35917
+ "supports_tool_choice": true,
35918
+ "supports_vision": false
35919
+ },
35920
+ "gpt-audio-mini": {
35921
+ "input_cost_per_audio_token": 1e-05,
35922
+ "input_cost_per_token": 6e-07,
35923
+ "litellm_provider": "openai",
35924
+ "max_input_tokens": 128000,
35925
+ "max_output_tokens": 16384,
35926
+ "max_tokens": 16384,
35927
+ "mode": "chat",
35928
+ "output_cost_per_audio_token": 2e-05,
35929
+ "output_cost_per_token": 2.4e-06,
35930
+ "supported_endpoints": [
35931
+ "/v1/chat/completions",
35932
+ "/v1/responses",
35933
+ "/v1/realtime",
35934
+ "/v1/batch"
35935
+ ],
35936
+ "supported_modalities": [
35937
+ "text",
35938
+ "audio"
35939
+ ],
35940
+ "supported_output_modalities": [
35941
+ "text",
35942
+ "audio"
35943
+ ],
35944
+ "supports_audio_input": true,
35945
+ "supports_audio_output": true,
35946
+ "supports_function_calling": true,
35947
+ "supports_native_streaming": true,
35948
+ "supports_parallel_function_calling": true,
35949
+ "supports_prompt_caching": false,
35950
+ "supports_reasoning": false,
35951
+ "supports_response_schema": false,
35952
+ "supports_system_messages": true,
35953
+ "supports_tool_choice": true,
35954
+ "supports_vision": false
35955
+ },
35956
+ "gpt-audio-mini-2025-10-06": {
35957
+ "input_cost_per_audio_token": 1e-05,
35958
+ "input_cost_per_token": 6e-07,
35959
+ "litellm_provider": "openai",
35960
+ "max_input_tokens": 128000,
35961
+ "max_output_tokens": 16384,
35962
+ "max_tokens": 16384,
35963
+ "mode": "chat",
35964
+ "output_cost_per_audio_token": 2e-05,
35965
+ "output_cost_per_token": 2.4e-06,
35966
+ "supported_endpoints": [
35967
+ "/v1/chat/completions",
35968
+ "/v1/responses",
35969
+ "/v1/realtime",
35970
+ "/v1/batch"
35971
+ ],
35972
+ "supported_modalities": [
35973
+ "text",
35974
+ "audio"
35975
+ ],
35976
+ "supported_output_modalities": [
35977
+ "text",
35978
+ "audio"
35979
+ ],
35980
+ "supports_audio_input": true,
35981
+ "supports_audio_output": true,
35982
+ "supports_function_calling": true,
35983
+ "supports_native_streaming": true,
35984
+ "supports_parallel_function_calling": true,
35985
+ "supports_prompt_caching": false,
35986
+ "supports_reasoning": false,
35987
+ "supports_response_schema": false,
35988
+ "supports_system_messages": true,
35989
+ "supports_tool_choice": true,
35990
+ "supports_vision": false
35991
+ },
35992
+ "gpt-audio-mini-2025-12-15": {
35993
+ "input_cost_per_audio_token": 1e-05,
35994
+ "input_cost_per_token": 6e-07,
35995
+ "litellm_provider": "openai",
35996
+ "max_input_tokens": 128000,
35997
+ "max_output_tokens": 16384,
35998
+ "max_tokens": 16384,
35999
+ "mode": "chat",
36000
+ "output_cost_per_audio_token": 2e-05,
36001
+ "output_cost_per_token": 2.4e-06,
36002
+ "supported_endpoints": [
36003
+ "/v1/chat/completions",
36004
+ "/v1/responses",
36005
+ "/v1/realtime",
36006
+ "/v1/batch"
36007
+ ],
36008
+ "supported_modalities": [
36009
+ "text",
36010
+ "audio"
36011
+ ],
36012
+ "supported_output_modalities": [
36013
+ "text",
36014
+ "audio"
36015
+ ],
36016
+ "supports_audio_input": true,
36017
+ "supports_audio_output": true,
36018
+ "supports_function_calling": true,
36019
+ "supports_native_streaming": true,
36020
+ "supports_parallel_function_calling": true,
36021
+ "supports_prompt_caching": false,
36022
+ "supports_reasoning": false,
36023
+ "supports_response_schema": false,
36024
+ "supports_system_messages": true,
36025
+ "supports_tool_choice": true,
36026
+ "supports_vision": false
35660
36027
  }
35661
36028
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tokencostauto
3
- Version: 0.1.462
3
+ Version: 0.1.466
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