Author's Description
[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion parameters, it was trained on a mix of high-quality synthetic datasets, data from curated websites, and academic materials. It has undergone careful improvement to follow instructions accurately and maintain strong safety standards. It works best with English language inputs. For more information, please see [Phi-4 Technical Report](https://arxiv.org/pdf/2412.08905)
Key Specifications
Supported Parameters
This model supports the following parameters:
Features
This model supports the following features:
Performance Summary
Microsoft Phi-4, a 14-billion parameter model created on January 9, 2025, demonstrates strong overall performance, particularly in efficiency and reliability. It consistently performs among the fastest models, ranking in the 68th percentile for speed across benchmarks. Furthermore, Phi-4 offers highly competitive pricing, placing in the 85th percentile. Its reliability is exceptional, achieving a perfect 100th percentile, indicating minimal technical failures and consistent response delivery. In specific benchmarks, Phi-4 exhibits varied strengths. It achieved perfect accuracy in the Ethics (Baseline) benchmark, showcasing its robust ethical reasoning capabilities and standing out as the most accurate model at its price point and speed. Its performance in General Knowledge was strong at 96.8% accuracy, while its Reasoning (Baseline) accuracy was moderate at 68.0%. The Email Classification (Baseline) task was a notable weakness, with 94.0% accuracy placing it in the lower 32nd percentile for that specific task. Overall, Phi-4 excels in complex reasoning and ethical applications, offering a highly reliable and cost-effective solution, though its email classification accuracy could be improved.
Model Pricing
Current Pricing
Feature | Price (per 1M tokens) |
---|---|
Prompt | $0.07 |
Completion | $0.14 |
Price History
Available Endpoints
Provider | Endpoint Name | Context Length | Pricing (Input) | Pricing (Output) |
---|---|---|---|---|
DeepInfra
|
DeepInfra | microsoft/phi-4 | 16K | $0.07 / 1M tokens | $0.14 / 1M tokens |
Nebius
|
Nebius | microsoft/phi-4 | 16K | $0.1 / 1M tokens | $0.3 / 1M tokens |
NextBit
|
NextBit | microsoft/phi-4 | 16K | $0.06 / 1M tokens | $0.14 / 1M tokens |
Benchmark Results
Benchmark | Category | Reasoning | Free | Executions | Accuracy | Cost | Duration |
---|
Other Models by microsoft
|
Released | Params | Context |
|
Speed | Ability | Cost |
---|---|---|---|---|---|---|---|
Microsoft: Phi 4 Reasoning Plus | May 01, 2025 | ~14B | 32K |
Text input
Text output
|
★ | ★★★ | $$$$ |
Microsoft: MAI DS R1 | Apr 20, 2025 | — | 163K |
Text input
Text output
|
★★★★ | ★★★★★ | $$ |
Microsoft: Phi 4 Multimodal Instruct | Mar 07, 2025 | ~5.6B | 131K |
Text input
Image input
Text output
|
★★ | ★★ | $$ |
Microsoft: Phi-3.5 Mini 128K Instruct | Aug 20, 2024 | ~3.8B | 128K |
Text input
Text output
|
★ | ★★ | $$ |
Microsoft: Phi-3 Mini 128K Instruct | May 25, 2024 | ~3.8B | 128K |
Text input
Text output
|
★★★ | ★★★ | $$ |
Microsoft: Phi-3 Medium 128K Instruct | May 23, 2024 | ~14B | 128K |
Text input
Text output
|
★★ | ★ | $$$$ |
WizardLM-2 8x22B | Apr 15, 2024 | 22B | 65K |
Text input
Text output
|
★★★ | ★★ | $$$ |