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: add xai/grok-4.7 to model cost map backup file

kerry795239de20c3
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 2cc43591825..727fb94b77e 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -53006,6 +53006,27 @@
"supports_vision": true,
"supports_web_search": true
},
+ "xai/grok-4.7": {
+ "cache_read_input_token_cost": 5e-07,
+ "cache_read_input_token_cost_above_200k_tokens": 1e-06,
+ "input_cost_per_token": 2e-06,
+ "input_cost_per_token_above_200k_tokens": 4e-06,
+ "litellm_provider": "xai",
+ "max_input_tokens": 500000,
+ "max_output_tokens": 500000,
+ "max_tokens": 500000,
+ "mode": "chat",
+ "output_cost_per_token": 6e-06,
+ "output_cost_per_token_above_200k_tokens": 1.2e-05,
+ "source": "https://docs.x.ai/developers/models",
+ "supports_function_calling": true,
+ "supports_prompt_caching": true,
+ "supports_reasoning": true,
+ "supports_response_schema": true,
+ "supports_tool_choice": true,
+ "supports_vision": true,
+ "supports_web_search": true
+ },
"xai/grok-code-fast": {
"cache_read_input_token_cost": 2e-07,
"input_cost_per_token": 1e-06,