Phi-4 is Microsoft's language model with a 16K context window and up to 16K output tokens, available from 3 providers, starting at $0.065 / 1M input and $0.140 / 1M output. A small language model from Microsoft trained on high-quality synthetic and curated datasets, excelling at reasoning and STEM tasks despite its compact size.
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
| Provider | Standard | |
|---|---|---|
| Input $ / 1M | Output $ / 1M | |
OpenRouter | $0.065 | $0.140 |
DeepInfra | $0.070 | $0.140 |
Azure AI Foundry | $0.125 | $0.500 |
Cost Calculator
Preset:
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| Phi-4 Mini Instruct | 131K | $0.075 | $0.300 | Available | |
| Phi-4 | 16K | $0.065 | $0.140 | Current | |
| Phi-4 Multimodal | — | — | — | — | Available |
| Phi-4 Mini | — | — | — | — | Available |
| Phi-4 Eagle | — | — | — | — | Available |
| Phi-4 Mini MM | — | — | — | — | Available |
| Phi-4 Mini Reasoning | — | 131K | $0.080 | $0.320 | Available |
| Phi-4 Multimodal Instruct | — | 131K | $0.080 | $0.320 | Available |
| Phi-4 Reasoning | — | 33K | $0.125 | $0.500 | Available |
| Phi-4 Reasoning Plus | — | — | — | — | Available |
| Phi-3 Mini | — | — | — | — | Available |