Phi 4
Phi 4 is a large language model made by Microsoft, added to the catalog on 10 Jan 2025. It has a context window of 16,384 tokens and costs $0.07 per 1M input tokens and $0.14 per 1M output tokens. It accepts text and produces text. Typical uses: enhance text analysis with complex reasoning, generate quick responses in memory-limited environments and improve instruction-following in text processing.
Price checked ยท source: OpenRouter
What Phi 4 is
Microsoft Phi 4, released in January 2025, is a text-to-text AI model with 14 billion parameters. It excels in complex reasoning tasks, especially when quick responses are needed or memory is limited. Trained on diverse, high-quality datasets, Phi 4 is designed to follow instructions accurately while adhering to strong safety standards. With a context window of 16,384 tokens, it primarily handles English language inputs, making it a versatile tool for various text processing needs. Supported parameters include frequency penalty, max tokens, and temperature, among others.
Key features
- 14 billion parameters for robust performance
- Designed for complex reasoning tasks
- Efficient in limited memory scenarios
- Trained on high-quality datasets
- 16,384 token context window
- Focus on English language inputs
Typical uses
- Enhance text analysis with complex reasoning
- Generate quick responses in memory-limited environments
- Improve instruction-following in text processing
- Develop applications requiring large context handling
Phi 4 pricing
US dollars, list price through OpenRouter.
| Item | Standard |
|---|---|
| Input, per 1M tokens | $0.07 |
| Output, per 1M tokens | $0.14 |
No price change since it was added on 10 Jan 2025.
| What a task costs | Cost |
|---|---|
| Answer a short question500 in / 300 out | $0.0001 |
| Summarise a 50-page PDF25,000 in / 800 out | $0.0019 |
| Review a 2,000-line source file30,000 in / 2,000 out | $0.0024 |
| Read a 300-page contract set150,000 in / 1,500 out | $0.011 |
Phi 4 specifications
| Model id | microsoft/phi-4 |
|---|---|
| Version | phi-4 |
| Context window | 16,384 tokensAbout 12,288 English words |
| Max output | 14,745 tokens |
| Knowledge cutoff | 2024-06-30 |
| Added to catalog | 10 Jan 2025 |
| Input types | text |
|---|---|
| Output types | text |
| Tool calling | No |
| Structured outputs | Yes |
| Reasoning effort control | No |
| Content moderation | Not applied by provider |
Sample outputs
The same prompts are given to every model, and the unedited output is shown with the date it was produced. Upend does not publish leaderboard scores it did not run.
Write a short essay
RUN20 Nov 2026Write 150 words on how AI might positively upend work, leisure and creativity
Artificial Intelligence (AI) has the potential to significantly transform work, leisure, and creativity in positive ways. In the workplace, AI can automate repetitive and mundane tasks, allowing employees to focus on more strategic and creative endeavors. This shift can lead to increased job satisfaction and productivity, as workers engage in more meaningful and fulfilling activities. AI can also enhance decision-making by providing data-driven insights, enabling businesses to innovate and adapt more swiftly to market changes. In leisure, AI can personalize experiences, tailoring entertainment and recreational activities to individual preferences. For example, AI-driven recommendation systems can suggest movies, music, or books that align with personal tastes, enhancing enjoyment and discovery. Additionally, AI can facilitate virtual and augmented reality experiences, offering immersive and interactive forms of entertainment that were previously unimaginable. In the realm of creativity, AI serves as a powerful tool for artists, musicians, and writers, offering new ways to generate ideas and explore artistic expression. AI can assist in creating complex compositions, generating visual art, or even co-writing stories, pushing the boundaries of traditional creative processes. By collaborating with AI, creators can experiment with novel techniques and styles, leading to unprecedented forms of artistic innovation. Overall, AI's integration into work, leisure, and creativity promises to enrich human experiences and unlock new potentials.