phi-4 by deepinfra - AI Model Details, Pricing, and Performance Metrics

microsoft
phi-4
microsoft

phi-4

completions
bydeepinfra

[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)

Released
Dec 12, 2024
Knowledge
Jun 1, 2024
License
MIT
Context
16384
Input
$0.07 / 1M tokens
Output
$0.14 / 1M tokens
Accepts: text
Returns: text

Access phi-4 through LangDB AI Gateway

Recommended

Integrate with microsoft's phi-4 and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.

Unified API
Cost Optimization
Enterprise Security
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

Category Scores

Benchmark Tests

View Other Benchmarks
AIME
14.3
Mathematics
AA Coding Index
24.6
Programming
AAII
24.6
General
AA Math Index
18.0
Mathematics
DROP
75.5
General Knowledge
GPQA
56.8
STEM (Physics, Chemistry, Biology)
HLE
4.1
General Knowledge
HumanEval
82.6
Programming
LiveCodeBench
23.1
Programming
MATH-500
81.0
Mathematics
MMLU
84.8
General Knowledge
MMLU-Pro
70.9
General Knowledge
SciCode
26.0
Scientific

Code Examples

Integration samples and API usage