Phi-4-mini-reasoning vs ERNIE 4.5 21B A3B
No independent capability benchmark covers every model here yet. The score uses price and context window.No independent capability benchmark covers every model here yet. The score uses context window.
Microsoft
Phi-4-mini-reasoning
72/100- ECI—
- Price$0.075 / $0.30
- Context131K
Baidu
ERNIE 4.5 21B A3B
73/100- ECI—
- Price$0.07 / $0.28
- Context131K
Microsoft
Phi-4-mini-reasoning
32/100- ECI—
- Price$0.075 / $0.30
- Context131K
Baidu
ERNIE 4.5 21B A3B
32/100- ECI—
- Price$0.07 / $0.28
- Context131K
Add a model
Make it a three-way comparison.
Capability evidence is incomplete
There is not enough shared capability evidence to name an overall winner. The scores (ERNIE 4.5 21B A3B 73/100, Phi-4-mini-reasoning 72/100) compare the available specifications and price. The score weighs price 71%, context window 29%. None of the shared benchmarks cover every model here yet, so capability is left out of this verdict.There is not enough shared capability evidence to name an overall winner. The scores (Phi-4-mini-reasoning 32/100, ERNIE 4.5 21B A3B 32/100) compare the available specifications only. The score weighs context window 100%. None of the shared benchmarks cover every model here yet, so capability is left out of this verdict.
- CapabilityNot enough dataNo independent benchmark covers every model here yet
- Lowest priceERNIE 4.5 21B A3BERNIE 4.5 21B A3B $0.122 · Phi-4-mini-reasoning $0.131 per 1M tokens (3:1 blend)
- Longest contextAbout the samePhi-4-mini-reasoning 131,072 · ERNIE 4.5 21B A3B 131,072 tokens
- Widest inputsSame inputsPhi-4-mini-reasoning: Text · ERNIE 4.5 21B A3B: Text
- Self-hostingAll open weightsEvery model here can be downloaded and run on your own hardware
| Measure | Weight | Phi-4-mini-reasoning | ERNIE 4.5 21B A3B |
|---|---|---|---|
| Price | 71% | 88 | 89 |
| Context window | 29% | 32 | 32 |
| Specs & price only | 100% | 72/100 | 73/100 |
Left out because at least one model lacks the data: capability and inputs & features. The remaining weights were rescaled.
| Measure | Weight | Phi-4-mini-reasoning | ERNIE 4.5 21B A3B |
|---|---|---|---|
| Context window | 100% | 32 | 32 |
| Specs only | 100% | 32/100 | 32/100 |
Left out because at least one model lacks the data: capability and inputs & features. The remaining weights were rescaled.
Every spec in one table
Highlighted cells lead their row. Unavailable specifications are marked “Not published”. Publisher results include their evaluation settings and source.
| Specification | ||
|---|---|---|
| Task | Lightweight mathematical reasoning | Not published |
| Published capabilities | Fine-tuned for multistep mathematical problems on memory-constrained hardware. | Open ERNIE text MoE with 21B total and 3B active parameters |
| Model size | 3.8B parameters | Not published |
| Access | Public Microsoft weights and tokenizer for compatible inference runtimes. | Not published |
| Operating limits | The publisher primarily evaluated math reasoning. Validate general-purpose and multilingual uses separately. | Not published |
| Sources | Model weights · Additional documentation · Publisher documentation | Not published |
| Capability | ||
| Capabilities Index (ECI) | Not published | Not published |
| ECI rank | Not published | Not published |
| ECI confidence interval | Not published | Not published |
| ECI evaluation date | Not published | Not published |
| Documented capabilities | Fine-tuned for multistep mathematical problems on memory-constrained hardware. | Open ERNIE text MoE with 21B total and 3B active parameters |
| Model parameters | 3.8B parameters | Not published |
| Output modalities | Text | Text |
| Price per million tokens | ||
| Input | $0.075 | $0.07 (best) |
| Output | $0.30 | $0.28 (best) |
| Cached input | Not published | Not published |
| Blended (3:1) | $0.131 | $0.122 (best) |
| Long-context rate | Same rate | Same rate |
| Price source | Official Azure API | Median of 1 providers |
| Limits | ||
| Context window | 131,072 tokens | 131,072 tokens |
| Max input | Not published | Not published |
| Max output | 131,072 tokens (best) | 8,000 tokens |
| Inputs and features | ||
| Text | Yes | Yes |
| Images | No | No |
| PDFs | No | No |
| Audio | No | No |
| Video | No | No |
| Reasoning | Yes | No |
| Tool calling | No | Yes |
| Structured output | Not published | Not published |
| File attachments | No | No |
| Temperature control | Yes | Yes |
| Reasoning control | always | Not published |
| Availability | ||
| Weights | OpenMIT | OpenApache-2.0 |
| API model ID | phi-4-mini-reasoning | Not published |
| API providers | 2 (best) | 1 |
| Released | Apr 30, 2025 | Jun 30, 2025 |
| Knowledge cutoff | Feb 2025 | Not published |
| Publisher documentation | Model weights · Additional documentation · Publisher documentation | Model weights |
| Source metadata updated | Apr 30, 2025 | Jun 30, 2025 |
| Data sources | models.dev · Epoch AI | models.dev · Epoch AI |
| Catalog checked | Nov 30, 2026 | Nov 30, 2026 |
What would a month cost?
Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.
Phi-4-mini-reasoning$1.35
ERNIE 4.5 21B A3B$1.26
Which should you choose?
Which is better: Phi-4-mini-reasoning or ERNIE 4.5 21B A3B?
There is not enough shared capability evidence to name an overall winner. The scores (ERNIE 4.5 21B A3B 73/100, Phi-4-mini-reasoning 72/100) compare the available specifications and price. The score weighs price 71%, context window 29%. None of the shared benchmarks cover every model here yet, so capability is left out of this verdict.There is not enough shared capability evidence to name an overall winner. The scores (Phi-4-mini-reasoning 32/100, ERNIE 4.5 21B A3B 32/100) compare the available specifications only. The score weighs context window 100%. None of the shared benchmarks cover every model here yet, so capability is left out of this verdict.
Which is cheaper, Phi-4-mini-reasoning or ERNIE 4.5 21B A3B?
ERNIE 4.5 21B A3B is cheaper at $0.07 input / $0.28 output per million tokens (median across 1 API provider). Phi-4-mini-reasoning costs $0.075 input / $0.30 output per million tokens (official Azure API price). At a typical mix of three input tokens to one output token, that is $0.122 per million tokens for ERNIE 4.5 21B A3B versus $0.131 for Phi-4-mini-reasoning (1.1× as much).
Which scores higher on benchmarks?
There is no independent benchmark that covers both models yet. Phi-4-mini-reasoning has not been scored yet and ERNIE 4.5 21B A3B has not been scored yet.
Which is better for coding?
There are no published SWE-bench Verified results for Phi-4-mini-reasoning and ERNIE 4.5 21B A3B yet, so there is no like-for-like coding score. Test both on a sample of your own tasks. Note that Phi-4-mini-reasoning has no confirmed tool-calling support in this comparison.
Which has the bigger context window?
Phi-4-mini-reasoning and ERNIE 4.5 21B A3B share the same 131,072-token context window. Maximum output per response: Phi-4-mini-reasoning up to 131,072, ERNIE 4.5 21B A3B up to 8,000 tokens.
Which can read images, PDFs, audio or video?
Phi-4-mini-reasoning accepts text; ERNIE 4.5 21B A3B accepts text. They handle the same number of input types.
Are any of these open source?
Yes, both publish their weights (MIT and Apache-2.0), so you can self-host them.
Which is newer?
ERNIE 4.5 21B A3B is the newest, released Jun 30, 2025. Phi-4-mini-reasoning came out Apr 30, 2025. Knowledge cutoff: Phi-4-mini-reasoning Feb 2025.
How do you decide the winner?
This rating uses price (71%, blended price per million tokens (3 input : 1 output), log scale); context window (29%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Nov 30, 2026.This rating uses context window (100%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Nov 30, 2026.