Skip to content

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.

Checked
Phi 4 price list
ItemStandard
Input, per 1M tokens$0.07
Output, per 1M tokens$0.14

No price change since it was added on 10 Jan 2025.

What typical tasks cost with Phi 4
What a task costsCost
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
Check the provider's pageToken counts are estimates. A maker's direct price and its monthly plans can differ from the per-token price shown here.

Phi 4 specifications

Phi 4 limits and identity
Model idmicrosoft/phi-4
Versionphi-4
Context window16,384 tokensAbout 12,288 English words
Max output14,745 tokens
Knowledge cutoff2024-06-30
Added to catalog10 Jan 2025
Phi 4 capabilities
Input typestext
Output typestext
Tool callingNo
Structured outputsYes
Reasoning effort controlNo
Content moderationNot 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 2026
Prompt

Write 150 words on how AI might positively upend work, leisure and creativity

Output

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.

Phi 4 questions

How much does Phi 4 cost?

Phi 4 costs $0.07 per 1M input tokens and $0.14 per 1M output tokens through OpenRouter, as checked on 22 Nov 2026. Summarising a 50-page PDF costs about $0.0019.

What is the context window of Phi 4?

16,384 tokens, or roughly 12,288 English words. It can write up to 14,745 tokens in one response.

Can Phi 4 read images and PDFs?

No. It accepts text only. It produces text, so it cannot generate images.

How do I try Phi 4?

Use the "Try Phi 4" button on this page. It opens the chat with Phi 4 selected; you type the question and press send.

Try Phi 4 on your own question.

It opens in the chat with this model already selected.

Sign in to Upend

Use an account you already have, or get a one-time code by email.

Use a password instead

For accounts that already have a password. Forgotten it? An emailed code signs you in just the same.