Skip to content

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]

Adding Azure Phi-4 (#8808)

Emerson Gomesef22209a1564
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 00e4bd0f0cb..657ed4952aa 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -1732,6 +1732,19 @@
"source":"https://azuremarketplace.microsoft.com/en-us/marketplace/apps/metagenai.meta-llama-3-1-405b-instruct-offer?tab=PlansAndPrice",
"supports_tool_choice": true
},
+ "azure_ai/Phi-4": {
+ "max_tokens": 4096,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 4096,
+ "input_cost_per_token": 0.000000125,
+ "output_cost_per_token": 0.0000005,
+ "litellm_provider": "azure_ai",
+ "mode": "chat",
+ "supports_vision": false,
+ "source": "https://techcommunity.microsoft.com/blog/machinelearningblog/affordable-innovation-unveiling-the-pricing-of-phi-3-slms-on-models-as-a-service/4156495",
+ "supports_function_calling": true,
+ "supports_tool_choice": true
+ },
"azure_ai/Phi-3.5-mini-instruct": {
"max_tokens": 4096,
"max_input_tokens": 128000,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 00e4bd0f0cb..657ed4952aa 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -1732,6 +1732,19 @@
"source":"https://azuremarketplace.microsoft.com/en-us/marketplace/apps/metagenai.meta-llama-3-1-405b-instruct-offer?tab=PlansAndPrice",
"supports_tool_choice": true
},
+ "azure_ai/Phi-4": {
+ "max_tokens": 4096,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 4096,
+ "input_cost_per_token": 0.000000125,
+ "output_cost_per_token": 0.0000005,
+ "litellm_provider": "azure_ai",
+ "mode": "chat",
+ "supports_vision": false,
+ "source": "https://techcommunity.microsoft.com/blog/machinelearningblog/affordable-innovation-unveiling-the-pricing-of-phi-3-slms-on-models-as-a-service/4156495",
+ "supports_function_calling": true,
+ "supports_tool_choice": true
+ },
"azure_ai/Phi-3.5-mini-instruct": {
"max_tokens": 4096,
"max_input_tokens": 128000,