The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
feat(bedrock): add xai grok-4.7 pricing and sync llama, mistral large 2407 and minimax m2.5 prices (#43623)
berriai-litellm-provider-info-sync[bot]eae8ed7f3c44
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex d5490f5df9e..140e0cf0071 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -12913,13 +12913,13 @@"source": "https://aws.amazon.com/bedrock/pricing/"},"bedrock/ap-southeast-2/minimax.minimax-m2.5": {- "input_cost_per_token": 3.09e-07,+ "input_cost_per_token": 3.1e-07,"litellm_provider": "bedrock","max_input_tokens": 1000000,"max_output_tokens": 8192,"max_tokens": 8192,"mode": "chat",- "source": "https://aws.amazon.com/bedrock/pricing/",+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_reasoning": true,"supports_system_messages": true,@@ -12927,7 +12927,7 @@"supports_audio_input": false,"supports_response_schema": true,"supports_vision": false,- "output_cost_per_token": 1.236e-06+ "output_cost_per_token": 1.24e-06},"bedrock/ap-southeast-3/deepseek.v3.2": {"input_cost_per_token": 7.4e-07,@@ -37373,24 +37373,26 @@"source": "https://aws.amazon.com/bedrock/pricing/"},"meta.llama3-1-405b-instruct-v1:0": {- "input_cost_per_token": 5.32e-06,+ "input_cost_per_token": 2.4e-06,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 1.6e-05,+ "output_cost_per_token": 2.4e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false},"meta.llama3-1-70b-instruct-v1:0": {- "input_cost_per_token": 9.9e-07,+ "input_cost_per_token": 7.2e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 2048,"max_tokens": 2048,"mode": "chat",- "output_cost_per_token": 9.9e-07,+ "output_cost_per_token": 7.2e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false},@@ -37406,13 +37408,14 @@"supports_tool_choice": false},"meta.llama3-2-11b-instruct-v1:0": {- "input_cost_per_token": 3.5e-07,+ "input_cost_per_token": 1.6e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 3.5e-07,+ "output_cost_per_token": 1.6e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false,"supports_vision": true@@ -37440,13 +37443,14 @@"supports_tool_choice": false},"meta.llama3-2-90b-instruct-v1:0": {- "input_cost_per_token": 2e-06,+ "input_cost_per_token": 7.2e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 2e-06,+ "output_cost_per_token": 7.2e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false,"supports_vision": true@@ -38085,13 +38089,14 @@"supports_function_calling": true},"mistral.mistral-large-2407-v1:0": {- "input_cost_per_token": 3e-06,+ "input_cost_per_token": 2e-06,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 8191,"max_tokens": 8191,"mode": "chat",- "output_cost_per_token": 9e-06,+ "output_cost_per_token": 6e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": true},@@ -47427,24 +47432,26 @@"supports_vision": false},"us.meta.llama3-1-405b-instruct-v1:0": {- "input_cost_per_token": 5.32e-06,+ "input_cost_per_token": 2.4e-06,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 1.6e-05,+ "output_cost_per_token": 2.4e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false},"us.meta.llama3-1-70b-instruct-v1:0": {- "input_cost_per_token": 9.9e-07,+ "input_cost_per_token": 7.2e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 2048,"max_tokens": 2048,"mode": "chat",- "output_cost_per_token": 9.9e-07,+ "output_cost_per_token": 7.2e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false},@@ -47460,13 +47467,14 @@"supports_tool_choice": false},"us.meta.llama3-2-11b-instruct-v1:0": {- "input_cost_per_token": 3.5e-07,+ "input_cost_per_token": 1.6e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 3.5e-07,+ "output_cost_per_token": 1.6e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false,"supports_vision": true@@ -47494,13 +47502,14 @@"supports_tool_choice": false},"us.meta.llama3-2-90b-instruct-v1:0": {- "input_cost_per_token": 2e-06,+ "input_cost_per_token": 7.2e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 2e-06,+ "output_cost_per_token": 7.2e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false,"supports_vision": true@@ -78535,5 +78544,53 @@"supports_system_messages": true,"supports_tool_choice": true,"supports_vision": false+ },+ "global.xai.grok-4.7": {+ "cache_read_input_token_cost": 5e-07,+ "input_cost_per_token": 2e-06,+ "litellm_provider": "bedrock_converse",+ "max_input_tokens": 500000,+ "max_output_tokens": 500000,+ "max_tokens": 500000,+ "mode": "chat",+ "output_cost_per_token": 6e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json",+ "supports_function_calling": true,+ "supports_prompt_caching": false,+ "supports_reasoning": true,+ "supports_tool_choice": true,+ "supports_vision": true+ },+ "us.xai.grok-4.7": {+ "cache_read_input_token_cost": 5.5e-07,+ "input_cost_per_token": 2.2e-06,+ "litellm_provider": "bedrock_converse",+ "max_input_tokens": 500000,+ "max_output_tokens": 500000,+ "max_tokens": 500000,+ "mode": "chat",+ "output_cost_per_token": 6.6e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json",+ "supports_function_calling": true,+ "supports_prompt_caching": false,+ "supports_reasoning": true,+ "supports_tool_choice": true,+ "supports_vision": true+ },+ "xai.grok-4.7": {+ "cache_read_input_token_cost": 5e-07,+ "input_cost_per_token": 2e-06,+ "litellm_provider": "bedrock_converse",+ "max_input_tokens": 500000,+ "max_output_tokens": 500000,+ "max_tokens": 500000,+ "mode": "chat",+ "output_cost_per_token": 6e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json",+ "supports_function_calling": true,+ "supports_prompt_caching": false,+ "supports_reasoning": true,+ "supports_tool_choice": true,+ "supports_vision": true}}diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex d5490f5df9e..140e0cf0071 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -12913,13 +12913,13 @@"source": "https://aws.amazon.com/bedrock/pricing/"},"bedrock/ap-southeast-2/minimax.minimax-m2.5": {- "input_cost_per_token": 3.09e-07,+ "input_cost_per_token": 3.1e-07,"litellm_provider": "bedrock","max_input_tokens": 1000000,"max_output_tokens": 8192,"max_tokens": 8192,"mode": "chat",- "source": "https://aws.amazon.com/bedrock/pricing/",+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_reasoning": true,"supports_system_messages": true,@@ -12927,7 +12927,7 @@"supports_audio_input": false,"supports_response_schema": true,"supports_vision": false,- "output_cost_per_token": 1.236e-06+ "output_cost_per_token": 1.24e-06},"bedrock/ap-southeast-3/deepseek.v3.2": {"input_cost_per_token": 7.4e-07,@@ -37373,24 +37373,26 @@"source": "https://aws.amazon.com/bedrock/pricing/"},"meta.llama3-1-405b-instruct-v1:0": {- "input_cost_per_token": 5.32e-06,+ "input_cost_per_token": 2.4e-06,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 1.6e-05,+ "output_cost_per_token": 2.4e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false},"meta.llama3-1-70b-instruct-v1:0": {- "input_cost_per_token": 9.9e-07,+ "input_cost_per_token": 7.2e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 2048,"max_tokens": 2048,"mode": "chat",- "output_cost_per_token": 9.9e-07,+ "output_cost_per_token": 7.2e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false},@@ -37406,13 +37408,14 @@"supports_tool_choice": false},"meta.llama3-2-11b-instruct-v1:0": {- "input_cost_per_token": 3.5e-07,+ "input_cost_per_token": 1.6e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 3.5e-07,+ "output_cost_per_token": 1.6e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false,"supports_vision": true@@ -37440,13 +37443,14 @@"supports_tool_choice": false},"meta.llama3-2-90b-instruct-v1:0": {- "input_cost_per_token": 2e-06,+ "input_cost_per_token": 7.2e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 2e-06,+ "output_cost_per_token": 7.2e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false,"supports_vision": true@@ -38085,13 +38089,14 @@"supports_function_calling": true},"mistral.mistral-large-2407-v1:0": {- "input_cost_per_token": 3e-06,+ "input_cost_per_token": 2e-06,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 8191,"max_tokens": 8191,"mode": "chat",- "output_cost_per_token": 9e-06,+ "output_cost_per_token": 6e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": true},@@ -47427,24 +47432,26 @@"supports_vision": false},"us.meta.llama3-1-405b-instruct-v1:0": {- "input_cost_per_token": 5.32e-06,+ "input_cost_per_token": 2.4e-06,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 1.6e-05,+ "output_cost_per_token": 2.4e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false},"us.meta.llama3-1-70b-instruct-v1:0": {- "input_cost_per_token": 9.9e-07,+ "input_cost_per_token": 7.2e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 2048,"max_tokens": 2048,"mode": "chat",- "output_cost_per_token": 9.9e-07,+ "output_cost_per_token": 7.2e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false},@@ -47460,13 +47467,14 @@"supports_tool_choice": false},"us.meta.llama3-2-11b-instruct-v1:0": {- "input_cost_per_token": 3.5e-07,+ "input_cost_per_token": 1.6e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 3.5e-07,+ "output_cost_per_token": 1.6e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false,"supports_vision": true@@ -47494,13 +47502,14 @@"supports_tool_choice": false},"us.meta.llama3-2-90b-instruct-v1:0": {- "input_cost_per_token": 2e-06,+ "input_cost_per_token": 7.2e-07,"litellm_provider": "bedrock","max_input_tokens": 128000,"max_output_tokens": 4096,"max_tokens": 4096,"mode": "chat",- "output_cost_per_token": 2e-06,+ "output_cost_per_token": 7.2e-07,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_tool_choice": false,"supports_vision": true@@ -78535,5 +78544,53 @@"supports_system_messages": true,"supports_tool_choice": true,"supports_vision": false+ },+ "global.xai.grok-4.7": {+ "cache_read_input_token_cost": 5e-07,+ "input_cost_per_token": 2e-06,+ "litellm_provider": "bedrock_converse",+ "max_input_tokens": 500000,+ "max_output_tokens": 500000,+ "max_tokens": 500000,+ "mode": "chat",+ "output_cost_per_token": 6e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json",+ "supports_function_calling": true,+ "supports_prompt_caching": false,+ "supports_reasoning": true,+ "supports_tool_choice": true,+ "supports_vision": true+ },+ "us.xai.grok-4.7": {+ "cache_read_input_token_cost": 5.5e-07,+ "input_cost_per_token": 2.2e-06,+ "litellm_provider": "bedrock_converse",+ "max_input_tokens": 500000,+ "max_output_tokens": 500000,+ "max_tokens": 500000,+ "mode": "chat",+ "output_cost_per_token": 6.6e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json",+ "supports_function_calling": true,+ "supports_prompt_caching": false,+ "supports_reasoning": true,+ "supports_tool_choice": true,+ "supports_vision": true+ },+ "xai.grok-4.7": {+ "cache_read_input_token_cost": 5e-07,+ "input_cost_per_token": 2e-06,+ "litellm_provider": "bedrock_converse",+ "max_input_tokens": 500000,+ "max_output_tokens": 500000,+ "max_tokens": 500000,+ "mode": "chat",+ "output_cost_per_token": 6e-06,+ "source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json",+ "supports_function_calling": true,+ "supports_prompt_caching": false,+ "supports_reasoning": true,+ "supports_tool_choice": true,+ "supports_vision": true}}