Phi-4 Mini Instruct is Microsoft's language model with a 131K context window and up to 4K output tokens, 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
StatusDeprecated
CreatorMicrosoftMicrosoft
Providers
Context Window131K tokens
Max Output4K tokens
Input ModalitiesText
Output ModalitiesText
Parameters3.84B
HuggingFace Likes735
HuggingFace Downloads (30d)1,547,135
HuggingFace Downloads (all-time)5,787,075
Release Date · 12 months ago
Deprecation Date

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
Azure AI Foundry logo
Azure AI Foundry
azure_ai/Phi-4-mini-instruct
$0.075$0.3

Cost Calculator

US Dollar ($)
Preset:

Cheapest Instances to Run It

Cloud GPU instances that can host Phi-4 Mini Instruct, ranked by cheapest on-demand price. The model needs about 9 GB of GPU memory at FP16 precision (estimated from its parameter count), so treat the fit as guidance rather than a guarantee.

All clouds
FP16 (full precision)
US Dollar ($)
Instance
Cloud
GPU
VRAM
Price
Cheapest region
Standard_NV4as_v4AzureAMD Radeon Instinct MI2516 GB$0.233/hr
g5g.xlargeAWST4g16 GB$0.420/hr
Standard_NV8as_v4AzureAMD Radeon Instinct MI2516 GB$0.466/hr
7 more instances can run Phi-4 Mini Instruct
Unlock the full ranked list and FP8 / INT4 quantization with a CloudPrice subscription.

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Phi-4 Mini Instruct131K$0.075$0.300Current
Phi-4 Mini————Available
Phi-4 Mini MM————Available
Phi-4 Mini Reasoning—131K——Available
Phi-3 Mini————Available
Phi-3 Mini Instruct—131K$0.100$0.100Deprecated
Phi-3.5 Mini Instruct—128K——Deprecated

Other Models

ModelTierReleasedContextInput / 1MOutput / 1M
Phi-4—16K$0.070$0.140
Phi-4 Multimodal—————
Phi-4 Eagle—————
Phi-4 Multimodal Instruct——131K$0.080$0.320
Phi-4 Reasoning——33K——
Phi-4 Reasoning Plus—————
Phi-3—————
Phi-3 Vision Instruct——32K$0.200$0.200
Phi-3 Medium InstructMedium—128K——
Phi-3 Small InstructSmall—128K——

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