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]

add grok-4 configs to table (#12476)

fatih akyon9d3cb11dc6c4
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index bc19668e6a1..ad04d774d71 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -4950,6 +4950,48 @@
"supports_tool_choice": true,
"supports_web_search": true
},
+ "xai/grok-4": {
+ "max_tokens": 256000,
+ "max_input_tokens": 256000,
+ "max_output_tokens": 256000,
+ "input_cost_per_token": 3e-06,
+ "output_cost_per_token": 1.5e-05,
+ "litellm_provider": "xai",
+ "mode": "chat",
+ "supports_function_calling": true,
+ "supports_tool_choice": true,
+ "supports_reasoning": true,
+ "source": "https://docs.x.ai/docs/models",
+ "supports_web_search": true
+ },
+ "xai/grok-4-0709": {
+ "max_tokens": 256000,
+ "max_input_tokens": 256000,
+ "max_output_tokens": 256000,
+ "input_cost_per_token": 3e-06,
+ "output_cost_per_token": 1.5e-05,
+ "litellm_provider": "xai",
+ "mode": "chat",
+ "supports_function_calling": true,
+ "supports_tool_choice": true,
+ "supports_reasoning": true,
+ "source": "https://docs.x.ai/docs/models",
+ "supports_web_search": true
+ },
+ "xai/grok-4-latest": {
+ "max_tokens": 256000,
+ "max_input_tokens": 256000,
+ "max_output_tokens": 256000,
+ "input_cost_per_token": 3e-06,
+ "output_cost_per_token": 1.5e-05,
+ "litellm_provider": "xai",
+ "mode": "chat",
+ "supports_function_calling": true,
+ "supports_tool_choice": true,
+ "supports_reasoning": true,
+ "source": "https://docs.x.ai/docs/models",
+ "supports_web_search": true
+ },
"deepseek/deepseek-coder": {
"max_tokens": 4096,
"max_input_tokens": 128000,
@@ -15796,4 +15838,4 @@
"notes": "ElevenLabs Scribe v1 experimental - enhanced version of the main Scribe model"
}
}
-}
\ No newline at end of file
+}