microsoft logo

Microsoft: Phi 4

microsoft/phi-4

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

Modalities

TextText

In / out price

$0.070 / $0.14 per 1M

Context

16K

Released

Jan 10, 2025

Why use Phi 4

  • Structured (JSON) outputs

Pricing

Input$0.070 / 1M tokens
Output$0.14 / 1M tokens

List prices via OpenRouter, checked daily. Real cost depends on the provider and on reasoning tokens.

Cost calculator

Pick a task, set how often you run it, and compare what it costs on each model.

ModelPer runPer monthPer 1,000 runs
Microsoft: Phi 4$0.0003$0.336$0.336

Estimates from list prices via OpenRouter; real bills vary by provider and reasoning tokens.

Will it fit? Context window simulator

Each square is about one page (500 words). Colored squares are your content; grey squares are free space in the model's context window.

Your content

  • Novel (90,000 words)

Total: about 120,000 tokens (≈ 90,226 words). Token counts are estimates.

Models

Microsoft: Phi 4

16,384 tokens ≈ 25 pages

Does not fit: needs 7.3× the window. The oldest 86% would be cut off.

Write with the best model for the job

WordGPT picks and switches models for you: drafting, editing and files in one place. Free plan, no credit card.

Try it free

More from microsoft