tokencostauto 0.1.357__tar.gz → 0.1.361__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.357
3
+ Version: 0.1.361
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.357"
14
+ version = "0.1.361"
15
15
 
16
16
  authors = [
17
17
  { name = "Trisha Pan", email = "trishaepan@gmail.com" },
@@ -27572,15 +27572,404 @@
27572
27572
  "supports_web_search": true
27573
27573
  },
27574
27574
  "vertex_ai/gemini-2.5-flash-image": {
27575
+ "cache_read_input_token_cost": 3e-08,
27576
+ "input_cost_per_audio_token": 1e-06,
27577
+ "input_cost_per_token": 3e-07,
27575
27578
  "litellm_provider": "vertex_ai-language-models",
27579
+ "max_audio_length_hours": 8.4,
27580
+ "max_audio_per_prompt": 1,
27581
+ "max_images_per_prompt": 3000,
27582
+ "max_input_tokens": 32768,
27583
+ "max_output_tokens": 32768,
27584
+ "max_tokens": 32768,
27585
+ "max_pdf_size_mb": 30,
27586
+ "max_video_length": 1,
27587
+ "max_videos_per_prompt": 10,
27576
27588
  "mode": "image_generation",
27577
27589
  "output_cost_per_image": 0.039,
27578
- "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/image-generation#edit-an-image"
27590
+ "output_cost_per_reasoning_token": 2.5e-06,
27591
+ "output_cost_per_token": 2.5e-06,
27592
+ "rpm": 100000,
27593
+ "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/image-generation#edit-an-image",
27594
+ "supported_endpoints": [
27595
+ "/v1/chat/completions",
27596
+ "/v1/completions",
27597
+ "/v1/batch"
27598
+ ],
27599
+ "supported_modalities": [
27600
+ "text",
27601
+ "image",
27602
+ "audio",
27603
+ "video"
27604
+ ],
27605
+ "supported_output_modalities": [
27606
+ "text",
27607
+ "image"
27608
+ ],
27609
+ "supports_audio_output": false,
27610
+ "supports_function_calling": true,
27611
+ "supports_parallel_function_calling": true,
27612
+ "supports_pdf_input": true,
27613
+ "supports_prompt_caching": true,
27614
+ "supports_response_schema": true,
27615
+ "supports_system_messages": true,
27616
+ "supports_tool_choice": true,
27617
+ "supports_url_context": true,
27618
+ "supports_vision": true,
27619
+ "supports_web_search": false,
27620
+ "tpm": 8000000
27579
27621
  },
27580
27622
  "vertex_ai/imagen-3.0-capability-001": {
27581
27623
  "litellm_provider": "vertex_ai-image-models",
27582
27624
  "mode": "image_generation",
27583
27625
  "output_cost_per_image": 0.04,
27584
27626
  "source": "https://cloud.google.com/vertex-ai/generative-ai/docs/image/edit-insert-objects"
27627
+ },
27628
+ "cerebras/gpt-oss-120b": {
27629
+ "input_cost_per_token": 2.5e-07,
27630
+ "litellm_provider": "cerebras",
27631
+ "max_input_tokens": 131072,
27632
+ "max_output_tokens": 32768,
27633
+ "max_tokens": 32768,
27634
+ "mode": "chat",
27635
+ "output_cost_per_token": 6.9e-07,
27636
+ "source": "https://www.cerebras.ai/blog/openai-gpt-oss-120b-runs-fastest-on-cerebras",
27637
+ "supports_function_calling": true,
27638
+ "supports_parallel_function_calling": true,
27639
+ "supports_reasoning": true,
27640
+ "supports_response_schema": true,
27641
+ "supports_tool_choice": true
27642
+ },
27643
+ "gemini-3-pro-image-preview": {
27644
+ "input_cost_per_image": 0.0011,
27645
+ "input_cost_per_token": 2e-06,
27646
+ "input_cost_per_token_batches": 1e-06,
27647
+ "litellm_provider": "vertex_ai-language-models",
27648
+ "max_input_tokens": 65536,
27649
+ "max_output_tokens": 32768,
27650
+ "max_tokens": 65536,
27651
+ "mode": "image_generation",
27652
+ "output_cost_per_image": 0.134,
27653
+ "output_cost_per_token": 1.2e-05,
27654
+ "output_cost_per_token_batches": 6e-06,
27655
+ "source": "https://ai.google.dev/gemini-api/docs/pricing",
27656
+ "supported_endpoints": [
27657
+ "/v1/chat/completions",
27658
+ "/v1/completions",
27659
+ "/v1/batch"
27660
+ ],
27661
+ "supported_modalities": [
27662
+ "text",
27663
+ "image"
27664
+ ],
27665
+ "supported_output_modalities": [
27666
+ "text",
27667
+ "image"
27668
+ ],
27669
+ "supports_function_calling": false,
27670
+ "supports_prompt_caching": true,
27671
+ "supports_response_schema": true,
27672
+ "supports_system_messages": true,
27673
+ "supports_vision": true,
27674
+ "supports_web_search": true
27675
+ },
27676
+ "gemini/gemini-3-pro-image-preview": {
27677
+ "input_cost_per_image": 0.0011,
27678
+ "input_cost_per_token": 2e-06,
27679
+ "input_cost_per_token_batches": 1e-06,
27680
+ "litellm_provider": "gemini",
27681
+ "max_input_tokens": 65536,
27682
+ "max_output_tokens": 32768,
27683
+ "max_tokens": 65536,
27684
+ "mode": "image_generation",
27685
+ "output_cost_per_image": 0.134,
27686
+ "output_cost_per_token": 1.2e-05,
27687
+ "rpm": 1000,
27688
+ "tpm": 4000000,
27689
+ "output_cost_per_token_batches": 6e-06,
27690
+ "source": "https://ai.google.dev/gemini-api/docs/pricing",
27691
+ "supported_endpoints": [
27692
+ "/v1/chat/completions",
27693
+ "/v1/completions",
27694
+ "/v1/batch"
27695
+ ],
27696
+ "supported_modalities": [
27697
+ "text",
27698
+ "image"
27699
+ ],
27700
+ "supported_output_modalities": [
27701
+ "text",
27702
+ "image"
27703
+ ],
27704
+ "supports_function_calling": false,
27705
+ "supports_prompt_caching": true,
27706
+ "supports_response_schema": true,
27707
+ "supports_system_messages": true,
27708
+ "supports_vision": true,
27709
+ "supports_web_search": true
27710
+ },
27711
+ "openrouter/google/gemini-3-pro-preview": {
27712
+ "cache_read_input_token_cost": 2e-07,
27713
+ "cache_read_input_token_cost_above_200k_tokens": 4e-07,
27714
+ "cache_creation_input_token_cost_above_200k_tokens": 2.5e-07,
27715
+ "input_cost_per_token": 2e-06,
27716
+ "input_cost_per_token_above_200k_tokens": 4e-06,
27717
+ "input_cost_per_token_batches": 1e-06,
27718
+ "litellm_provider": "openrouter",
27719
+ "max_audio_length_hours": 8.4,
27720
+ "max_audio_per_prompt": 1,
27721
+ "max_images_per_prompt": 3000,
27722
+ "max_input_tokens": 1048576,
27723
+ "max_output_tokens": 65535,
27724
+ "max_pdf_size_mb": 30,
27725
+ "max_tokens": 65535,
27726
+ "max_video_length": 1,
27727
+ "max_videos_per_prompt": 10,
27728
+ "mode": "chat",
27729
+ "output_cost_per_token": 1.2e-05,
27730
+ "output_cost_per_token_above_200k_tokens": 1.8e-05,
27731
+ "output_cost_per_token_batches": 6e-06,
27732
+ "supported_endpoints": [
27733
+ "/v1/chat/completions",
27734
+ "/v1/completions",
27735
+ "/v1/batch"
27736
+ ],
27737
+ "supported_modalities": [
27738
+ "text",
27739
+ "image",
27740
+ "audio",
27741
+ "video"
27742
+ ],
27743
+ "supported_output_modalities": [
27744
+ "text"
27745
+ ],
27746
+ "supports_audio_input": true,
27747
+ "supports_function_calling": true,
27748
+ "supports_pdf_input": true,
27749
+ "supports_prompt_caching": true,
27750
+ "supports_reasoning": true,
27751
+ "supports_response_schema": true,
27752
+ "supports_system_messages": true,
27753
+ "supports_tool_choice": true,
27754
+ "supports_video_input": true,
27755
+ "supports_vision": true,
27756
+ "supports_web_search": true
27757
+ },
27758
+ "together_ai/zai-org/GLM-4.6": {
27759
+ "input_cost_per_token": 6e-07,
27760
+ "litellm_provider": "together_ai",
27761
+ "max_input_tokens": 200000,
27762
+ "max_output_tokens": 200000,
27763
+ "max_tokens": 200000,
27764
+ "mode": "chat",
27765
+ "output_cost_per_token": 2.2e-06,
27766
+ "source": "https://www.together.ai/models/glm-4-6",
27767
+ "supports_function_calling": true,
27768
+ "supports_parallel_function_calling": true,
27769
+ "supports_reasoning": true,
27770
+ "supports_tool_choice": true
27771
+ },
27772
+ "vertex_ai/gemini-3-pro-image-preview": {
27773
+ "input_cost_per_image": 0.0011,
27774
+ "input_cost_per_token": 2e-06,
27775
+ "input_cost_per_token_batches": 1e-06,
27776
+ "litellm_provider": "vertex_ai-language-models",
27777
+ "max_input_tokens": 65536,
27778
+ "max_output_tokens": 32768,
27779
+ "max_tokens": 65536,
27780
+ "mode": "image_generation",
27781
+ "output_cost_per_image": 0.134,
27782
+ "output_cost_per_token": 1.2e-05,
27783
+ "output_cost_per_token_batches": 6e-06,
27784
+ "source": "https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/3-pro-image"
27785
+ },
27786
+ "xai/grok-4-1-fast": {
27787
+ "cache_read_input_token_cost": 5e-08,
27788
+ "input_cost_per_token": 2e-07,
27789
+ "input_cost_per_token_above_128k_tokens": 4e-07,
27790
+ "litellm_provider": "xai",
27791
+ "max_input_tokens": 2000000.0,
27792
+ "max_output_tokens": 2000000.0,
27793
+ "max_tokens": 2000000.0,
27794
+ "mode": "chat",
27795
+ "output_cost_per_token": 5e-07,
27796
+ "output_cost_per_token_above_128k_tokens": 1e-06,
27797
+ "source": "https://docs.x.ai/docs/models/grok-4-1-fast-reasoning",
27798
+ "supports_audio_input": true,
27799
+ "supports_function_calling": true,
27800
+ "supports_reasoning": true,
27801
+ "supports_response_schema": true,
27802
+ "supports_tool_choice": true,
27803
+ "supports_vision": true,
27804
+ "supports_web_search": true
27805
+ },
27806
+ "xai/grok-4-1-fast-reasoning": {
27807
+ "cache_read_input_token_cost": 5e-08,
27808
+ "input_cost_per_token": 2e-07,
27809
+ "input_cost_per_token_above_128k_tokens": 4e-07,
27810
+ "litellm_provider": "xai",
27811
+ "max_input_tokens": 2000000.0,
27812
+ "max_output_tokens": 2000000.0,
27813
+ "max_tokens": 2000000.0,
27814
+ "mode": "chat",
27815
+ "output_cost_per_token": 5e-07,
27816
+ "output_cost_per_token_above_128k_tokens": 1e-06,
27817
+ "source": "https://docs.x.ai/docs/models/grok-4-1-fast-reasoning",
27818
+ "supports_audio_input": true,
27819
+ "supports_function_calling": true,
27820
+ "supports_reasoning": true,
27821
+ "supports_response_schema": true,
27822
+ "supports_tool_choice": true,
27823
+ "supports_vision": true,
27824
+ "supports_web_search": true
27825
+ },
27826
+ "xai/grok-4-1-fast-reasoning-latest": {
27827
+ "cache_read_input_token_cost": 5e-08,
27828
+ "input_cost_per_token": 2e-07,
27829
+ "input_cost_per_token_above_128k_tokens": 4e-07,
27830
+ "litellm_provider": "xai",
27831
+ "max_input_tokens": 2000000.0,
27832
+ "max_output_tokens": 2000000.0,
27833
+ "max_tokens": 2000000.0,
27834
+ "mode": "chat",
27835
+ "output_cost_per_token": 5e-07,
27836
+ "output_cost_per_token_above_128k_tokens": 1e-06,
27837
+ "source": "https://docs.x.ai/docs/models/grok-4-1-fast-reasoning",
27838
+ "supports_audio_input": true,
27839
+ "supports_function_calling": true,
27840
+ "supports_reasoning": true,
27841
+ "supports_response_schema": true,
27842
+ "supports_tool_choice": true,
27843
+ "supports_vision": true,
27844
+ "supports_web_search": true
27845
+ },
27846
+ "xai/grok-4-1-fast-non-reasoning": {
27847
+ "cache_read_input_token_cost": 5e-08,
27848
+ "input_cost_per_token": 2e-07,
27849
+ "input_cost_per_token_above_128k_tokens": 4e-07,
27850
+ "litellm_provider": "xai",
27851
+ "max_input_tokens": 2000000.0,
27852
+ "max_output_tokens": 2000000.0,
27853
+ "max_tokens": 2000000.0,
27854
+ "mode": "chat",
27855
+ "output_cost_per_token": 5e-07,
27856
+ "output_cost_per_token_above_128k_tokens": 1e-06,
27857
+ "source": "https://docs.x.ai/docs/models/grok-4-1-fast-non-reasoning",
27858
+ "supports_audio_input": true,
27859
+ "supports_function_calling": true,
27860
+ "supports_response_schema": true,
27861
+ "supports_tool_choice": true,
27862
+ "supports_vision": true,
27863
+ "supports_web_search": true
27864
+ },
27865
+ "xai/grok-4-1-fast-non-reasoning-latest": {
27866
+ "cache_read_input_token_cost": 5e-08,
27867
+ "input_cost_per_token": 2e-07,
27868
+ "input_cost_per_token_above_128k_tokens": 4e-07,
27869
+ "litellm_provider": "xai",
27870
+ "max_input_tokens": 2000000.0,
27871
+ "max_output_tokens": 2000000.0,
27872
+ "max_tokens": 2000000.0,
27873
+ "mode": "chat",
27874
+ "output_cost_per_token": 5e-07,
27875
+ "output_cost_per_token_above_128k_tokens": 1e-06,
27876
+ "source": "https://docs.x.ai/docs/models/grok-4-1-fast-non-reasoning",
27877
+ "supports_audio_input": true,
27878
+ "supports_function_calling": true,
27879
+ "supports_response_schema": true,
27880
+ "supports_tool_choice": true,
27881
+ "supports_vision": true,
27882
+ "supports_web_search": true
27883
+ },
27884
+ "anthropic.claude-sonnet-4-5-20250929-v1:0": {
27885
+ "cache_creation_input_token_cost": 3.75e-06,
27886
+ "cache_read_input_token_cost": 3e-07,
27887
+ "input_cost_per_token": 3e-06,
27888
+ "input_cost_per_token_above_200k_tokens": 6e-06,
27889
+ "output_cost_per_token_above_200k_tokens": 2.25e-05,
27890
+ "cache_creation_input_token_cost_above_200k_tokens": 7.5e-06,
27891
+ "cache_read_input_token_cost_above_200k_tokens": 6e-07,
27892
+ "litellm_provider": "bedrock_converse",
27893
+ "max_input_tokens": 200000,
27894
+ "max_output_tokens": 64000,
27895
+ "max_tokens": 64000,
27896
+ "mode": "chat",
27897
+ "output_cost_per_token": 1.5e-05,
27898
+ "search_context_cost_per_query": {
27899
+ "search_context_size_high": 0.01,
27900
+ "search_context_size_low": 0.01,
27901
+ "search_context_size_medium": 0.01
27902
+ },
27903
+ "supports_assistant_prefill": true,
27904
+ "supports_computer_use": true,
27905
+ "supports_function_calling": true,
27906
+ "supports_pdf_input": true,
27907
+ "supports_prompt_caching": true,
27908
+ "supports_reasoning": true,
27909
+ "supports_response_schema": true,
27910
+ "supports_tool_choice": true,
27911
+ "supports_vision": true,
27912
+ "tool_use_system_prompt_tokens": 159
27913
+ },
27914
+ "bedrock/us-gov-east-1/claude-sonnet-4-5-20250929-v1:0": {
27915
+ "input_cost_per_token": 3.3e-06,
27916
+ "litellm_provider": "bedrock",
27917
+ "max_input_tokens": 200000,
27918
+ "max_output_tokens": 4096,
27919
+ "max_tokens": 4096,
27920
+ "mode": "chat",
27921
+ "output_cost_per_token": 1.65e-05,
27922
+ "supports_assistant_prefill": true,
27923
+ "supports_computer_use": true,
27924
+ "supports_function_calling": true,
27925
+ "supports_pdf_input": true,
27926
+ "supports_prompt_caching": true,
27927
+ "supports_reasoning": true,
27928
+ "supports_response_schema": true,
27929
+ "supports_tool_choice": true,
27930
+ "supports_vision": true
27931
+ },
27932
+ "bedrock/us-gov-west-1/claude-sonnet-4-5-20250929-v1:0": {
27933
+ "input_cost_per_token": 3.3e-06,
27934
+ "litellm_provider": "bedrock",
27935
+ "max_input_tokens": 200000,
27936
+ "max_output_tokens": 4096,
27937
+ "max_tokens": 4096,
27938
+ "mode": "chat",
27939
+ "output_cost_per_token": 1.65e-05,
27940
+ "supports_assistant_prefill": true,
27941
+ "supports_computer_use": true,
27942
+ "supports_function_calling": true,
27943
+ "supports_pdf_input": true,
27944
+ "supports_prompt_caching": true,
27945
+ "supports_reasoning": true,
27946
+ "supports_response_schema": true,
27947
+ "supports_tool_choice": true,
27948
+ "supports_vision": true
27949
+ },
27950
+ "claude-sonnet-4-5-20250929-v1:0": {
27951
+ "cache_creation_input_token_cost": 3.75e-06,
27952
+ "cache_read_input_token_cost": 3e-07,
27953
+ "input_cost_per_token": 3e-06,
27954
+ "input_cost_per_token_above_200k_tokens": 6e-06,
27955
+ "output_cost_per_token_above_200k_tokens": 2.25e-05,
27956
+ "cache_creation_input_token_cost_above_200k_tokens": 7.5e-06,
27957
+ "cache_read_input_token_cost_above_200k_tokens": 6e-07,
27958
+ "litellm_provider": "bedrock",
27959
+ "max_input_tokens": 200000,
27960
+ "max_output_tokens": 64000,
27961
+ "max_tokens": 64000,
27962
+ "mode": "chat",
27963
+ "output_cost_per_token": 1.5e-05,
27964
+ "supports_assistant_prefill": true,
27965
+ "supports_computer_use": true,
27966
+ "supports_function_calling": true,
27967
+ "supports_pdf_input": true,
27968
+ "supports_prompt_caching": true,
27969
+ "supports_reasoning": true,
27970
+ "supports_response_schema": true,
27971
+ "supports_tool_choice": true,
27972
+ "supports_vision": true,
27973
+ "tool_use_system_prompt_tokens": 159
27585
27974
  }
27586
27975
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tokencostauto
3
- Version: 0.1.357
3
+ Version: 0.1.361
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