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_mantle): add xai.grok-4.3 to model cost map for SigV4 auth (#31916)
devin-ai-integration[bot]7e993446d8c4
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex b16e1015255..8dfd3d0036a 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -42887,6 +42887,26 @@"supports_tool_choice": true,"supports_vision": true},+ "bedrock_mantle/xai.grok-4.3": {+ "input_cost_per_token": 1.25e-06,+ "output_cost_per_token": 2.5e-06,+ "cache_read_input_token_cost": 2e-07,+ "litellm_provider": "bedrock_mantle",+ "max_input_tokens": 131072,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "source": "https://aws.amazon.com/bedrock/pricing/"+ },"volcengine/doubao-seed-2-0-pro-260215": {"litellm_provider": "volcengine","max_input_tokens": 256000,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 3e4c5b947a1..6ab6f1bda46 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -43122,6 +43122,26 @@"supports_tool_choice": true,"supports_vision": true},+ "bedrock_mantle/xai.grok-4.3": {+ "input_cost_per_token": 1.25e-06,+ "output_cost_per_token": 2.5e-06,+ "cache_read_input_token_cost": 2e-07,+ "litellm_provider": "bedrock_mantle",+ "max_input_tokens": 131072,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "source": "https://aws.amazon.com/bedrock/pricing/"+ },"volcengine/doubao-seed-2-0-pro-260215": {"litellm_provider": "volcengine","max_input_tokens": 256000,diff --git a/tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_responses_transformation.py b/tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_responses_transformation.pyindex 94efc7c51ef..aafaf401700 100644--- a/tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_responses_transformation.py+++ b/tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_responses_transformation.py@@ -452,6 +452,16 @@ class TestBedrockMantleResponsesRegistry:assert isinstance(cfg, BedrockMantleResponsesAPIConfig)assert cfg.use_openai_path is True+ def test_registry_returns_native_config_for_xai_grok(self, local_cost_map):+ from litellm.utils import ProviderConfigManager++ cfg = ProviderConfigManager.get_provider_responses_api_config(+ provider="bedrock_mantle",+ model="xai.grok-4.3",+ )+ assert isinstance(cfg, BedrockMantleResponsesAPIConfig)+ assert cfg.use_openai_path is False+def test_unmapped_frontier_model_falls_through_to_none(self, restore_model_cost):# The gate is data-driven, not name-based: an unseen model not yet in the# price map (e.g. a future gpt-6) has no capability signal, so it falls