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(cost-map): add retired azure gpt-5 chat and o1-preview data zone rows (#42878)
devin-ai-integration[bot]e99c5d30b623
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 059c92f4b4b..2c4de480f8b 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -6627,6 +6627,255 @@"output_cost_per_token_priority": 2e-05,"source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'"},+ "azure/gpt-5-chat": {+ "cache_read_input_token_cost": 1.25e-07,+ "deprecation_date": "2026-05-13",+ "input_cost_per_token": 1.25e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 128000,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_prompt_caching": true,+ "supports_vision": true+ },+ "azure/gpt-5.1-chat": {+ "cache_read_input_token_cost": 1.25e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.25e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/gpt-5.2-chat": {+ "cache_read_input_token_cost": 1.75e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.75e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/gpt-5.3-chat": {+ "cache_read_input_token_cost": 1.75e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.75e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/us/gpt-5.1-chat": {+ "cache_read_input_token_cost": 1.375e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.375e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.1e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/us/gpt-5.2-chat": {+ "cache_read_input_token_cost": 1.925e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.925e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.54e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/us/gpt-5.3-chat": {+ "cache_read_input_token_cost": 1.925e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.925e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.54e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/eu/gpt-5.1-chat": {+ "cache_read_input_token_cost": 1.375e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.375e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.1e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/eu/gpt-5.2-chat": {+ "cache_read_input_token_cost": 1.925e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.925e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.54e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/eu/gpt-5.3-chat": {+ "cache_read_input_token_cost": 1.925e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.925e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.54e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/us/o1-preview": {+ "cache_read_input_token_cost": 8.25e-06,+ "deprecation_date": "2025-07-28",+ "input_cost_per_token": 1.65e-05,+ "litellm_provider": "azure",+ "max_input_tokens": 128000,+ "max_output_tokens": 32768,+ "max_tokens": 32768,+ "mode": "chat",+ "output_cost_per_token": 6.6e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions"+ ],+ "supports_prompt_caching": true+ },+ "azure/eu/o1-preview": {+ "cache_read_input_token_cost": 8.25e-06,+ "deprecation_date": "2025-07-28",+ "input_cost_per_token": 1.65e-05,+ "litellm_provider": "azure",+ "max_input_tokens": 128000,+ "max_output_tokens": 32768,+ "max_tokens": 32768,+ "mode": "chat",+ "output_cost_per_token": 6.6e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions"+ ],+ "supports_prompt_caching": true+ },"azure/gpt-5.1-codex": {"deprecation_date": "2027-05-15","cache_read_input_token_cost": 1.25e-07,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 059c92f4b4b..2c4de480f8b 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -6627,6 +6627,255 @@"output_cost_per_token_priority": 2e-05,"source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'"},+ "azure/gpt-5-chat": {+ "cache_read_input_token_cost": 1.25e-07,+ "deprecation_date": "2026-05-13",+ "input_cost_per_token": 1.25e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 128000,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_prompt_caching": true,+ "supports_vision": true+ },+ "azure/gpt-5.1-chat": {+ "cache_read_input_token_cost": 1.25e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.25e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/gpt-5.2-chat": {+ "cache_read_input_token_cost": 1.75e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.75e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/gpt-5.3-chat": {+ "cache_read_input_token_cost": 1.75e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.75e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/us/gpt-5.1-chat": {+ "cache_read_input_token_cost": 1.375e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.375e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.1e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/us/gpt-5.2-chat": {+ "cache_read_input_token_cost": 1.925e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.925e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.54e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/us/gpt-5.3-chat": {+ "cache_read_input_token_cost": 1.925e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.925e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.54e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/eu/gpt-5.1-chat": {+ "cache_read_input_token_cost": 1.375e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.375e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.1e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/eu/gpt-5.2-chat": {+ "cache_read_input_token_cost": 1.925e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.925e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.54e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/eu/gpt-5.3-chat": {+ "cache_read_input_token_cost": 1.925e-07,+ "deprecation_date": "2026-06-29",+ "input_cost_per_token": 1.925e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 111616,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.54e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true+ },+ "azure/us/o1-preview": {+ "cache_read_input_token_cost": 8.25e-06,+ "deprecation_date": "2025-07-28",+ "input_cost_per_token": 1.65e-05,+ "litellm_provider": "azure",+ "max_input_tokens": 128000,+ "max_output_tokens": 32768,+ "max_tokens": 32768,+ "mode": "chat",+ "output_cost_per_token": 6.6e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions"+ ],+ "supports_prompt_caching": true+ },+ "azure/eu/o1-preview": {+ "cache_read_input_token_cost": 8.25e-06,+ "deprecation_date": "2025-07-28",+ "input_cost_per_token": 1.65e-05,+ "litellm_provider": "azure",+ "max_input_tokens": 128000,+ "max_output_tokens": 32768,+ "max_tokens": 32768,+ "mode": "chat",+ "output_cost_per_token": 6.6e-05,+ "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",+ "supported_endpoints": [+ "/v1/chat/completions"+ ],+ "supports_prompt_caching": true+ },"azure/gpt-5.1-codex": {"deprecation_date": "2027-05-15","cache_read_input_token_cost": 1.25e-07,