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
fix(model_prices): registry audit 2026-10-15, OpenAI GPT-4 series shutdown dates, Azure gpt-chat-latest retirement, xAI voice text input, Sail DeepSeek V4.1 Flash prices (#46675)
devin-ai-integration[bot]53cd1d4a98f8
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex cdec1c2f449..9dbe4026c74 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -4049,7 +4049,7 @@},"azure_ai/gpt-chat-latest": {"cache_read_input_token_cost": 5e-07,- "deprecation_date": "2026-12-02",+ "deprecation_date": "2027-05-18","input_cost_per_token": 5e-06,"litellm_provider": "azure_ai","max_input_tokens": 272000,@@ -8866,7 +8866,7 @@},"azure/gpt-chat-latest": {"cache_read_input_token_cost": 5e-07,- "deprecation_date": "2026-12-02",+ "deprecation_date": "2027-05-18","input_cost_per_token": 5e-06,"litellm_provider": "azure","max_input_tokens": 272000,@@ -9313,7 +9313,7 @@},"azure/us/gpt-chat-latest": {"cache_read_input_token_cost": 5.5e-07,- "deprecation_date": "2026-12-02",+ "deprecation_date": "2027-05-18","input_cost_per_token": 5.5e-06,"litellm_provider": "azure","max_input_tokens": 272000,@@ -24102,14 +24102,14 @@"max_tokens": 1048576,"max_input_tokens": 1048576,"max_output_tokens": 1048576,- "input_cost_per_token": 1.5e-07,- "output_cost_per_token": 6e-07,+ "input_cost_per_token": 9e-08,+ "output_cost_per_token": 3e-07,"cache_read_input_token_cost": 6e-09,- "input_cost_per_token_balanced": 1.2e-07,- "output_cost_per_token_balanced": 4.8e-07,+ "input_cost_per_token_balanced": 7e-08,+ "output_cost_per_token_balanced": 2.2e-07,"cache_read_input_token_cost_balanced": 5e-09,- "input_cost_per_token_flex": 8e-08,- "output_cost_per_token_flex": 3e-07,+ "input_cost_per_token_flex": 5e-08,+ "output_cost_per_token_flex": 1.5e-07,"cache_read_input_token_cost_flex": 4e-09,"litellm_provider": "sail","mode": "chat",@@ -28207,6 +28207,7 @@"ft:gpt-4o-2024-08-06": {"cache_read_input_token_cost": 1.875e-06,"cache_read_input_token_cost_batches": 9e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 3.75e-06,"input_cost_per_token_batches": 2.225e-06,"litellm_provider": "openai",@@ -28228,6 +28229,7 @@},"ft:gpt-4o-2024-11-20": {"cache_creation_input_token_cost": 1.875e-06,+ "deprecation_date": "2027-01-14","input_cost_per_token": 3.75e-06,"litellm_provider": "openai","max_input_tokens": 128000,@@ -28246,6 +28248,7 @@"ft:gpt-4o-mini-2024-07-18": {"cache_read_input_token_cost": 1.5e-07,"cache_read_input_token_cost_batches": 7.5e-08,+ "deprecation_date": "2027-01-14","input_cost_per_token": 3e-07,"input_cost_per_token_batches": 1.5e-07,"litellm_provider": "openai",@@ -28267,6 +28270,7 @@"ft:gpt-4.1-2025-04-14": {"cache_read_input_token_cost": 7.5e-07,"cache_read_input_token_cost_batches": 5e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 3e-06,"input_cost_per_token_batches": 1.5e-06,"litellm_provider": "openai",@@ -28287,6 +28291,7 @@"ft:gpt-4.1-mini-2025-04-14": {"cache_read_input_token_cost": 2e-07,"cache_read_input_token_cost_batches": 1e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 8e-07,"input_cost_per_token_batches": 4e-07,"litellm_provider": "openai",@@ -33987,6 +33992,7 @@"gpt-4.1-2025-04-14": {"cache_read_input_token_cost": 5e-07,"cache_read_input_token_cost_priority": 8.75e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 2e-06,"input_cost_per_token_priority": 3.5e-06,"input_cost_per_token_batches": 1e-06,@@ -34073,6 +34079,7 @@"gpt-4.1-mini-2025-04-14": {"cache_read_input_token_cost": 1e-07,"cache_read_input_token_cost_priority": 1.75e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 4e-07,"input_cost_per_token_priority": 7e-07,"input_cost_per_token_batches": 2e-07,@@ -34238,6 +34245,7 @@"gpt-4o-2024-08-06": {"cache_read_input_token_cost": 1.25e-06,"cache_read_input_token_cost_priority": 2.125e-06,+ "deprecation_date": "2027-01-14","input_cost_per_token": 2.5e-06,"input_cost_per_token_priority": 4.25e-06,"input_cost_per_token_batches": 1.25e-06,@@ -34262,6 +34270,7 @@"gpt-4o-2024-11-20": {"cache_read_input_token_cost": 1.25e-06,"cache_read_input_token_cost_priority": 2.125e-06,+ "deprecation_date": "2027-01-14","input_cost_per_token": 2.5e-06,"input_cost_per_token_priority": 4.25e-06,"input_cost_per_token_batches": 1.25e-06,@@ -34575,6 +34584,7 @@"gpt-4o-mini-2024-07-18": {"cache_read_input_token_cost": 7.5e-08,"cache_read_input_token_cost_priority": 1.25e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 1.5e-07,"input_cost_per_token_priority": 2.5e-07,"input_cost_per_token_batches": 7.5e-08,@@ -74735,6 +74745,7 @@},"xai/grok-voice-3.0": {"input_cost_per_second": 0.001333333333333,+ "input_cost_per_text_message": 0.004,"litellm_provider": "xai","mode": "realtime","source": "https://docs.x.ai/developers/pricing",@@ -74755,6 +74766,7 @@},"xai/grok-voice-latest": {"input_cost_per_second": 0.001333333333333,+ "input_cost_per_text_message": 0.004,"litellm_provider": "xai","mode": "realtime","source": "https://docs.x.ai/developers/pricing",@@ -74775,6 +74787,7 @@},"xai/grok-voice-2.0": {"input_cost_per_second": 0.001333333333333,+ "input_cost_per_text_message": 0.004,"litellm_provider": "xai","mode": "realtime","source": "https://docs.x.ai/developers/pricing",diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex cdec1c2f449..9dbe4026c74 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -4049,7 +4049,7 @@},"azure_ai/gpt-chat-latest": {"cache_read_input_token_cost": 5e-07,- "deprecation_date": "2026-12-02",+ "deprecation_date": "2027-05-18","input_cost_per_token": 5e-06,"litellm_provider": "azure_ai","max_input_tokens": 272000,@@ -8866,7 +8866,7 @@},"azure/gpt-chat-latest": {"cache_read_input_token_cost": 5e-07,- "deprecation_date": "2026-12-02",+ "deprecation_date": "2027-05-18","input_cost_per_token": 5e-06,"litellm_provider": "azure","max_input_tokens": 272000,@@ -9313,7 +9313,7 @@},"azure/us/gpt-chat-latest": {"cache_read_input_token_cost": 5.5e-07,- "deprecation_date": "2026-12-02",+ "deprecation_date": "2027-05-18","input_cost_per_token": 5.5e-06,"litellm_provider": "azure","max_input_tokens": 272000,@@ -24102,14 +24102,14 @@"max_tokens": 1048576,"max_input_tokens": 1048576,"max_output_tokens": 1048576,- "input_cost_per_token": 1.5e-07,- "output_cost_per_token": 6e-07,+ "input_cost_per_token": 9e-08,+ "output_cost_per_token": 3e-07,"cache_read_input_token_cost": 6e-09,- "input_cost_per_token_balanced": 1.2e-07,- "output_cost_per_token_balanced": 4.8e-07,+ "input_cost_per_token_balanced": 7e-08,+ "output_cost_per_token_balanced": 2.2e-07,"cache_read_input_token_cost_balanced": 5e-09,- "input_cost_per_token_flex": 8e-08,- "output_cost_per_token_flex": 3e-07,+ "input_cost_per_token_flex": 5e-08,+ "output_cost_per_token_flex": 1.5e-07,"cache_read_input_token_cost_flex": 4e-09,"litellm_provider": "sail","mode": "chat",@@ -28207,6 +28207,7 @@"ft:gpt-4o-2024-08-06": {"cache_read_input_token_cost": 1.875e-06,"cache_read_input_token_cost_batches": 9e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 3.75e-06,"input_cost_per_token_batches": 2.225e-06,"litellm_provider": "openai",@@ -28228,6 +28229,7 @@},"ft:gpt-4o-2024-11-20": {"cache_creation_input_token_cost": 1.875e-06,+ "deprecation_date": "2027-01-14","input_cost_per_token": 3.75e-06,"litellm_provider": "openai","max_input_tokens": 128000,@@ -28246,6 +28248,7 @@"ft:gpt-4o-mini-2024-07-18": {"cache_read_input_token_cost": 1.5e-07,"cache_read_input_token_cost_batches": 7.5e-08,+ "deprecation_date": "2027-01-14","input_cost_per_token": 3e-07,"input_cost_per_token_batches": 1.5e-07,"litellm_provider": "openai",@@ -28267,6 +28270,7 @@"ft:gpt-4.1-2025-04-14": {"cache_read_input_token_cost": 7.5e-07,"cache_read_input_token_cost_batches": 5e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 3e-06,"input_cost_per_token_batches": 1.5e-06,"litellm_provider": "openai",@@ -28287,6 +28291,7 @@"ft:gpt-4.1-mini-2025-04-14": {"cache_read_input_token_cost": 2e-07,"cache_read_input_token_cost_batches": 1e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 8e-07,"input_cost_per_token_batches": 4e-07,"litellm_provider": "openai",@@ -33987,6 +33992,7 @@"gpt-4.1-2025-04-14": {"cache_read_input_token_cost": 5e-07,"cache_read_input_token_cost_priority": 8.75e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 2e-06,"input_cost_per_token_priority": 3.5e-06,"input_cost_per_token_batches": 1e-06,@@ -34073,6 +34079,7 @@"gpt-4.1-mini-2025-04-14": {"cache_read_input_token_cost": 1e-07,"cache_read_input_token_cost_priority": 1.75e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 4e-07,"input_cost_per_token_priority": 7e-07,"input_cost_per_token_batches": 2e-07,@@ -34238,6 +34245,7 @@"gpt-4o-2024-08-06": {"cache_read_input_token_cost": 1.25e-06,"cache_read_input_token_cost_priority": 2.125e-06,+ "deprecation_date": "2027-01-14","input_cost_per_token": 2.5e-06,"input_cost_per_token_priority": 4.25e-06,"input_cost_per_token_batches": 1.25e-06,@@ -34262,6 +34270,7 @@"gpt-4o-2024-11-20": {"cache_read_input_token_cost": 1.25e-06,"cache_read_input_token_cost_priority": 2.125e-06,+ "deprecation_date": "2027-01-14","input_cost_per_token": 2.5e-06,"input_cost_per_token_priority": 4.25e-06,"input_cost_per_token_batches": 1.25e-06,@@ -34575,6 +34584,7 @@"gpt-4o-mini-2024-07-18": {"cache_read_input_token_cost": 7.5e-08,"cache_read_input_token_cost_priority": 1.25e-07,+ "deprecation_date": "2027-01-14","input_cost_per_token": 1.5e-07,"input_cost_per_token_priority": 2.5e-07,"input_cost_per_token_batches": 7.5e-08,@@ -74735,6 +74745,7 @@},"xai/grok-voice-3.0": {"input_cost_per_second": 0.001333333333333,+ "input_cost_per_text_message": 0.004,"litellm_provider": "xai","mode": "realtime","source": "https://docs.x.ai/developers/pricing",@@ -74755,6 +74766,7 @@},"xai/grok-voice-latest": {"input_cost_per_second": 0.001333333333333,+ "input_cost_per_text_message": 0.004,"litellm_provider": "xai","mode": "realtime","source": "https://docs.x.ai/developers/pricing",@@ -74775,6 +74787,7 @@},"xai/grok-voice-2.0": {"input_cost_per_second": 0.001333333333333,+ "input_cost_per_text_message": 0.004,"litellm_provider": "xai","mode": "realtime","source": "https://docs.x.ai/developers/pricing",diff --git a/model_prices_and_context_window.schema.json b/model_prices_and_context_window.schema.jsonindex 6437884e0d0..4404aa8e35c 100644--- a/model_prices_and_context_window.schema.json+++ b/model_prices_and_context_window.schema.json@@ -380,6 +380,10 @@"type": "number","minimum": 0},+ "input_cost_per_text_message": {+ "type": "number",+ "minimum": 0+ },"input_cost_per_token": {"type": "number","minimum": 0,