Skip to content

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]

fix(bedrock): remove the bare xai.grok-4.7 cost-map row that AWS cannot invoke (#45460)

devin-ai-integration[bot]4f62bbfd8b09
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 663c6d1a2a7..8fcf073521e 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -80458,29 +80458,6 @@
"supports_tool_choice": true,
"supports_vision": true
},
- "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,
- "supports_reasoning": true,
- "supports_tool_choice": true,
- "supports_vision": true
- },
"openrouter/anthropic/claude-sonnet-5.5:batch": {
"cache_creation_input_token_cost": 1.25e-06,
"cache_creation_input_token_cost_above_1hr": 2e-06,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 663c6d1a2a7..8fcf073521e 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -80458,29 +80458,6 @@
"supports_tool_choice": true,
"supports_vision": true
},
- "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,
- "supports_reasoning": true,
- "supports_tool_choice": true,
- "supports_vision": true
- },
"openrouter/anthropic/claude-sonnet-5.5:batch": {
"cache_creation_input_token_cost": 1.25e-06,
"cache_creation_input_token_cost_above_1hr": 2e-06,
diff --git a/tests/unit/llms/bedrock/chat/test_converse_transformation.py b/tests/unit/llms/bedrock/chat/test_converse_transformation.py
index f43f15b8230..e42ee95f8d5 100644
--- a/tests/unit/llms/bedrock/chat/test_converse_transformation.py
+++ b/tests/unit/llms/bedrock/chat/test_converse_transformation.py
@@ -742,7 +742,7 @@ def _tool_schema_properties(model, tool, litellm_params=None):
"us.xai.grok-4.6",
"us-gov.xai.grok-4.6",
"global.xai.grok-4.7",
- "xai.grok-4.7",
+ "us.xai.grok-4.7",
],
)
def test_transform_request_drops_lookaround_regex_for_models_the_cost_map_flags(tool, model):