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 azure gpt-5.2 models (#17866)
Marty Sullivan63df9392d403
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 5fd7ff4a0cf..696eeb51a34 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -3424,6 +3424,172 @@"supports_tool_choice": true,"supports_vision": true},+ "azure/gpt-5.2": {+ "cache_read_input_token_cost": 1.75e-07,+ "input_cost_per_token": 1.75e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/batch",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text",+ "image"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_vision": true+ },+ "azure/gpt-5.2-2025-12-11": {+ "cache_read_input_token_cost": 1.75e-07,+ "cache_read_input_token_cost_priority": 3.5e-07,+ "input_cost_per_token": 1.75e-06,+ "input_cost_per_token_priority": 3.5e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "output_cost_per_token_priority": 2.8e-05,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/batch",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text",+ "image"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_service_tier": true,+ "supports_vision": true+ },+ "azure/gpt-5.2-chat-2025-12-11": {+ "cache_read_input_token_cost": 1.75e-07,+ "cache_read_input_token_cost_priority": 3.5e-07,+ "input_cost_per_token": 1.75e-06,+ "input_cost_per_token_priority": 3.5e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 128000,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "output_cost_per_token_priority": 2.8e-05,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_vision": true+ },+ "azure/gpt-5.2-pro": {+ "input_cost_per_token": 2.1e-05,+ "litellm_provider": "azure",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "responses",+ "output_cost_per_token": 1.68e-04,+ "supported_endpoints": [+ "/v1/batch",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "supports_web_search": true+ },+ "azure/gpt-5.2-pro-2025-12-11": {+ "input_cost_per_token": 2.1e-05,+ "litellm_provider": "azure",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "responses",+ "output_cost_per_token": 1.68e-04,+ "supported_endpoints": [+ "/v1/batch",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "supports_web_search": true+ },"azure/gpt-image-1": {"input_cost_per_pixel": 4.0054321e-08,"litellm_provider": "azure",@@ -15088,15 +15254,15 @@"tool_use_system_prompt_tokens": 159},"global.anthropic.claude-haiku-4-5-20251001-v1:0": {- "cache_creation_input_token_cost": 1.375e-06,- "cache_read_input_token_cost": 1.1e-07,- "input_cost_per_token": 1.1e-06,+ "cache_creation_input_token_cost": 1.25e-06,+ "cache_read_input_token_cost": 1e-07,+ "input_cost_per_token": 1e-06,"litellm_provider": "bedrock_converse","max_input_tokens": 200000,"max_output_tokens": 64000,"max_tokens": 64000,"mode": "chat",- "output_cost_per_token": 5.5e-06,+ "output_cost_per_token": 5e-06,"source": "https://aws.amazon.com/about-aws/whats-new/2025/10/claude-4-5-haiku-anthropic-amazon-bedrock","supports_assistant_prefill": true,"supports_computer_use": true,@@ -30478,5 +30644,4 @@"litellm_provider": "fireworks_ai","mode": "chat"}-}\ No newline at end of filediff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 3ca573ec48c..696eeb51a34 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -3424,6 +3424,172 @@"supports_tool_choice": true,"supports_vision": true},+ "azure/gpt-5.2": {+ "cache_read_input_token_cost": 1.75e-07,+ "input_cost_per_token": 1.75e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/batch",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text",+ "image"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_vision": true+ },+ "azure/gpt-5.2-2025-12-11": {+ "cache_read_input_token_cost": 1.75e-07,+ "cache_read_input_token_cost_priority": 3.5e-07,+ "input_cost_per_token": 1.75e-06,+ "input_cost_per_token_priority": 3.5e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "output_cost_per_token_priority": 2.8e-05,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/batch",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text",+ "image"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_service_tier": true,+ "supports_vision": true+ },+ "azure/gpt-5.2-chat-2025-12-11": {+ "cache_read_input_token_cost": 1.75e-07,+ "cache_read_input_token_cost_priority": 3.5e-07,+ "input_cost_per_token": 1.75e-06,+ "input_cost_per_token_priority": 3.5e-06,+ "litellm_provider": "azure",+ "max_input_tokens": 128000,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "chat",+ "output_cost_per_token": 1.4e-05,+ "output_cost_per_token_priority": 2.8e-05,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_vision": true+ },+ "azure/gpt-5.2-pro": {+ "input_cost_per_token": 2.1e-05,+ "litellm_provider": "azure",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "responses",+ "output_cost_per_token": 1.68e-04,+ "supported_endpoints": [+ "/v1/batch",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "supports_web_search": true+ },+ "azure/gpt-5.2-pro-2025-12-11": {+ "input_cost_per_token": 2.1e-05,+ "litellm_provider": "azure",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "responses",+ "output_cost_per_token": 1.68e-04,+ "supported_endpoints": [+ "/v1/batch",+ "/v1/responses"+ ],+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_function_calling": true,+ "supports_native_streaming": true,+ "supports_parallel_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_system_messages": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "supports_web_search": true+ },"azure/gpt-image-1": {"input_cost_per_pixel": 4.0054321e-08,"litellm_provider": "azure",@@ -30478,5 +30644,4 @@"litellm_provider": "fireworks_ai","mode": "chat"}--}+}\ No newline at end of file