Phi 4 is 16.3× cheaper per million tokens (blended). Qwen3.8 27B has the larger context window (1,000,000 vs 16,384 tokens, 61.0×).

Phi 4 vs Qwen3.8 27B

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

Phi 4open

Microsoft · microsoft__phi-4

Qwen3.8 27Bopen

Qwen · qwen__qwen3.8-27b

Identity

Fieldmicrosoft__phi-4qwen__qwen3.8-27b
ProviderMicrosoftQwen
Slugmicrosoft__phi-4qwen__qwen3.8-27b
Statuslivelive
Open weightsYesYes
License
HuggingFacemicrosoft/phi-4Qwen/Qwen3.8-27B

Quality

Fieldmicrosoft__phi-4qwen__qwen3.8-27b
Quality index (0–100)87.4

Cost

Fieldmicrosoft__phi-4qwen__qwen3.8-27b
Input $ / 1M tokens$0.07$0.42
Cached input $ / 1M$0.09
Output $ / 1M tokens$0.14$3.00

Context

Fieldmicrosoft__phi-4qwen__qwen3.8-27b
Max context tokens16,3841,000,000
Max output tokens14,745131,072

Modalities

Fieldmicrosoft__phi-4qwen__qwen3.8-27b
Inputtexttext, image, video
Outputtexttext