tokencostauto 0.1.481__py3-none-any.whl → 0.1.485__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 +75 -6
- {tokencostauto-0.1.481.dist-info → tokencostauto-0.1.485.dist-info}/METADATA +1 -1
- tokencostauto-0.1.485.dist-info/RECORD +9 -0
- tokencostauto-0.1.481.dist-info/RECORD +0 -9
- {tokencostauto-0.1.481.dist-info → tokencostauto-0.1.485.dist-info}/WHEEL +0 -0
- {tokencostauto-0.1.481.dist-info → tokencostauto-0.1.485.dist-info}/licenses/LICENSE +0 -0
- {tokencostauto-0.1.481.dist-info → tokencostauto-0.1.485.dist-info}/top_level.txt +0 -0
tokencostauto/model_prices.json
CHANGED
|
@@ -4909,7 +4909,7 @@
|
|
|
4909
4909
|
"anthropic.claude-3-5-sonnet-20240620-v1:0": {
|
|
4910
4910
|
"input_cost_per_token": 3e-06,
|
|
4911
4911
|
"litellm_provider": "bedrock",
|
|
4912
|
-
"max_input_tokens":
|
|
4912
|
+
"max_input_tokens": 1000000,
|
|
4913
4913
|
"max_output_tokens": 4096,
|
|
4914
4914
|
"max_tokens": 4096,
|
|
4915
4915
|
"mode": "chat",
|
|
@@ -4918,14 +4918,22 @@
|
|
|
4918
4918
|
"supports_pdf_input": true,
|
|
4919
4919
|
"supports_response_schema": true,
|
|
4920
4920
|
"supports_tool_choice": true,
|
|
4921
|
-
"supports_vision": true
|
|
4921
|
+
"supports_vision": true,
|
|
4922
|
+
"input_cost_per_token_above_200k_tokens": 6e-06,
|
|
4923
|
+
"output_cost_per_token_above_200k_tokens": 3e-05,
|
|
4924
|
+
"cache_creation_input_token_cost_above_200k_tokens": 7.5e-06,
|
|
4925
|
+
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
|
|
4926
|
+
"cache_creation_input_token_cost_above_1hr": 7.5e-06,
|
|
4927
|
+
"cache_creation_input_token_cost_above_1hr_above_200k_tokens": 1.5e-05,
|
|
4928
|
+
"cache_creation_input_token_cost": 3.75e-06,
|
|
4929
|
+
"cache_read_input_token_cost": 3e-07
|
|
4922
4930
|
},
|
|
4923
4931
|
"anthropic.claude-3-5-sonnet-20241022-v2:0": {
|
|
4924
4932
|
"cache_creation_input_token_cost": 3.75e-06,
|
|
4925
4933
|
"cache_read_input_token_cost": 3e-07,
|
|
4926
4934
|
"input_cost_per_token": 3e-06,
|
|
4927
4935
|
"litellm_provider": "bedrock",
|
|
4928
|
-
"max_input_tokens":
|
|
4936
|
+
"max_input_tokens": 1000000,
|
|
4929
4937
|
"max_output_tokens": 8192,
|
|
4930
4938
|
"max_tokens": 8192,
|
|
4931
4939
|
"mode": "chat",
|
|
@@ -4937,7 +4945,13 @@
|
|
|
4937
4945
|
"supports_prompt_caching": true,
|
|
4938
4946
|
"supports_response_schema": true,
|
|
4939
4947
|
"supports_tool_choice": true,
|
|
4940
|
-
"supports_vision": true
|
|
4948
|
+
"supports_vision": true,
|
|
4949
|
+
"input_cost_per_token_above_200k_tokens": 6e-06,
|
|
4950
|
+
"output_cost_per_token_above_200k_tokens": 3e-05,
|
|
4951
|
+
"cache_creation_input_token_cost_above_200k_tokens": 7.5e-06,
|
|
4952
|
+
"cache_read_input_token_cost_above_200k_tokens": 6e-07,
|
|
4953
|
+
"cache_creation_input_token_cost_above_1hr": 7.5e-06,
|
|
4954
|
+
"cache_creation_input_token_cost_above_1hr_above_200k_tokens": 1.5e-05
|
|
4941
4955
|
},
|
|
4942
4956
|
"anthropic.claude-3-5-sonnet-latest-v2:0": {
|
|
4943
4957
|
"max_tokens": 4096,
|
|
@@ -14432,6 +14446,7 @@
|
|
|
14432
14446
|
"output_cost_per_token": 8e-07,
|
|
14433
14447
|
"source": "https://inference-docs.cerebras.ai/support/pricing",
|
|
14434
14448
|
"supports_function_calling": true,
|
|
14449
|
+
"supports_reasoning": true,
|
|
14435
14450
|
"supports_tool_choice": true
|
|
14436
14451
|
},
|
|
14437
14452
|
"gemini-embedding-001": {
|
|
@@ -19204,6 +19219,9 @@
|
|
|
19204
19219
|
"mode": "chat",
|
|
19205
19220
|
"output_cost_per_token": 4e-06,
|
|
19206
19221
|
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing",
|
|
19222
|
+
"supported_regions": [
|
|
19223
|
+
"global"
|
|
19224
|
+
],
|
|
19207
19225
|
"supports_function_calling": true,
|
|
19208
19226
|
"supports_tool_choice": true
|
|
19209
19227
|
},
|
|
@@ -19216,6 +19234,9 @@
|
|
|
19216
19234
|
"mode": "chat",
|
|
19217
19235
|
"output_cost_per_token": 1e-06,
|
|
19218
19236
|
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing",
|
|
19237
|
+
"supported_regions": [
|
|
19238
|
+
"global"
|
|
19239
|
+
],
|
|
19219
19240
|
"supports_function_calling": true,
|
|
19220
19241
|
"supports_tool_choice": true
|
|
19221
19242
|
},
|
|
@@ -22868,6 +22889,9 @@
|
|
|
22868
22889
|
"mode": "chat",
|
|
22869
22890
|
"output_cost_per_token": 1.2e-06,
|
|
22870
22891
|
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing",
|
|
22892
|
+
"supported_regions": [
|
|
22893
|
+
"global"
|
|
22894
|
+
],
|
|
22871
22895
|
"supports_function_calling": true,
|
|
22872
22896
|
"supports_tool_choice": true
|
|
22873
22897
|
},
|
|
@@ -22880,6 +22904,9 @@
|
|
|
22880
22904
|
"mode": "chat",
|
|
22881
22905
|
"output_cost_per_token": 1.2e-06,
|
|
22882
22906
|
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing",
|
|
22907
|
+
"supported_regions": [
|
|
22908
|
+
"global"
|
|
22909
|
+
],
|
|
22883
22910
|
"supports_function_calling": true,
|
|
22884
22911
|
"supports_tool_choice": true
|
|
22885
22912
|
},
|
|
@@ -27755,13 +27782,13 @@
|
|
|
27755
27782
|
"source": "https://cloud.google.com/vertex-ai/generative-ai/docs/image/edit-insert-objects"
|
|
27756
27783
|
},
|
|
27757
27784
|
"cerebras/gpt-oss-120b": {
|
|
27758
|
-
"input_cost_per_token":
|
|
27785
|
+
"input_cost_per_token": 3.5e-07,
|
|
27759
27786
|
"litellm_provider": "cerebras",
|
|
27760
27787
|
"max_input_tokens": 131072,
|
|
27761
27788
|
"max_output_tokens": 32768,
|
|
27762
27789
|
"max_tokens": 32768,
|
|
27763
27790
|
"mode": "chat",
|
|
27764
|
-
"output_cost_per_token":
|
|
27791
|
+
"output_cost_per_token": 7.5e-07,
|
|
27765
27792
|
"source": "https://www.cerebras.ai/blog/openai-gpt-oss-120b-runs-fastest-on-cerebras",
|
|
27766
27793
|
"supports_function_calling": true,
|
|
27767
27794
|
"supports_parallel_function_calling": true,
|
|
@@ -36335,5 +36362,47 @@
|
|
|
36335
36362
|
"mode": "chat",
|
|
36336
36363
|
"source": "https://azure.microsoft.com/en-us/pricing/details/ai-services/",
|
|
36337
36364
|
"comment": "Flat cost of $0.14 per M input tokens for Azure AI Foundry Model Router infrastructure. Use pattern: azure_ai/model_router/<deployment-name> where deployment-name is your Azure deployment (e.g., azure-model-router)"
|
|
36365
|
+
},
|
|
36366
|
+
"moonshot/kimi-k2.5": {
|
|
36367
|
+
"cache_read_input_token_cost": 1e-07,
|
|
36368
|
+
"input_cost_per_token": 6e-07,
|
|
36369
|
+
"litellm_provider": "moonshot",
|
|
36370
|
+
"max_input_tokens": 262144,
|
|
36371
|
+
"max_output_tokens": 262144,
|
|
36372
|
+
"max_tokens": 262144,
|
|
36373
|
+
"mode": "chat",
|
|
36374
|
+
"output_cost_per_token": 3e-06,
|
|
36375
|
+
"source": "https://platform.moonshot.ai/docs/pricing/chat",
|
|
36376
|
+
"supports_function_calling": true,
|
|
36377
|
+
"supports_tool_choice": true,
|
|
36378
|
+
"supports_vision": true
|
|
36379
|
+
},
|
|
36380
|
+
"together_ai/zai-org/GLM-4.7": {
|
|
36381
|
+
"input_cost_per_token": 4.5e-07,
|
|
36382
|
+
"litellm_provider": "together_ai",
|
|
36383
|
+
"max_input_tokens": 200000,
|
|
36384
|
+
"max_output_tokens": 200000,
|
|
36385
|
+
"max_tokens": 200000,
|
|
36386
|
+
"mode": "chat",
|
|
36387
|
+
"output_cost_per_token": 2e-06,
|
|
36388
|
+
"source": "https://www.together.ai/models/glm-4-7",
|
|
36389
|
+
"supports_function_calling": true,
|
|
36390
|
+
"supports_parallel_function_calling": true,
|
|
36391
|
+
"supports_reasoning": true,
|
|
36392
|
+
"supports_tool_choice": true
|
|
36393
|
+
},
|
|
36394
|
+
"together_ai/moonshotai/Kimi-K2.5": {
|
|
36395
|
+
"input_cost_per_token": 5e-07,
|
|
36396
|
+
"litellm_provider": "together_ai",
|
|
36397
|
+
"max_input_tokens": 256000,
|
|
36398
|
+
"max_output_tokens": 256000,
|
|
36399
|
+
"max_tokens": 256000,
|
|
36400
|
+
"mode": "chat",
|
|
36401
|
+
"output_cost_per_token": 2.8e-06,
|
|
36402
|
+
"source": "https://www.together.ai/models/kimi-k2-5",
|
|
36403
|
+
"supports_function_calling": true,
|
|
36404
|
+
"supports_tool_choice": true,
|
|
36405
|
+
"supports_vision": true,
|
|
36406
|
+
"supports_reasoning": true
|
|
36338
36407
|
}
|
|
36339
36408
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tokencostauto
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.485
|
|
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=kcnlG9l9r2Dd1CXKaAq06-UINQEPKQHzEPH4c1Z1QgU,1292095
|
|
5
|
+
tokencostauto-0.1.485.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
|
|
6
|
+
tokencostauto-0.1.485.dist-info/METADATA,sha256=DRQClk900shysZpK6d8_s3kv9K2319SgHfJMIEGJzqI,204076
|
|
7
|
+
tokencostauto-0.1.485.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
tokencostauto-0.1.485.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
|
|
9
|
+
tokencostauto-0.1.485.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=6e5jrK7sUeG8AlJXHe5iQgxLF4QuAyj6VP7zYqeGa94,1289382
|
|
5
|
-
tokencostauto-0.1.481.dist-info/licenses/LICENSE,sha256=4PLv_CD6Ughnsvg_nM2XeTqGwVK6lQVR77kVWbPq-0U,1065
|
|
6
|
-
tokencostauto-0.1.481.dist-info/METADATA,sha256=V7wUN2VQIc-sGIHdOFsEMIRiyH665C1wn6VS-VAbnRY,204076
|
|
7
|
-
tokencostauto-0.1.481.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
-
tokencostauto-0.1.481.dist-info/top_level.txt,sha256=szZQTUJRotfIaeZCDsOgvofIkLt2ak88RP13oI51-TU,14
|
|
9
|
-
tokencostauto-0.1.481.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|