Skip to content
llmmodels
Chat LLMOpen weightsTool calling

ERNIE 4.5 21B A3B

by Baidu · Jun 30, 2025

ERNIE 4.5 21B A3B is an open-weight chat llm from Baidu, released Jun 30, 2025. It has 21B total parameters (3B active per token, mixture-of-experts) and a 120K-token context window. API pricing starts at $0.07 per million input tokens and $0.28 per million output tokens.

Provider
Baidu
Released
Jun 30, 2025
Type
Chat LLM
Parameters
21B total · 3B active
Context window
120,000 tokens
Max output
8,000 tokens
Input
text
Output
text
Weights
Open weights
License
Open (permissive)
Knowledge cutoff
—
Status
Available via API
Training compute
1.8e+23 FLOP

About ERNIE 4.5 21B A3B

Open ERNIE text MoE with 21B total and 3B active parameters

Where to run ERNIE 4.5 21B A3B — API providers & pricing

ProviderInput $/1MOutput $/1MCached inputContext
Novita AI$0.07$0.28—120K

Open weights: you can also run ERNIE 4.5 21B A3B locally with Ollama, LM Studio, llama.cpp or vLLM.

ERNIE 4.5 21B A3B vs alternatives

Alternatives to ERNIE 4.5 21B A3B
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
granitelib-core-r1.0openIBMDec 2025—————
Hermes-4-14BopenNous ResearchAug 2025—————
OptiMind-SFTopenMicrosoftDec 202521B————
RealVideoopenZhipu AI (Z.ai)Dec 2025—————
DeepHermes-3-Mistral-24B-PreviewopenNous ResearchMar 202524B————
Voxtral Small (latest)openMistral AIJul 2025—32K$0.1$0.4—
Ming-Lite-OmniopeninclusionAI (Ant Group)May 202519B————
medgemma-27b-text-itopenGoogle DeepMindMay 202527B————

More models from Baidu

All Baidu models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Unlimited-OCRopenJun 20263.3B———
Unlimited-OCR-2openOct 20263.3B———
ERNIE-4.5-21B-A3B-ThinkingopenSep 202522B (3B act.)———
Qianfan-OCRopenMar 20264.7B———
ERNIE-5.5-Flash-BaseopenOct 2026286B———
ERNIE-4.5-21B-A3B-PTopenJun 202522B (3B act.)———
ERNIE-5.5-Flash-Base-BF16openOct 2026286B———
ERNIE 4.5 300B A47BopenJun 2025300B (47B act.)123K$0.28$1.10

Frequently asked questions

Who made ERNIE 4.5 21B A3B?

ERNIE 4.5 21B A3B was developed by Baidu (China). It was released on Jun 30, 2025.

What is the context window of ERNIE 4.5 21B A3B?

ERNIE 4.5 21B A3B supports a context window of 120,000 tokens (120K) and can generate up to 8,000 output tokens per response.

How much does ERNIE 4.5 21B A3B cost?

ERNIE 4.5 21B A3B costs $0.07 per 1M input tokens and $0.28 per 1M output tokens. Prices vary across the 1 providers that serve it.

Is ERNIE 4.5 21B A3B open source?

Yes. ERNIE 4.5 21B A3B's weights are publicly available, so you can download and run it yourself.

How many parameters does ERNIE 4.5 21B A3B have?

ERNIE 4.5 21B A3B has 21B parameters, of which 3B are active per token.

Where can I use ERNIE 4.5 21B A3B?

ERNIE 4.5 21B A3B is available via 1 API provider, and you can also self-host it with tools like vLLM, Ollama or LM Studio.

Sources: epoch, models.dev · paper. Last updated 2026-11-22.