Anthropic: Claude 3.5 Sonnet v2 vs Phi 4
Anthropic: Claude 3.5 Sonnet v2 and Phi 4 are evenly matched on the 6 benchmarks both report. Phi 4 is about 59× cheaper on a blended (3:1 input:output) token price. Anthropic: Claude 3.5 Sonnet v2 has the larger context window (200K vs 16K). Phi 4 has open weights, so you can self-host and fine-tune it; Anthropic: Claude 3.5 Sonnet v2 is API-only.
| Spec | Anthropic: Claude 3.5 Sonnet v2 | Phi 4 |
|---|---|---|
| Provider | Anthropic | Microsoft |
| Released | Oct 22, 2024 | Dec 12, 2024 (better) |
| Type | Chat LLM | Chat LLM |
| Parameters | — | 15B |
| Context window | 200K (better) | 16K |
| Max output | 8K | 15K (better) |
| Input price / 1M | $2.60 | $0.07 (better) |
| Output price / 1M | $13 | $0.14 (better) |
| Input modalities | text, image (better) | text |
| Open weights | No | Yes |
| License | Proprietary | mit |
| Reasoning mode | No | No |
| Tool calling | Yes | No |
| API providers | 3 (better) | 1 |
| Epoch Capabilities Index | 130.0 (better) | 129.2 |
| GPQA Diamond | 55.3% | 56.1% (better) |
| Humanity's Last Exam | 4.1% | — |
| Aider Polyglot | 51.6% | — |
| OTIS Mock AIME | 8.5% | 13.8% (better) |
| MATH Level 5 | 56.9% | 64.9% (better) |
| LiveBench | 59.0% (better) | 41.6% |
| METR Time Horizon | 21 min | — |
| MMLU | 87.3% (better) | 84.8% |
Cost example
For a workload of 10M input + 2M output tokens per month: Anthropic: Claude 3.5 Sonnet v2 costs $52.00 and Phi 4 costs $0.98 at list price (poe / openrouter pricing).
About Anthropic: Claude 3.5 Sonnet v2
Anthropic: Claude 3.5 Sonnet v2 is a proprietary chat llm from Anthropic, released Oct 22, 2024. It has a 200K-token context window and accepts text, image input. API pricing starts at $2.60 per million input tokens and $13 per million output tokens. It is available from 3 API providers. It scores 130.0 on the Epoch Capabilities Index. Full Anthropic: Claude 3.5 Sonnet v2 specs →
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 →
Compare other models
FAQ
Which is better, Anthropic: Claude 3.5 Sonnet v2 or Phi 4?
Anthropic: Claude 3.5 Sonnet v2 and Phi 4 are evenly matched on the 6 benchmarks both report. Phi 4 is about 59× cheaper on a blended (3:1 input:output) token price. Anthropic: Claude 3.5 Sonnet v2 has the larger context window (200K vs 16K). Phi 4 has open weights, so you can self-host and fine-tune it; Anthropic: Claude 3.5 Sonnet v2 is API-only.
Is Anthropic: Claude 3.5 Sonnet v2 cheaper than Phi 4?
Anthropic: Claude 3.5 Sonnet v2 costs $2.60 input / $13 output per 1M tokens; Phi 4 costs $0.07 / $0.14. Phi 4 is cheaper overall.
Which has a bigger context window?
Anthropic: Claude 3.5 Sonnet v2: 200,000 tokens. Phi 4: 16,384 tokens.
Are Anthropic: Claude 3.5 Sonnet v2 and Phi 4 open source?
Anthropic: Claude 3.5 Sonnet v2 is proprietary; Phi 4 is open-weight.