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
Add support for grok-4.20-0309-reasoning model
Sameer Kankute3ef362289bb8
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex f8a45fef50a..04b68b8f4ec 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -33669,6 +33669,22 @@"supports_vision": true,"supports_web_search": true},+ "xai/grok-4.20-0309-reasoning": {+ "cache_read_input_token_cost": 2e-07,+ "input_cost_per_token": 2e-06,+ "litellm_provider": "xai",+ "max_input_tokens": 2000000,+ "max_output_tokens": 2000000,+ "max_tokens": 2000000,+ "mode": "chat",+ "output_cost_per_token": 6e-06,+ "source": "https://docs.x.ai/docs/models",+ "supports_function_calling": true,+ "supports_reasoning": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "supports_web_search": true+ },"xai/grok-4.20-beta-0309-non-reasoning": {"cache_read_input_token_cost": 2e-07,"input_cost_per_token": 2e-06,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex f8a45fef50a..04b68b8f4ec 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -33669,6 +33669,22 @@"supports_vision": true,"supports_web_search": true},+ "xai/grok-4.20-0309-reasoning": {+ "cache_read_input_token_cost": 2e-07,+ "input_cost_per_token": 2e-06,+ "litellm_provider": "xai",+ "max_input_tokens": 2000000,+ "max_output_tokens": 2000000,+ "max_tokens": 2000000,+ "mode": "chat",+ "output_cost_per_token": 6e-06,+ "source": "https://docs.x.ai/docs/models",+ "supports_function_calling": true,+ "supports_reasoning": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "supports_web_search": true+ },"xai/grok-4.20-beta-0309-non-reasoning": {"cache_read_input_token_cost": 2e-07,"input_cost_per_token": 2e-06,