Phi-4 Mini Instruct is Microsoft's language model with a 131K context window and up to 128K output tokens, available from 3 providers, starting at $0.075 / 1M input and $0.3 / 1M output. An instruction-tuned variant of the compact Phi-4 Mini model, designed for efficient chat and reasoning applications.
Specifications
Canonical IDmicrosoft-phi-4-mini-instruct
TypeLanguage
StatusActive
CreatorMicrosoftMicrosoft
Providers
Context Window131K tokens
Max Output128K tokens
Input ModalitiesText
Output ModalitiesText
Parameters3.84B
HuggingFace Likes735
HuggingFace Downloads (30d)1,547,135
HuggingFace Downloads (all-time)5,787,075
Release Date · 8 months ago

Capabilities

Input1/5
Text
Image·
Audio·
Video·
PDF·
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities3/13
Reasoning·
Adaptive Reasoning·
Function Calling
Parallel Function Calling·
Structured Outputs
Native JSON Schema
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching·
Assistant Prefill·

Pricing by Provider

US Dollar ($)
Per 1M tokens
ProviderStandard
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Azure AI Foundry logo
Azure AI Foundry
azure_ai/Phi-4-mini-instruct
$0.075$0.3N/A
OpenRouter logo
OpenRouter
microsoft/phi-4-mini-instruct
$0.08$0.35$0.08
Weights & Biases logo
Weights & Biases
wandb/microsoft/Phi-4-mini-instruct
$8.00$35.00N/A

Cost Calculator

US Dollar ($)
Preset:

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Phi-4 Mini Instruct131K$0.075$0.300Current
Phi-4 MiniAvailable
Phi-4 Mini MMAvailable
Phi-4 Mini Reasoning131K$0.080$0.320Available
Phi-3 MiniAvailable
Phi-3 Mini Instruct131K$0.100$0.100Available
Phi-3.5 Mini Instruct128K$0.130$0.520Available

Other Models

ModelTierReleasedContextInput / 1MOutput / 1M
Phi-416K$0.065$0.140
Phi-4 Multimodal
Phi-4 Eagle
Phi-4 Multimodal Instruct131K$0.080$0.320
Phi-4 Reasoning33K$0.125$0.500
Phi-4 Reasoning Plus
Phi-3
Phi-3 Medium Instruct128K$0.170$0.680
Phi-3 Small Instruct128K$0.150$0.600
Phi-3 Vision Instruct32K$0.200$0.200

Model IDs

azure_ai/Phi-4-mini-instruct
huggingface-llm-phi-4-mini-instruct
microsoft-phi-4-mini-instruct
microsoft/phi-4-mini-instruct
wandb/microsoft/Phi-4-mini-instruct