Skip to content
llmmodels

Phi 4 vs Qwen3 8B

Qwen3 8B wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (132.1 vs 129.2). Phi 4 is about 4× cheaper on a blended (3:1 input:output) token price. Qwen3 8B has the larger context window (128K vs 16K).

SpecPhi 4Qwen3 8B
ProviderMicrosoftAlibaba (Qwen)
ReleasedDec 12, 2024Apr 2025 (better)
TypeChat LLMReasoning LLM
Parameters15B8.2B
Context window16K128K (better)
Max output15K (better)8K
Input price / 1M$0.07 (better)$0.18
Output price / 1M$0.14 (better)$0.7
Input modalitiestexttext
Open weightsYesYes
Licensemitapache-2.0
Reasoning modeNoYes
Tool callingNoYes
API providers16 (better)
Epoch Capabilities Index129.2132.1 (better)
GPQA Diamond56.1%56.8% (better)
OTIS Mock AIME13.8%56.1% (better)
MATH Level 564.9%—
LiveBench41.6%—
MMLU84.8%—

Cost example

For a workload of 10M input + 2M output tokens per month: Phi 4 costs $0.98 and Qwen3 8B costs $3.20 at list price (openrouter / alibaba pricing).

About Phi 4

Phi 4 is an open-weight chat llm from Microsoft, released Dec 12, 2024. It has 15B parameters and a 16K-token context window. API pricing starts at $0.07 per million input tokens and $0.14 per million output tokens. It scores 129.2 on the Epoch Capabilities Index. Full Phi 4 specs →

About Qwen3 8B

Qwen3 8B is an open-weight reasoning llm from Alibaba (Qwen), released Apr 2025. It has 8.2B parameters and a 128K-token context window. API pricing starts at $0.18 per million input tokens and $0.7 per million output tokens. It is available from 6 API providers. It scores 132.1 on the Epoch Capabilities Index. Full Qwen3 8B specs →

Compare other models

FAQ

Which is better, Phi 4 or Qwen3 8B?

Qwen3 8B wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (132.1 vs 129.2). Phi 4 is about 4× cheaper on a blended (3:1 input:output) token price. Qwen3 8B has the larger context window (128K vs 16K).

Is Phi 4 cheaper than Qwen3 8B?

Phi 4 costs $0.07 input / $0.14 output per 1M tokens; Qwen3 8B costs $0.18 / $0.7. Phi 4 is cheaper overall.

Which has a bigger context window?

Phi 4: 16,384 tokens. Qwen3 8B: 131,072 tokens.

Are Phi 4 and Qwen3 8B open source?

Phi 4 is open-weight; Qwen3 8B is open-weight.