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
fix(bedrock): add priority and flex prices for Grok 4.3, 4.6, 4.7 and Kimi K3 (#44670)
berriai-litellm-provider-info-sync[bot]8c1563183619
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex b46fdd736a0..694c1f53c31 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -59057,11 +59057,17 @@"input_cost_per_token": 1.25e-06,"output_cost_per_token": 2.5e-06,"cache_read_input_token_cost": 2e-07,+ "cache_read_input_token_cost_flex": 1e-07,+ "cache_read_input_token_cost_priority": 3.5e-07,+ "input_cost_per_token_flex": 6.25e-07,+ "input_cost_per_token_priority": 2.1875e-06,"litellm_provider": "bedrock_mantle","max_input_tokens": 1048576,"max_output_tokens": 16384,"max_tokens": 16384,"mode": "chat",+ "output_cost_per_token_flex": 1.25e-06,+ "output_cost_per_token_priority": 4.375e-06,"supported_endpoints": ["/v1/chat/completions","/v1/responses"@@ -59078,11 +59084,17 @@"input_cost_per_token": 2.2e-06,"output_cost_per_token": 6.6e-06,"cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_flex": 2.75e-07,+ "cache_read_input_token_cost_priority": 9.625e-07,+ "input_cost_per_token_flex": 1.1e-06,+ "input_cost_per_token_priority": 3.85e-06,"litellm_provider": "bedrock_mantle","max_input_tokens": 500000,"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat",+ "output_cost_per_token_flex": 3.3e-06,+ "output_cost_per_token_priority": 1.155e-05,"supported_endpoints": ["/v1/chat/completions","/v1/responses"@@ -59209,6 +59221,10 @@"input_cost_per_token": 2.2e-06,"output_cost_per_token": 6.6e-06,"cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_flex": 2.75e-07,+ "cache_read_input_token_cost_priority": 9.625e-07,+ "input_cost_per_token_flex": 1.1e-06,+ "input_cost_per_token_priority": 3.85e-06,"supported_endpoints": ["/v1/chat/completions"],@@ -59219,6 +59235,8 @@"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat",+ "output_cost_per_token_flex": 3.3e-06,+ "output_cost_per_token_priority": 1.155e-05,"source": "https://aws.amazon.com/bedrock/pricing/","supports_function_calling": true,"supports_prompt_caching": false,@@ -59231,6 +59249,10 @@"input_cost_per_token": 2e-06,"output_cost_per_token": 6e-06,"cache_read_input_token_cost": 5e-07,+ "cache_read_input_token_cost_flex": 2.5e-07,+ "cache_read_input_token_cost_priority": 8.75e-07,+ "input_cost_per_token_flex": 1e-06,+ "input_cost_per_token_priority": 3.5e-06,"supported_endpoints": ["/v1/chat/completions"],@@ -59241,6 +59263,8 @@"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat",+ "output_cost_per_token_flex": 3e-06,+ "output_cost_per_token_priority": 1.05e-05,"source": "https://aws.amazon.com/bedrock/pricing/","supports_function_calling": true,"supports_prompt_caching": false,@@ -77016,14 +77040,22 @@"moonshotai.kimi-k3": {"supports_regex_lookaround": false,"cache_creation_input_token_cost": 4.125e-06,+ "cache_creation_input_token_cost_flex": 2.0625e-06,+ "cache_creation_input_token_cost_priority": 7.21875e-06,"cache_read_input_token_cost": 3.3e-07,+ "cache_read_input_token_cost_flex": 1.65e-07,+ "cache_read_input_token_cost_priority": 5.775e-07,"input_cost_per_token": 3.3e-06,+ "input_cost_per_token_flex": 1.65e-06,+ "input_cost_per_token_priority": 5.775e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 1000000,"max_output_tokens": 131072,"max_tokens": 131072,"mode": "chat","output_cost_per_token": 1.65e-05,+ "output_cost_per_token_flex": 8.25e-06,+ "output_cost_per_token_priority": 2.8875e-05,"source": "https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrock/current/us-east-1/index.json","supports_audio_input": false,"supports_function_calling": true,@@ -77038,14 +77070,22 @@"global.moonshotai.kimi-k3": {"supports_regex_lookaround": false,"cache_creation_input_token_cost": 3.75e-06,+ "cache_creation_input_token_cost_flex": 1.875e-06,+ "cache_creation_input_token_cost_priority": 6.5625e-06,"cache_read_input_token_cost": 3e-07,+ "cache_read_input_token_cost_flex": 1.5e-07,+ "cache_read_input_token_cost_priority": 5.25e-07,"input_cost_per_token": 3e-06,+ "input_cost_per_token_flex": 1.5e-06,+ "input_cost_per_token_priority": 5.25e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 1000000,"max_output_tokens": 131072,"max_tokens": 131072,"mode": "chat","output_cost_per_token": 1.5e-05,+ "output_cost_per_token_flex": 7.5e-06,+ "output_cost_per_token_priority": 2.625e-05,"source": "https://aws.amazon.com/bedrock/pricing/","supports_audio_input": false,"supports_function_calling": true,@@ -77060,14 +77100,22 @@"us.moonshotai.kimi-k3": {"supports_regex_lookaround": false,"cache_creation_input_token_cost": 4.125e-06,+ "cache_creation_input_token_cost_flex": 2.0625e-06,+ "cache_creation_input_token_cost_priority": 7.21875e-06,"cache_read_input_token_cost": 3.3e-07,+ "cache_read_input_token_cost_flex": 1.65e-07,+ "cache_read_input_token_cost_priority": 5.775e-07,"input_cost_per_token": 3.3e-06,+ "input_cost_per_token_flex": 1.65e-06,+ "input_cost_per_token_priority": 5.775e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 1000000,"max_output_tokens": 131072,"max_tokens": 131072,"mode": "chat","output_cost_per_token": 1.65e-05,+ "output_cost_per_token_flex": 8.25e-06,+ "output_cost_per_token_priority": 2.8875e-05,"source": "https://aws.amazon.com/bedrock/pricing/","supports_audio_input": false,"supports_function_calling": true,@@ -79618,13 +79666,19 @@"global.xai.grok-4.7": {"supports_regex_lookaround": false,"cache_read_input_token_cost": 5e-07,+ "cache_read_input_token_cost_flex": 2.5e-07,+ "cache_read_input_token_cost_priority": 8.75e-07,"input_cost_per_token": 2e-06,+ "input_cost_per_token_flex": 1e-06,+ "input_cost_per_token_priority": 3.5e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 500000,"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat","output_cost_per_token": 6e-06,+ "output_cost_per_token_flex": 3e-06,+ "output_cost_per_token_priority": 1.05e-05,"source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_prompt_caching": false,@@ -79635,13 +79689,19 @@"us.xai.grok-4.7": {"supports_regex_lookaround": false,"cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_flex": 2.75e-07,+ "cache_read_input_token_cost_priority": 9.625e-07,"input_cost_per_token": 2.2e-06,+ "input_cost_per_token_flex": 1.1e-06,+ "input_cost_per_token_priority": 3.85e-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,+ "output_cost_per_token_flex": 3.3e-06,+ "output_cost_per_token_priority": 1.155e-05,"source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_prompt_caching": false,@@ -79652,13 +79712,19 @@"xai.grok-4.7": {"supports_regex_lookaround": false,"cache_read_input_token_cost": 5e-07,+ "cache_read_input_token_cost_flex": 2.5e-07,+ "cache_read_input_token_cost_priority": 8.75e-07,"input_cost_per_token": 2e-06,+ "input_cost_per_token_flex": 1e-06,+ "input_cost_per_token_priority": 3.5e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 500000,"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat","output_cost_per_token": 6e-06,+ "output_cost_per_token_flex": 3e-06,+ "output_cost_per_token_priority": 1.05e-05,"source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_prompt_caching": false,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex b46fdd736a0..694c1f53c31 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -59057,11 +59057,17 @@"input_cost_per_token": 1.25e-06,"output_cost_per_token": 2.5e-06,"cache_read_input_token_cost": 2e-07,+ "cache_read_input_token_cost_flex": 1e-07,+ "cache_read_input_token_cost_priority": 3.5e-07,+ "input_cost_per_token_flex": 6.25e-07,+ "input_cost_per_token_priority": 2.1875e-06,"litellm_provider": "bedrock_mantle","max_input_tokens": 1048576,"max_output_tokens": 16384,"max_tokens": 16384,"mode": "chat",+ "output_cost_per_token_flex": 1.25e-06,+ "output_cost_per_token_priority": 4.375e-06,"supported_endpoints": ["/v1/chat/completions","/v1/responses"@@ -59078,11 +59084,17 @@"input_cost_per_token": 2.2e-06,"output_cost_per_token": 6.6e-06,"cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_flex": 2.75e-07,+ "cache_read_input_token_cost_priority": 9.625e-07,+ "input_cost_per_token_flex": 1.1e-06,+ "input_cost_per_token_priority": 3.85e-06,"litellm_provider": "bedrock_mantle","max_input_tokens": 500000,"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat",+ "output_cost_per_token_flex": 3.3e-06,+ "output_cost_per_token_priority": 1.155e-05,"supported_endpoints": ["/v1/chat/completions","/v1/responses"@@ -59209,6 +59221,10 @@"input_cost_per_token": 2.2e-06,"output_cost_per_token": 6.6e-06,"cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_flex": 2.75e-07,+ "cache_read_input_token_cost_priority": 9.625e-07,+ "input_cost_per_token_flex": 1.1e-06,+ "input_cost_per_token_priority": 3.85e-06,"supported_endpoints": ["/v1/chat/completions"],@@ -59219,6 +59235,8 @@"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat",+ "output_cost_per_token_flex": 3.3e-06,+ "output_cost_per_token_priority": 1.155e-05,"source": "https://aws.amazon.com/bedrock/pricing/","supports_function_calling": true,"supports_prompt_caching": false,@@ -59231,6 +59249,10 @@"input_cost_per_token": 2e-06,"output_cost_per_token": 6e-06,"cache_read_input_token_cost": 5e-07,+ "cache_read_input_token_cost_flex": 2.5e-07,+ "cache_read_input_token_cost_priority": 8.75e-07,+ "input_cost_per_token_flex": 1e-06,+ "input_cost_per_token_priority": 3.5e-06,"supported_endpoints": ["/v1/chat/completions"],@@ -59241,6 +59263,8 @@"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat",+ "output_cost_per_token_flex": 3e-06,+ "output_cost_per_token_priority": 1.05e-05,"source": "https://aws.amazon.com/bedrock/pricing/","supports_function_calling": true,"supports_prompt_caching": false,@@ -77016,14 +77040,22 @@"moonshotai.kimi-k3": {"supports_regex_lookaround": false,"cache_creation_input_token_cost": 4.125e-06,+ "cache_creation_input_token_cost_flex": 2.0625e-06,+ "cache_creation_input_token_cost_priority": 7.21875e-06,"cache_read_input_token_cost": 3.3e-07,+ "cache_read_input_token_cost_flex": 1.65e-07,+ "cache_read_input_token_cost_priority": 5.775e-07,"input_cost_per_token": 3.3e-06,+ "input_cost_per_token_flex": 1.65e-06,+ "input_cost_per_token_priority": 5.775e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 1000000,"max_output_tokens": 131072,"max_tokens": 131072,"mode": "chat","output_cost_per_token": 1.65e-05,+ "output_cost_per_token_flex": 8.25e-06,+ "output_cost_per_token_priority": 2.8875e-05,"source": "https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrock/current/us-east-1/index.json","supports_audio_input": false,"supports_function_calling": true,@@ -77038,14 +77070,22 @@"global.moonshotai.kimi-k3": {"supports_regex_lookaround": false,"cache_creation_input_token_cost": 3.75e-06,+ "cache_creation_input_token_cost_flex": 1.875e-06,+ "cache_creation_input_token_cost_priority": 6.5625e-06,"cache_read_input_token_cost": 3e-07,+ "cache_read_input_token_cost_flex": 1.5e-07,+ "cache_read_input_token_cost_priority": 5.25e-07,"input_cost_per_token": 3e-06,+ "input_cost_per_token_flex": 1.5e-06,+ "input_cost_per_token_priority": 5.25e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 1000000,"max_output_tokens": 131072,"max_tokens": 131072,"mode": "chat","output_cost_per_token": 1.5e-05,+ "output_cost_per_token_flex": 7.5e-06,+ "output_cost_per_token_priority": 2.625e-05,"source": "https://aws.amazon.com/bedrock/pricing/","supports_audio_input": false,"supports_function_calling": true,@@ -77060,14 +77100,22 @@"us.moonshotai.kimi-k3": {"supports_regex_lookaround": false,"cache_creation_input_token_cost": 4.125e-06,+ "cache_creation_input_token_cost_flex": 2.0625e-06,+ "cache_creation_input_token_cost_priority": 7.21875e-06,"cache_read_input_token_cost": 3.3e-07,+ "cache_read_input_token_cost_flex": 1.65e-07,+ "cache_read_input_token_cost_priority": 5.775e-07,"input_cost_per_token": 3.3e-06,+ "input_cost_per_token_flex": 1.65e-06,+ "input_cost_per_token_priority": 5.775e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 1000000,"max_output_tokens": 131072,"max_tokens": 131072,"mode": "chat","output_cost_per_token": 1.65e-05,+ "output_cost_per_token_flex": 8.25e-06,+ "output_cost_per_token_priority": 2.8875e-05,"source": "https://aws.amazon.com/bedrock/pricing/","supports_audio_input": false,"supports_function_calling": true,@@ -79618,13 +79666,19 @@"global.xai.grok-4.7": {"supports_regex_lookaround": false,"cache_read_input_token_cost": 5e-07,+ "cache_read_input_token_cost_flex": 2.5e-07,+ "cache_read_input_token_cost_priority": 8.75e-07,"input_cost_per_token": 2e-06,+ "input_cost_per_token_flex": 1e-06,+ "input_cost_per_token_priority": 3.5e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 500000,"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat","output_cost_per_token": 6e-06,+ "output_cost_per_token_flex": 3e-06,+ "output_cost_per_token_priority": 1.05e-05,"source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_prompt_caching": false,@@ -79635,13 +79689,19 @@"us.xai.grok-4.7": {"supports_regex_lookaround": false,"cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_flex": 2.75e-07,+ "cache_read_input_token_cost_priority": 9.625e-07,"input_cost_per_token": 2.2e-06,+ "input_cost_per_token_flex": 1.1e-06,+ "input_cost_per_token_priority": 3.85e-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,+ "output_cost_per_token_flex": 3.3e-06,+ "output_cost_per_token_priority": 1.155e-05,"source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_prompt_caching": false,@@ -79652,13 +79712,19 @@"xai.grok-4.7": {"supports_regex_lookaround": false,"cache_read_input_token_cost": 5e-07,+ "cache_read_input_token_cost_flex": 2.5e-07,+ "cache_read_input_token_cost_priority": 8.75e-07,"input_cost_per_token": 2e-06,+ "input_cost_per_token_flex": 1e-06,+ "input_cost_per_token_priority": 3.5e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 500000,"max_output_tokens": 500000,"max_tokens": 500000,"mode": "chat","output_cost_per_token": 6e-06,+ "output_cost_per_token_flex": 3e-06,+ "output_cost_per_token_priority": 1.05e-05,"source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json","supports_function_calling": true,"supports_prompt_caching": false,