impulse

Phi 4 Mini Instruct

Open weightsRetiring 17 Jan 2027
API id Phi-4-mini-instruct
Azure AI Foundry retires it on 17 Jan 2027 (in 60 days). No API serves it after that.
Input / 1M
$0.075
at Azure AI Foundry
Output / 1M
$0.30
at Azure AI Foundry
Context window
131K
tokens
Max output
4K
tokens per reply
Hosts
1
1 listings
Released
-
date not published

Pricing

List prices at Azure AI Foundry, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.075$0.30

What it costs a month

At Azure AI Foundry list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out$45.00
  • RAG over documents2,000 requests a day, 8K in / 0.6K out$46.80
  • Coding agent1,000 requests a day, 40K in / 2K out$108
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$252
Use your own numbers

Where to run it

1 host serve Phi 4 Mini Instruct. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
Phi-4-mini-instruct
$0.075 / $0.30
Retires 17 Jan 2027

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
Text
Produces
Text
Open weights
License: MIT
Runtimes: Ollama, llama.cpp, vLLM

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than Azure AI Foundry.

Smaller Microsoft models

No cheaper Microsoft model keeps its key capabilities.

Other frontier labs

No cheaper match from another frontier lab.

Open-weight picks

  • Nemotron 3.5 Lightning
    NVIDIA · on Nebius AI Studio
    $0.06 / $0.24
    Has every key capability
    20% less
  • MiniMax M3.1 Flash
    MiniMax · on Refuseless
    $0.05 / $0.25
    Has every key capability
    24% less
  • Qwen3.5 9B
    Alibaba Qwen · on EmpirioLabs AI
    $0.09 / $0.13
    Has every key capability
    24% less
  • Ministral 3B 2512
    Mistral AI · on Mistral AI
    $0.10 / $0.10
    Has every key capability
    24% less

Call it

Using Azure AI Foundry's API.

Python
from litellm import completion

response = completion(
    model="azure_ai/Phi-4-mini-instruct",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does Phi 4 Mini Instruct cost?

On Azure AI Foundry, Phi 4 Mini Instruct costs $0.075 per million input tokens and $0.30 per million output tokens.

Which APIs offer Phi 4 Mini Instruct?

Phi 4 Mini Instruct runs on 1 API: Azure AI Foundry.

What is Phi 4 Mini Instruct's context window?

131K tokens, with up to 4K tokens in one reply.

Is Phi 4 Mini Instruct being retired?

Azure AI Foundry retires it on 17 Jan 2027. No API serves it after that.

What are cheaper alternatives to Phi 4 Mini Instruct?

Models that cost less and keep most of what it can do: Nemotron 3.5 Lightning on Nebius AI Studio (20% less). Savings are on a mix of 3 input tokens to 1 output token.

What is Phi 4 Mini Instruct's API model id?

Use Phi-4-mini-instruct with Azure AI Foundry.

Sources

Raw catalog entry for Phi-4-mini-instruct on Azure AI Foundry
{
  "deprecation_date": "2027-01-17",
  "deprecation_source": "https://learn.microsoft.com/en-us/azure/foundry/concepts/model-lifecycle-retirement",
  "successor_model": "microsoft--phi-4",
  "input_cost_per_token": 7.5e-8,
  "litellm_provider": "azure_ai",
  "max_input_tokens": 131072,
  "max_output_tokens": 4096,
  "mode": "chat",
  "output_cost_per_token": 3e-7,
  "source": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'",
  "supports_function_calling": true,
  "supports_pdf_input": false
}