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
Adding/Updating Azure Phi-4 model variants Note: Azure has not yet published any cost for the newer variants (mini and multimodal) There is conflicting information about context size and model capabilities in different documents.
Emerson Gomese38eab8bf6fc
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 6389aa991ba..04db405dd3c 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -1732,18 +1732,39 @@"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": {+ "azure_ai/Phi-4-mini-instruct": {"max_tokens": 4096,- "max_input_tokens": 128000,+ "max_input_tokens": 131072,+ "max_output_tokens": 4096,+ "input_cost_per_token": 0,+ "output_cost_per_token": 0,+ "litellm_provider": "azure_ai",+ "mode": "chat",+ "supports_function_calling": true,+ "source": "https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/models-featured#microsoft"+ },+ "azure_ai/Phi-4-multimodal-instruct": {+ "max_tokens": 4096,+ "max_input_tokens": 131072,"max_output_tokens": 4096,+ "input_cost_per_token": 0,+ "output_cost_per_token": 0,+ "litellm_provider": "azure_ai",+ "mode": "chat",+ "supports_audio_input": true,+ "supports_function_calling": true,+ "supports_vision": true,+ "source": "https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/models-featured#microsoft"+ },+ "azure_ai/Phi-4": {+ "max_tokens": 16384,+ "max_input_tokens": 16384,+ "max_output_tokens": 16384,"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+ "source": "https://techcommunity.microsoft.com/blog/machinelearningblog/affordable-innovation-unveiling-the-pricing-of-phi-3-slms-on-models-as-a-service/4156495"},"azure_ai/Phi-3.5-mini-instruct": {"max_tokens": 4096,