tokencostauto 0.1.312__tar.gz → 0.1.315__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.312/tokencostauto.egg-info → tokencostauto-0.1.315}/PKG-INFO +1 -1
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/pyproject.toml +1 -1
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/tokencostauto/model_prices.json +49 -5
- {tokencostauto-0.1.312 → tokencostauto-0.1.315/tokencostauto.egg-info}/PKG-INFO +1 -1
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/LICENSE +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/MANIFEST.in +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/README.md +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/setup.cfg +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/tests/test_costs.py +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/tokencostauto/__init__.py +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/tokencostauto/constants.py +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/tokencostauto/costs.py +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/tokencostauto.egg-info/SOURCES.txt +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/tokencostauto.egg-info/dependency_links.txt +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/tokencostauto.egg-info/requires.txt +0 -0
- {tokencostauto-0.1.312 → tokencostauto-0.1.315}/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.315
|
|
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
|
|
@@ -134,6 +134,7 @@
|
|
|
134
134
|
"supports_vision": true
|
|
135
135
|
},
|
|
136
136
|
"o1-mini-2024-09-12": {
|
|
137
|
+
"deprecation_date": "2025-10-27",
|
|
137
138
|
"cache_read_input_token_cost": 1.5e-06,
|
|
138
139
|
"input_cost_per_token": 3e-06,
|
|
139
140
|
"litellm_provider": "openai",
|
|
@@ -342,6 +343,7 @@
|
|
|
342
343
|
"supports_vision": true
|
|
343
344
|
},
|
|
344
345
|
"gpt-4-1106-preview": {
|
|
346
|
+
"deprecation_date": "2026-03-26",
|
|
345
347
|
"input_cost_per_token": 1e-05,
|
|
346
348
|
"litellm_provider": "openai",
|
|
347
349
|
"max_input_tokens": 128000,
|
|
@@ -356,6 +358,7 @@
|
|
|
356
358
|
"supports_tool_choice": true
|
|
357
359
|
},
|
|
358
360
|
"gpt-4-0125-preview": {
|
|
361
|
+
"deprecation_date": "2026-03-26",
|
|
359
362
|
"input_cost_per_token": 1e-05,
|
|
360
363
|
"litellm_provider": "openai",
|
|
361
364
|
"max_input_tokens": 128000,
|
|
@@ -438,6 +441,7 @@
|
|
|
438
441
|
"supports_tool_choice": true
|
|
439
442
|
},
|
|
440
443
|
"gpt-3.5-turbo-1106": {
|
|
444
|
+
"deprecation_date": "2026-09-28",
|
|
441
445
|
"input_cost_per_token": 1e-06,
|
|
442
446
|
"litellm_provider": "openai",
|
|
443
447
|
"max_input_tokens": 16385,
|
|
@@ -849,6 +853,7 @@
|
|
|
849
853
|
"supports_vision": true
|
|
850
854
|
},
|
|
851
855
|
"azure/gpt-4o-2024-08-06": {
|
|
856
|
+
"deprecation_date": "2026-02-27",
|
|
852
857
|
"cache_read_input_token_cost": 1.25e-06,
|
|
853
858
|
"input_cost_per_token": 2.5e-06,
|
|
854
859
|
"litellm_provider": "azure",
|
|
@@ -880,7 +885,7 @@
|
|
|
880
885
|
},
|
|
881
886
|
"azure/global-standard/gpt-4o-2024-08-06": {
|
|
882
887
|
"cache_read_input_token_cost": 1.25e-06,
|
|
883
|
-
"deprecation_date": "
|
|
888
|
+
"deprecation_date": "2026-02-27",
|
|
884
889
|
"input_cost_per_token": 2.5e-06,
|
|
885
890
|
"litellm_provider": "azure",
|
|
886
891
|
"max_input_tokens": 128000,
|
|
@@ -1188,6 +1193,7 @@
|
|
|
1188
1193
|
"output_cost_per_token": 0.0
|
|
1189
1194
|
},
|
|
1190
1195
|
"azure/text-embedding-3-small": {
|
|
1196
|
+
"deprecation_date": "2026-04-30",
|
|
1191
1197
|
"input_cost_per_token": 2e-08,
|
|
1192
1198
|
"litellm_provider": "azure",
|
|
1193
1199
|
"max_input_tokens": 8191,
|
|
@@ -1946,7 +1952,6 @@
|
|
|
1946
1952
|
"cache_creation_input_token_cost": 3e-07,
|
|
1947
1953
|
"cache_creation_input_token_cost_above_1hr": 6e-06,
|
|
1948
1954
|
"cache_read_input_token_cost": 3e-08,
|
|
1949
|
-
"deprecation_date": "2025-03-01",
|
|
1950
1955
|
"input_cost_per_token": 2.5e-07,
|
|
1951
1956
|
"litellm_provider": "anthropic",
|
|
1952
1957
|
"max_input_tokens": 200000,
|
|
@@ -1982,7 +1987,7 @@
|
|
|
1982
1987
|
"cache_creation_input_token_cost": 1.875e-05,
|
|
1983
1988
|
"cache_creation_input_token_cost_above_1hr": 6e-06,
|
|
1984
1989
|
"cache_read_input_token_cost": 1.5e-06,
|
|
1985
|
-
"deprecation_date": "
|
|
1990
|
+
"deprecation_date": "2026-05-01",
|
|
1986
1991
|
"input_cost_per_token": 1.5e-05,
|
|
1987
1992
|
"litellm_provider": "anthropic",
|
|
1988
1993
|
"max_input_tokens": 200000,
|
|
@@ -7746,6 +7751,7 @@
|
|
|
7746
7751
|
"supports_vision": true
|
|
7747
7752
|
},
|
|
7748
7753
|
"azure/gpt-4o-2024-11-20": {
|
|
7754
|
+
"deprecation_date": "2026-03-01",
|
|
7749
7755
|
"cache_read_input_token_cost": 1.25e-06,
|
|
7750
7756
|
"input_cost_per_token": 2.75e-06,
|
|
7751
7757
|
"litellm_provider": "azure",
|
|
@@ -7763,7 +7769,7 @@
|
|
|
7763
7769
|
},
|
|
7764
7770
|
"azure/global-standard/gpt-4o-2024-11-20": {
|
|
7765
7771
|
"cache_read_input_token_cost": 1.25e-06,
|
|
7766
|
-
"deprecation_date": "
|
|
7772
|
+
"deprecation_date": "2026-03-01",
|
|
7767
7773
|
"input_cost_per_token": 2.5e-06,
|
|
7768
7774
|
"litellm_provider": "azure",
|
|
7769
7775
|
"max_input_tokens": 128000,
|
|
@@ -9800,7 +9806,7 @@
|
|
|
9800
9806
|
"cache_creation_input_token_cost": 3.75e-06,
|
|
9801
9807
|
"cache_creation_input_token_cost_above_1hr": 6e-06,
|
|
9802
9808
|
"cache_read_input_token_cost": 3e-07,
|
|
9803
|
-
"deprecation_date": "2026-02-
|
|
9809
|
+
"deprecation_date": "2026-02-19",
|
|
9804
9810
|
"input_cost_per_token": 3e-06,
|
|
9805
9811
|
"litellm_provider": "anthropic",
|
|
9806
9812
|
"max_input_tokens": 200000,
|
|
@@ -10209,6 +10215,7 @@
|
|
|
10209
10215
|
"supports_vision": false
|
|
10210
10216
|
},
|
|
10211
10217
|
"azure/us/gpt-4o-2024-11-20": {
|
|
10218
|
+
"deprecation_date": "2026-03-01",
|
|
10212
10219
|
"cache_creation_input_token_cost": 1.38e-06,
|
|
10213
10220
|
"input_cost_per_token": 2.75e-06,
|
|
10214
10221
|
"litellm_provider": "azure",
|
|
@@ -10224,6 +10231,7 @@
|
|
|
10224
10231
|
"supports_vision": true
|
|
10225
10232
|
},
|
|
10226
10233
|
"azure/eu/gpt-4o-2024-11-20": {
|
|
10234
|
+
"deprecation_date": "2026-03-01",
|
|
10227
10235
|
"cache_creation_input_token_cost": 1.38e-06,
|
|
10228
10236
|
"input_cost_per_token": 2.75e-06,
|
|
10229
10237
|
"litellm_provider": "azure",
|
|
@@ -10239,6 +10247,7 @@
|
|
|
10239
10247
|
"supports_vision": true
|
|
10240
10248
|
},
|
|
10241
10249
|
"azure/us/gpt-4o-2024-08-06": {
|
|
10250
|
+
"deprecation_date": "2026-02-27",
|
|
10242
10251
|
"cache_read_input_token_cost": 1.375e-06,
|
|
10243
10252
|
"input_cost_per_token": 2.75e-06,
|
|
10244
10253
|
"litellm_provider": "azure",
|
|
@@ -10255,6 +10264,7 @@
|
|
|
10255
10264
|
"supports_vision": true
|
|
10256
10265
|
},
|
|
10257
10266
|
"azure/eu/gpt-4o-2024-08-06": {
|
|
10267
|
+
"deprecation_date": "2026-02-27",
|
|
10258
10268
|
"cache_read_input_token_cost": 1.375e-06,
|
|
10259
10269
|
"input_cost_per_token": 2.75e-06,
|
|
10260
10270
|
"litellm_provider": "azure",
|
|
@@ -10751,6 +10761,7 @@
|
|
|
10751
10761
|
"mode": "chat"
|
|
10752
10762
|
},
|
|
10753
10763
|
"azure/global/gpt-4o-2024-11-20": {
|
|
10764
|
+
"deprecation_date": "2026-03-01",
|
|
10754
10765
|
"cache_read_input_token_cost": 1.25e-06,
|
|
10755
10766
|
"input_cost_per_token": 2.5e-06,
|
|
10756
10767
|
"litellm_provider": "azure",
|
|
@@ -10767,6 +10778,7 @@
|
|
|
10767
10778
|
"supports_vision": true
|
|
10768
10779
|
},
|
|
10769
10780
|
"azure/global/gpt-4o-2024-08-06": {
|
|
10781
|
+
"deprecation_date": "2026-02-27",
|
|
10770
10782
|
"cache_read_input_token_cost": 1.25e-06,
|
|
10771
10783
|
"input_cost_per_token": 2.5e-06,
|
|
10772
10784
|
"litellm_provider": "azure",
|
|
@@ -11607,6 +11619,7 @@
|
|
|
11607
11619
|
"supports_web_search": false
|
|
11608
11620
|
},
|
|
11609
11621
|
"azure/gpt-4.1-2025-04-14": {
|
|
11622
|
+
"deprecation_date": "2026-11-04",
|
|
11610
11623
|
"cache_read_input_token_cost": 5e-07,
|
|
11611
11624
|
"input_cost_per_token": 2e-06,
|
|
11612
11625
|
"input_cost_per_token_batches": 1e-06,
|
|
@@ -11673,6 +11686,7 @@
|
|
|
11673
11686
|
"supports_web_search": false
|
|
11674
11687
|
},
|
|
11675
11688
|
"azure/gpt-4.1-mini-2025-04-14": {
|
|
11689
|
+
"deprecation_date": "2026-11-04",
|
|
11676
11690
|
"cache_read_input_token_cost": 1e-07,
|
|
11677
11691
|
"input_cost_per_token": 4e-07,
|
|
11678
11692
|
"input_cost_per_token_batches": 2e-07,
|
|
@@ -11738,6 +11752,7 @@
|
|
|
11738
11752
|
"supports_vision": true
|
|
11739
11753
|
},
|
|
11740
11754
|
"azure/gpt-4.1-nano-2025-04-14": {
|
|
11755
|
+
"deprecation_date": "2026-11-04",
|
|
11741
11756
|
"cache_read_input_token_cost": 2.5e-08,
|
|
11742
11757
|
"input_cost_per_token": 1e-07,
|
|
11743
11758
|
"input_cost_per_token_batches": 5e-08,
|
|
@@ -11799,6 +11814,7 @@
|
|
|
11799
11814
|
"supports_vision": true
|
|
11800
11815
|
},
|
|
11801
11816
|
"azure/o3-2025-04-16": {
|
|
11817
|
+
"deprecation_date": "2026-04-16",
|
|
11802
11818
|
"cache_read_input_token_cost": 2.5e-06,
|
|
11803
11819
|
"input_cost_per_token": 1e-05,
|
|
11804
11820
|
"litellm_provider": "azure",
|
|
@@ -13963,6 +13979,7 @@
|
|
|
13963
13979
|
"cache_creation_input_token_cost_above_1hr": 3e-05,
|
|
13964
13980
|
"cache_read_input_token_cost": 1.5e-06,
|
|
13965
13981
|
"input_cost_per_token": 1.5e-05,
|
|
13982
|
+
"deprecation_date": "2026-05-14",
|
|
13966
13983
|
"litellm_provider": "anthropic",
|
|
13967
13984
|
"max_input_tokens": 200000,
|
|
13968
13985
|
"max_output_tokens": 32000,
|
|
@@ -13986,6 +14003,7 @@
|
|
|
13986
14003
|
"tool_use_system_prompt_tokens": 159
|
|
13987
14004
|
},
|
|
13988
14005
|
"claude-sonnet-4-20250514": {
|
|
14006
|
+
"deprecation_date": "2026-05-14",
|
|
13989
14007
|
"cache_creation_input_token_cost": 3.75e-06,
|
|
13990
14008
|
"cache_creation_input_token_cost_above_1hr": 6e-06,
|
|
13991
14009
|
"cache_read_input_token_cost": 3e-07,
|
|
@@ -17861,6 +17879,7 @@
|
|
|
17861
17879
|
"cache_creation_input_token_cost_above_1hr": 3e-05,
|
|
17862
17880
|
"cache_read_input_token_cost": 1.5e-06,
|
|
17863
17881
|
"input_cost_per_token": 1.5e-05,
|
|
17882
|
+
"deprecation_date": "2026-08-05",
|
|
17864
17883
|
"litellm_provider": "anthropic",
|
|
17865
17884
|
"max_input_tokens": 200000,
|
|
17866
17885
|
"max_output_tokens": 32000,
|
|
@@ -24477,9 +24496,13 @@
|
|
|
24477
24496
|
},
|
|
24478
24497
|
"openrouter/anthropic/claude-sonnet-4.5": {
|
|
24479
24498
|
"input_cost_per_image": 0.0048,
|
|
24499
|
+
"cache_creation_input_token_cost": 3.75e-06,
|
|
24500
|
+
"cache_read_input_token_cost": 3e-07,
|
|
24480
24501
|
"input_cost_per_token": 3e-06,
|
|
24481
24502
|
"input_cost_per_token_above_200k_tokens": 6e-06,
|
|
24482
24503
|
"output_cost_per_token_above_200k_tokens": 2.25e-05,
|
|
24504
|
+
"cache_creation_input_token_cost_above_200k_tokens": 7.5e-06,
|
|
24505
|
+
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
|
|
24483
24506
|
"litellm_provider": "openrouter",
|
|
24484
24507
|
"max_input_tokens": 1000000,
|
|
24485
24508
|
"max_output_tokens": 1000000,
|
|
@@ -24489,6 +24512,7 @@
|
|
|
24489
24512
|
"supports_assistant_prefill": true,
|
|
24490
24513
|
"supports_computer_use": true,
|
|
24491
24514
|
"supports_function_calling": true,
|
|
24515
|
+
"supports_prompt_caching": true,
|
|
24492
24516
|
"supports_reasoning": true,
|
|
24493
24517
|
"supports_tool_choice": true,
|
|
24494
24518
|
"supports_vision": true,
|
|
@@ -24597,6 +24621,7 @@
|
|
|
24597
24621
|
"cache_creation_input_token_cost": 1.375e-06,
|
|
24598
24622
|
"cache_read_input_token_cost": 1.1e-07,
|
|
24599
24623
|
"input_cost_per_token": 1.1e-06,
|
|
24624
|
+
"deprecation_date": "2026-10-15",
|
|
24600
24625
|
"litellm_provider": "bedrock",
|
|
24601
24626
|
"max_input_tokens": 200000,
|
|
24602
24627
|
"max_output_tokens": 8192,
|
|
@@ -25221,5 +25246,24 @@
|
|
|
25221
25246
|
"720x1280",
|
|
25222
25247
|
"1280x720"
|
|
25223
25248
|
]
|
|
25249
|
+
},
|
|
25250
|
+
"openrouter/anthropic/claude-haiku-4.5": {
|
|
25251
|
+
"cache_creation_input_token_cost": 1.25e-06,
|
|
25252
|
+
"cache_read_input_token_cost": 1e-07,
|
|
25253
|
+
"input_cost_per_token": 1e-06,
|
|
25254
|
+
"litellm_provider": "openrouter",
|
|
25255
|
+
"max_input_tokens": 200000,
|
|
25256
|
+
"max_output_tokens": 200000,
|
|
25257
|
+
"max_tokens": 200000,
|
|
25258
|
+
"mode": "chat",
|
|
25259
|
+
"output_cost_per_token": 5e-06,
|
|
25260
|
+
"supports_assistant_prefill": true,
|
|
25261
|
+
"supports_computer_use": true,
|
|
25262
|
+
"supports_function_calling": true,
|
|
25263
|
+
"supports_prompt_caching": true,
|
|
25264
|
+
"supports_reasoning": true,
|
|
25265
|
+
"supports_tool_choice": true,
|
|
25266
|
+
"supports_vision": true,
|
|
25267
|
+
"tool_use_system_prompt_tokens": 346
|
|
25224
25268
|
}
|
|
25225
25269
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tokencostauto
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.315
|
|
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
|