Phi 4 is 142.9× cheaper per million tokens (blended). Claude Opus 5 has the larger context window (1,000,000 vs 16,384 tokens, 61.0×). Phi 4 is open-weights; the other is not.

Claude Opus 5 vs Phi 4

Live catalog fields. Best-in-row is highlighted.

Claude Opus 5

Anthropic · anthropic__claude-opus-5

Phi 4open

Microsoft · microsoft__phi-4

Identity

Fieldanthropic__claude-opus-5microsoft__phi-4
ProviderAnthropicMicrosoft
Sluganthropic__claude-opus-5microsoft__phi-4
Statuslivelive
Open weightsNoYes
License
HuggingFacemicrosoft/phi-4

Quality

Fieldanthropic__claude-opus-5microsoft__phi-4
Quality index (0–100)91.5

Cost

Fieldanthropic__claude-opus-5microsoft__phi-4
Input $ / 1M tokens$5.00$0.07
Cached input $ / 1M$0.50
Output $ / 1M tokens$25.00$0.14

Context

Fieldanthropic__claude-opus-5microsoft__phi-4
Max context tokens1,000,00016,384
Max output tokens128,00014,745

Modalities

Fieldanthropic__claude-opus-5microsoft__phi-4
Inputtext, image, filetext
Outputtexttext