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(xai): add grok-4.7 to the cost map
kerry38fc7d6dca7c
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 2cc43591825..727fb94b77e 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.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,