Currently listed through these providers:
Model details
Phi 4
Phi 4 sits within Microsoft's Phi family of small, open-source language models, a lineage that has consistently emphasized strong reasoning and coding ability relative to parameter count. The Phi-4-Mini technical report from Microsoft describes a 3.8-billion-parameter dense decoder-only transformer trained on high-quality web and synthetic data, with an expanded 200K-token vocabulary and grouped-query attention to support multilingual coverage and more efficient long-sequence generation. While that report focuses on the mini variant, the broader family philosophy carries over: synthetic-data-driven training, careful data curation, and architectural choices aimed at making compact models competitive on math, coding, and general reasoning benchmarks where they can rival models roughly twice their size.
Practically, Phi 4 is well suited for developers and teams who want a capable but lightweight text model that can be self-hosted or integrated through API, with the open-weight nature of the family making it attractive for edge, on-device, and privacy-sensitive deployments. Its strengths lie in math and code reasoning tasks per Microsoft's published evaluations, and the grouped-query attention design helps with longer prompt handling and faster generation. For users evaluating Phi 4 on OpenRouter, the practical fit is a general-purpose text generation and reasoning model that benefits from Microsoft's focus on synthetic-data quality and efficient transformer design, rather than a large-scale frontier model.
Quick Info
Powered by- Provider
- OpenRouter
- Model key
- microsoft/phi-4
- Release date
- Jan 10, 2025
- Last updated
- Jan 10, 2025
- Knowledge cutoff
- 2024-06-30
- Input modalities
- Output modalities
- Capabilities
Cost
- Input token cost
- $0.07
- Output token cost
- $0.14
Limits
- Output tokens
- 14,745 tokens
- Context window
- 16,384 tokens
Latest news about Phi 4
Videos about Phi 4
Recent tweets and retweets from OpenRouter
More models around Phi 4
This exact model name is also listed by 2 other providers.