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.07 / 1M input and $0.14 / 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.
| Benchmarks | |
|---|---|
| Intelligence Index | #456 |
| Math Index | #226 |
| MMLU-Pro | #214 |
| GPQA | #351 |
| HLE | #473 |
| LiveCodeBench | #258 |
| AIME | #115 |
| IFBench | #398 |
| Time to First Token | #480 |
| SciCode | #355 |
| MATH-500 | #108 |
| AIME 2025 | #226 |
| LCR | #448 |
| TerminalBench Hard | #303 |
| TAU2 | #411 |
| Output TPS | #217 |
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
| Provider | Standard | |
|---|---|---|
| Input $ / 1M | Output $ / 1M | |
| $0.125 | $0.5 | |
| $0.07 | $0.14 | |
| $0.07 | $0.14 | |
Cost Calculator
US Dollar ($)
Preset:
Cheapest Instances to Run It
Cloud GPU instances that can host Phi-4, ranked by cheapest on-demand price. The model needs about 35 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_NP10s | AMD Alveo U250 FPGA (64GB) | 64 GB | $1.65/hr | |||
| g6e.xlarge | L40S | 45 GB | $1.86/hr | |||
| Standard_NV32as_v4 | AMD Radeon Instinct MI25 | 64 GB | $1.86/hr | |||
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| Phi-4 Mini Instruct | 131K | $0.075 | $0.300 | Available | |
| Phi-4 | 16K | $0.070 | $0.140 | Current | |
| Phi-4 Mini | — | — | — | — | Available |
| Phi-4 Multimodal | — | — | — | — | Available |
| Phi-4 Eagle | — | — | — | — | Available |
| Phi-4 Mini MM | — | — | — | — | Available |
| Phi-4 Mini Reasoning | — | 131K | — | — | Available |
| Phi-4 Multimodal Instruct | — | 131K | $0.080 | $0.320 | Available |
| Phi-4 Reasoning | — | 33K | — | — | Available |
| Phi-4 Reasoning Plus | — | — | — | — | Available |
| Phi-3 Mini | — | — | — | — | Available |