tokencostauto 0.1.400__tar.gz → 0.1.402__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.400
3
+ Version: 0.1.402
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.400"
14
+ version = "0.1.402"
15
15
 
16
16
  authors = [
17
17
  { name = "Trisha Pan", email = "trishaepan@gmail.com" },
@@ -11365,15 +11365,20 @@
11365
11365
  "supports_vision": true
11366
11366
  },
11367
11367
  "gpt-image-1": {
11368
+ "input_cost_per_image": 0.042,
11368
11369
  "input_cost_per_pixel": 4.0054321e-08,
11370
+ "input_cost_per_token": 5e-06,
11371
+ "input_cost_per_image_token": 1e-05,
11369
11372
  "litellm_provider": "openai",
11370
11373
  "mode": "image_generation",
11371
11374
  "output_cost_per_pixel": 0.0,
11375
+ "output_cost_per_token": 4e-05,
11372
11376
  "supported_endpoints": [
11373
11377
  "/v1/images/generations"
11374
11378
  ]
11375
11379
  },
11376
11380
  "low/1024-x-1024/gpt-image-1": {
11381
+ "input_cost_per_image": 0.011,
11377
11382
  "input_cost_per_pixel": 1.0490417e-08,
11378
11383
  "litellm_provider": "openai",
11379
11384
  "mode": "image_generation",
@@ -11383,6 +11388,7 @@
11383
11388
  ]
11384
11389
  },
11385
11390
  "medium/1024-x-1024/gpt-image-1": {
11391
+ "input_cost_per_image": 0.042,
11386
11392
  "input_cost_per_pixel": 4.0054321e-08,
11387
11393
  "litellm_provider": "openai",
11388
11394
  "mode": "image_generation",
@@ -11392,6 +11398,7 @@
11392
11398
  ]
11393
11399
  },
11394
11400
  "high/1024-x-1024/gpt-image-1": {
11401
+ "input_cost_per_image": 0.167,
11395
11402
  "input_cost_per_pixel": 1.59263611e-07,
11396
11403
  "litellm_provider": "openai",
11397
11404
  "mode": "image_generation",
@@ -11401,6 +11408,7 @@
11401
11408
  ]
11402
11409
  },
11403
11410
  "low/1024-x-1536/gpt-image-1": {
11411
+ "input_cost_per_image": 0.016,
11404
11412
  "input_cost_per_pixel": 1.0172526e-08,
11405
11413
  "litellm_provider": "openai",
11406
11414
  "mode": "image_generation",
@@ -11410,6 +11418,7 @@
11410
11418
  ]
11411
11419
  },
11412
11420
  "medium/1024-x-1536/gpt-image-1": {
11421
+ "input_cost_per_image": 0.063,
11413
11422
  "input_cost_per_pixel": 4.0054321e-08,
11414
11423
  "litellm_provider": "openai",
11415
11424
  "mode": "image_generation",
@@ -11419,6 +11428,7 @@
11419
11428
  ]
11420
11429
  },
11421
11430
  "high/1024-x-1536/gpt-image-1": {
11431
+ "input_cost_per_image": 0.25,
11422
11432
  "input_cost_per_pixel": 1.58945719e-07,
11423
11433
  "litellm_provider": "openai",
11424
11434
  "mode": "image_generation",
@@ -11428,6 +11438,7 @@
11428
11438
  ]
11429
11439
  },
11430
11440
  "low/1536-x-1024/gpt-image-1": {
11441
+ "input_cost_per_image": 0.016,
11431
11442
  "input_cost_per_pixel": 1.0172526e-08,
11432
11443
  "litellm_provider": "openai",
11433
11444
  "mode": "image_generation",
@@ -11437,6 +11448,7 @@
11437
11448
  ]
11438
11449
  },
11439
11450
  "medium/1536-x-1024/gpt-image-1": {
11451
+ "input_cost_per_image": 0.063,
11440
11452
  "input_cost_per_pixel": 4.0054321e-08,
11441
11453
  "litellm_provider": "openai",
11442
11454
  "mode": "image_generation",
@@ -11446,6 +11458,7 @@
11446
11458
  ]
11447
11459
  },
11448
11460
  "high/1536-x-1024/gpt-image-1": {
11461
+ "input_cost_per_image": 0.25,
11449
11462
  "input_cost_per_pixel": 1.58945719e-07,
11450
11463
  "litellm_provider": "openai",
11451
11464
  "mode": "image_generation",
@@ -17990,6 +18003,7 @@
17990
18003
  "output_cost_per_token": 2.19e-06,
17991
18004
  "source": "https://fireworks.ai/models/fireworks/glm-4p5",
17992
18005
  "supports_function_calling": true,
18006
+ "supports_reasoning": true,
17993
18007
  "supports_response_schema": true,
17994
18008
  "supports_tool_choice": true
17995
18009
  },
@@ -18003,6 +18017,7 @@
18003
18017
  "output_cost_per_token": 8.8e-07,
18004
18018
  "source": "https://artificialanalysis.ai/models/glm-4-5-air",
18005
18019
  "supports_function_calling": true,
18020
+ "supports_reasoning": true,
18006
18021
  "supports_response_schema": true,
18007
18022
  "supports_tool_choice": true
18008
18023
  },
@@ -18016,6 +18031,7 @@
18016
18031
  "output_cost_per_token": 6e-07,
18017
18032
  "source": "https://fireworks.ai/pricing",
18018
18033
  "supports_function_calling": true,
18034
+ "supports_reasoning": true,
18019
18035
  "supports_response_schema": true,
18020
18036
  "supports_tool_choice": true
18021
18037
  },
@@ -18029,6 +18045,7 @@
18029
18045
  "output_cost_per_token": 2e-07,
18030
18046
  "source": "https://fireworks.ai/pricing",
18031
18047
  "supports_function_calling": true,
18048
+ "supports_reasoning": true,
18032
18049
  "supports_response_schema": true,
18033
18050
  "supports_tool_choice": true
18034
18051
  },
@@ -20525,6 +20542,7 @@
20525
20542
  "mode": "chat",
20526
20543
  "output_cost_per_token": 1.68e-06,
20527
20544
  "source": "https://fireworks.ai/pricing",
20545
+ "supports_reasoning": true,
20528
20546
  "supports_response_schema": true,
20529
20547
  "supports_tool_choice": true
20530
20548
  },
@@ -26601,6 +26619,7 @@
26601
26619
  "mode": "chat",
26602
26620
  "output_cost_per_token": 1.68e-06,
26603
26621
  "source": "https://fireworks.ai/pricing",
26622
+ "supports_reasoning": true,
26604
26623
  "supports_response_schema": true,
26605
26624
  "supports_tool_choice": true
26606
26625
  },
@@ -28178,6 +28197,7 @@
28178
28197
  "mode": "chat",
28179
28198
  "source": "https://fireworks.ai/pricing",
28180
28199
  "supports_function_calling": true,
28200
+ "supports_reasoning": true,
28181
28201
  "supports_response_schema": true,
28182
28202
  "supports_tool_choice": true
28183
28203
  },
@@ -28662,6 +28682,7 @@
28662
28682
  "output_cost_per_token": 1.2e-06,
28663
28683
  "source": "https://fireworks.ai/models/fireworks/deepseek-v3p2",
28664
28684
  "supports_function_calling": true,
28685
+ "supports_reasoning": true,
28665
28686
  "supports_response_schema": true,
28666
28687
  "supports_tool_choice": true
28667
28688
  },
@@ -30039,7 +30060,8 @@
30039
30060
  "input_cost_per_token": 1.2e-06,
30040
30061
  "output_cost_per_token": 1.2e-06,
30041
30062
  "litellm_provider": "fireworks_ai",
30042
- "mode": "chat"
30063
+ "mode": "chat",
30064
+ "supports_reasoning": true
30043
30065
  },
30044
30066
  "fireworks_ai/accounts/fireworks/models/gpt-oss-safeguard-120b": {
30045
30067
  "max_tokens": 131072,
@@ -32094,5 +32116,135 @@
32094
32116
  "supported_endpoints": [
32095
32117
  "/v1/images/generations"
32096
32118
  ]
32119
+ },
32120
+ "openrouter/mistralai/devstral-2512:free": {
32121
+ "input_cost_per_image": 0,
32122
+ "input_cost_per_token": 0,
32123
+ "litellm_provider": "openrouter",
32124
+ "max_input_tokens": 262144,
32125
+ "max_output_tokens": null,
32126
+ "max_tokens": 262144,
32127
+ "mode": "chat",
32128
+ "output_cost_per_token": 0,
32129
+ "supports_function_calling": true,
32130
+ "supports_prompt_caching": false,
32131
+ "supports_tool_choice": true,
32132
+ "supports_vision": false
32133
+ },
32134
+ "openrouter/mistralai/devstral-2512": {
32135
+ "input_cost_per_image": 0,
32136
+ "input_cost_per_token": 1.5e-07,
32137
+ "litellm_provider": "openrouter",
32138
+ "max_input_tokens": 262144,
32139
+ "max_output_tokens": 65536,
32140
+ "max_tokens": 262144,
32141
+ "mode": "chat",
32142
+ "output_cost_per_token": 6e-07,
32143
+ "supports_function_calling": true,
32144
+ "supports_prompt_caching": false,
32145
+ "supports_tool_choice": true,
32146
+ "supports_vision": false
32147
+ },
32148
+ "openrouter/mistralai/ministral-3b-2512": {
32149
+ "input_cost_per_image": 0,
32150
+ "input_cost_per_token": 1e-07,
32151
+ "litellm_provider": "openrouter",
32152
+ "max_input_tokens": 131072,
32153
+ "max_output_tokens": null,
32154
+ "max_tokens": 131072,
32155
+ "mode": "chat",
32156
+ "output_cost_per_token": 1e-07,
32157
+ "supports_function_calling": true,
32158
+ "supports_prompt_caching": false,
32159
+ "supports_tool_choice": true,
32160
+ "supports_vision": true
32161
+ },
32162
+ "openrouter/mistralai/ministral-8b-2512": {
32163
+ "input_cost_per_image": 0,
32164
+ "input_cost_per_token": 1.5e-07,
32165
+ "litellm_provider": "openrouter",
32166
+ "max_input_tokens": 262144,
32167
+ "max_output_tokens": null,
32168
+ "max_tokens": 262144,
32169
+ "mode": "chat",
32170
+ "output_cost_per_token": 1.5e-07,
32171
+ "supports_function_calling": true,
32172
+ "supports_prompt_caching": false,
32173
+ "supports_tool_choice": true,
32174
+ "supports_vision": true
32175
+ },
32176
+ "openrouter/mistralai/ministral-14b-2512": {
32177
+ "input_cost_per_image": 0,
32178
+ "input_cost_per_token": 2e-07,
32179
+ "litellm_provider": "openrouter",
32180
+ "max_input_tokens": 262144,
32181
+ "max_output_tokens": null,
32182
+ "max_tokens": 262144,
32183
+ "mode": "chat",
32184
+ "output_cost_per_token": 2e-07,
32185
+ "supports_function_calling": true,
32186
+ "supports_prompt_caching": false,
32187
+ "supports_tool_choice": true,
32188
+ "supports_vision": true
32189
+ },
32190
+ "openrouter/mistralai/mistral-large-2512": {
32191
+ "input_cost_per_image": 0,
32192
+ "input_cost_per_token": 5e-07,
32193
+ "litellm_provider": "openrouter",
32194
+ "max_input_tokens": 262144,
32195
+ "max_output_tokens": null,
32196
+ "max_tokens": 262144,
32197
+ "mode": "chat",
32198
+ "output_cost_per_token": 1.5e-06,
32199
+ "supports_function_calling": true,
32200
+ "supports_prompt_caching": false,
32201
+ "supports_tool_choice": true,
32202
+ "supports_vision": true
32203
+ },
32204
+ "openrouter/openai/gpt-5.2": {
32205
+ "input_cost_per_image": 0,
32206
+ "cache_read_input_token_cost": 1.75e-07,
32207
+ "input_cost_per_token": 1.75e-06,
32208
+ "litellm_provider": "openrouter",
32209
+ "max_input_tokens": 400000,
32210
+ "max_output_tokens": 128000,
32211
+ "max_tokens": 400000,
32212
+ "mode": "chat",
32213
+ "output_cost_per_token": 1.4e-05,
32214
+ "supports_function_calling": true,
32215
+ "supports_prompt_caching": true,
32216
+ "supports_reasoning": true,
32217
+ "supports_tool_choice": true,
32218
+ "supports_vision": true
32219
+ },
32220
+ "openrouter/openai/gpt-5.2-chat": {
32221
+ "input_cost_per_image": 0,
32222
+ "cache_read_input_token_cost": 1.75e-07,
32223
+ "input_cost_per_token": 1.75e-06,
32224
+ "litellm_provider": "openrouter",
32225
+ "max_input_tokens": 128000,
32226
+ "max_output_tokens": 16384,
32227
+ "max_tokens": 128000,
32228
+ "mode": "chat",
32229
+ "output_cost_per_token": 1.4e-05,
32230
+ "supports_function_calling": true,
32231
+ "supports_prompt_caching": true,
32232
+ "supports_tool_choice": true,
32233
+ "supports_vision": true
32234
+ },
32235
+ "openrouter/openai/gpt-5.2-pro": {
32236
+ "input_cost_per_image": 0,
32237
+ "input_cost_per_token": 2.1e-05,
32238
+ "litellm_provider": "openrouter",
32239
+ "max_input_tokens": 400000,
32240
+ "max_output_tokens": 128000,
32241
+ "max_tokens": 400000,
32242
+ "mode": "chat",
32243
+ "output_cost_per_token": 0.000168,
32244
+ "supports_function_calling": true,
32245
+ "supports_prompt_caching": false,
32246
+ "supports_reasoning": true,
32247
+ "supports_tool_choice": true,
32248
+ "supports_vision": true
32097
32249
  }
32098
32250
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tokencostauto
3
- Version: 0.1.400
3
+ Version: 0.1.402
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