ZMIME
Comparison · 2 models · Updated Nov 30, 2026

ERNIE 4.5 21B A3B vs Phi-4-mini-reasoning

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.

  1. Baidu

    ERNIE 4.5 21B A3B

    Released Jun 30, 2025

    73/100
    • ECI—
    • Price$0.07 / $0.28
    • Context131K
  2. Microsoft

    Phi-4-mini-reasoning

    Released Apr 30, 2025

    72/100
    • ECI—
    • Price$0.075 / $0.30
    • Context131K
  3. Baidu

    ERNIE 4.5 21B A3B

    Released Jun 30, 2025

    32/100
    • ECI—
    • Price$0.07 / $0.28
    • Context131K
  4. Microsoft

    Phi-4-mini-reasoning

    Released Apr 30, 2025

    32/100
    • ECI—
    • Price$0.075 / $0.30
    • Context131K
  5. Add a model

    Make it a three-way comparison.

01 — Verdict

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 (ERNIE 4.5 21B A3B 32/100, Phi-4-mini-reasoning 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 sameERNIE 4.5 21B A3B 131,072 · Phi-4-mini-reasoning 131,072 tokens
  • Widest inputsSame inputsERNIE 4.5 21B A3B: Text · Phi-4-mini-reasoning: Text
  • Self-hostingAll open weightsEvery model here can be downloaded and run on your own hardware
How the score is built
MeasureWeightERNIE 4.5 21B A3BPhi-4-mini-reasoning
Price71%8988
Context window29%3232
Specs & price only100%73/10072/100

Left out because at least one model lacks the data: capability and inputs & features. The remaining weights were rescaled.

How the score is built
MeasureWeightERNIE 4.5 21B A3BPhi-4-mini-reasoning
Context window100%3232
Specs only100%32/10032/100

Left out because at least one model lacks the data: capability and inputs & features. The remaining weights were rescaled.

02 — Side by side

Every spec in one table

Highlighted cells lead their row. Unavailable specifications are marked “Not published”. Publisher results include their evaluation settings and source.

ERNIE 4.5 21B A3B vs Phi-4-mini-reasoning specifications side by side
SpecificationERNIE 4.5 21B A3BBaiduPhi-4-mini-reasoningMicrosoft
TaskNot publishedLightweight mathematical reasoning
Published capabilitiesOpen ERNIE text MoE with 21B total and 3B active parametersFine-tuned for multistep mathematical problems on memory-constrained hardware.
Model sizeNot published3.8B parameters
AccessNot publishedPublic Microsoft weights and tokenizer for compatible inference runtimes.
Operating limitsNot publishedThe publisher primarily evaluated math reasoning. Validate general-purpose and multilingual uses separately.
SourcesNot publishedModel weights · Additional documentation · Publisher documentation
Capability
Capabilities Index (ECI)Not publishedNot published
ECI rankNot publishedNot published
ECI confidence intervalNot publishedNot published
ECI evaluation dateNot publishedNot published
Documented capabilitiesOpen ERNIE text MoE with 21B total and 3B active parametersFine-tuned for multistep mathematical problems on memory-constrained hardware.
Model parametersNot published3.8B parameters
Output modalitiesTextText
Price per million tokens
Input$0.07 (best)$0.075
Output$0.28 (best)$0.30
Cached inputNot publishedNot published
Blended (3:1)$0.122 (best)$0.131
Long-context rateSame rateSame rate
Price sourceMedian of 1 providersOfficial Azure API
Limits
Context window131,072 tokens131,072 tokens
Max inputNot publishedNot published
Max output8,000 tokens131,072 tokens (best)
Inputs and features
TextYesYes
ImagesNoNo
PDFsNoNo
AudioNoNo
VideoNoNo
ReasoningNoYes
Tool callingYesNo
Structured outputNot publishedNot published
File attachmentsNoNo
Temperature controlYesYes
Reasoning controlNot publishedalways
Availability
WeightsOpenApache-2.0OpenMIT
API model IDNot publishedphi-4-mini-reasoning
API providers12 (best)
ReleasedJun 30, 2025Apr 30, 2025
Knowledge cutoffNot publishedFeb 2025
Publisher documentationModel weightsModel weights · Additional documentation · Publisher documentation
Source metadata updatedJun 30, 2025Apr 30, 2025
Data sourcesmodels.dev · Epoch AImodels.dev · Epoch AI
Catalog checkedNov 30, 2026Nov 30, 2026
03 — Cost

What would a month cost?

Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.

  • ERNIE 4.5 21B A3B$1.26
  • Phi-4-mini-reasoning$1.35
04 — Questions

Which should you choose?

Which is better: ERNIE 4.5 21B A3B or Phi-4-mini-reasoning?

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 (ERNIE 4.5 21B A3B 32/100, Phi-4-mini-reasoning 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, ERNIE 4.5 21B A3B or Phi-4-mini-reasoning?

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. ERNIE 4.5 21B A3B has not been scored yet and Phi-4-mini-reasoning has not been scored yet.

Which is better for coding?

There are no published SWE-bench Verified results for ERNIE 4.5 21B A3B and Phi-4-mini-reasoning 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?

ERNIE 4.5 21B A3B and Phi-4-mini-reasoning share the same 131,072-token context window. Maximum output per response: ERNIE 4.5 21B A3B up to 8,000, Phi-4-mini-reasoning up to 131,072 tokens.

Which can read images, PDFs, audio or video?

ERNIE 4.5 21B A3B accepts text; Phi-4-mini-reasoning accepts text. They handle the same number of input types.

Are any of these open source?

Yes, both publish their weights (Apache-2.0 and MIT), 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.