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: add xai/grok-3 pricing (#11028)
Ishaan Jaff089e13b4524b
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex a6f1a5883bd..8d7d062b818 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -3936,6 +3936,19 @@"supports_vision": true,"supports_tool_choice": true},+ "xai/grok-3": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "litellm_provider": "xai",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_tool_choice": true,+ "supports_response_schema": false,+ "source": "https://x.ai/api#pricing"+ },"xai/grok-3-beta": {"max_tokens": 131072,"max_input_tokens": 131072,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex a6f1a5883bd..8d7d062b818 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -3936,6 +3936,19 @@"supports_vision": true,"supports_tool_choice": true},+ "xai/grok-3": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "litellm_provider": "xai",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_tool_choice": true,+ "supports_response_schema": false,+ "source": "https://x.ai/api#pricing"+ },"xai/grok-3-beta": {"max_tokens": 131072,"max_input_tokens": 131072,