Key Takeaways
Phi 4 wins:
- Cheaper input tokens
- Cheaper output tokens
- Faster response time
- Better at coding
- Better at math
- Supports tool calls
WizardLM-2 8x22B wins:
- Larger context window
- Higher intelligence benchmark
Price Advantage
Phi 4
Benchmark Advantage
Phi 4
Context Window
WizardLM-2 8x22B
Speed
Phi 4
Pricing Comparison
Price Comparison
| Metric | Phi 4 | WizardLM-2 8x22B | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $0.06 | $0.62 | Phi 4 |
| Output (per 1M tokens) | $0.14 | $0.62 | Phi 4 |
Using a 3:1 input/output ratio, Phi 4 is 87% cheaper overall.
Phi 4 Providers
NextBit $0.06 (Cheapest)
DeepInfra $0.07
WizardLM-2 8x22B Providers
Novita $0.62 (Cheapest)
Together $1.20
Benchmark Comparison
9
Benchmarks Compared
2
Phi 4 Wins
1
WizardLM-2 8x22B Wins
Benchmark Scores
| Benchmark | Phi 4 | WizardLM-2 8x22B | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 10.5 | 33.1 | |
Coding Index Code generation & understanding | 11.2 | - | - |
Math Index Mathematical reasoning | 18.0 | - | - |
MMLU Pro Academic knowledge | 71.4 | 40.0 | |
GPQA Graduate-level science | 57.5 | 17.6 | |
LiveCodeBench Competitive programming | 23.1 | - | - |
Aider Real-world code editing | - | 44.4 | - |
AIME Competition math | 14.3 | - | - |
BBH Big-Bench Hard | - | 48.6 | - |
Phi 4 significantly outperforms in coding benchmarks.
Cost vs Quality
X-axis:
Y-axis:
Loading chart...
Phi 4
Other models
Context & Performance
Context Window
Phi 4
16,384
tokens
Max output: 16,384 tokens
WizardLM-2 8x22B
65,535
tokens
Max output: 8,000 tokens
WizardLM-2 8x22B has a 75% larger context window.
Speed Performance
| Metric | Phi 4 | WizardLM-2 8x22B | Winner |
|---|---|---|---|
| Tokens/second | 6.0 tok/s | N/A | |
| Time to First Token | 0.79s | N/A |
Capabilities
Feature Comparison
| Feature | Phi 4 | WizardLM-2 8x22B |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | Phi 4 | WizardLM-2 8x22B |
|---|---|---|
| License | Open Source | Open Source |
| Author | Microsoft | Microsoft |
| Released | Jan 2025 | Apr 2024 |
Phi 4 Modalities
Input
text
Output
text
WizardLM-2 8x22B Modalities
Input
text
Output
text
