← All models
MicrosoftCurrent

Phi-4

Microsofts small but mighty language model. Designed for on-device and edge deployment. Punches well above its weight class on reasoning tasks.

Context Window

16K tokens

≈ 12K words

Input Price

$0.07

per 1M tokens

Output Price

$0.14

per 1M tokens

Released

December 2024

Capabilities

Tool / Function calling

Best for

On-device inference, edge computing, mobile apps requiring local AI

Strengths

  • Small size
  • On-device
  • Reasoning
  • Low latency
  • Cost efficiency

API identifier

phi-4

Compare Phi-4 side-by-side with any other model

Compare models →