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
| Provider | Input $/1M | Output $/1M | Cached input | Context |
|---|---|---|---|---|
| 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
- ERNIE 4.5 21B A3B vs granitelib-core-r1.0
- ERNIE 4.5 21B A3B vs Hermes-4-14B
- ERNIE 4.5 21B A3B vs OptiMind-SFT
- ERNIE 4.5 21B A3B vs RealVideo
- ERNIE 4.5 21B A3B vs DeepHermes-3-Mistral-24B-Preview
- ERNIE 4.5 21B A3B vs Voxtral Small (latest)
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| granitelib-core-r1.0open | IBM | Dec 2025 | — | — | — | — | — |
| Hermes-4-14Bopen | Nous Research | Aug 2025 | — | — | — | — | — |
| OptiMind-SFTopen | Microsoft | Dec 2025 | 21B | — | — | — | — |
| RealVideoopen | Zhipu AI (Z.ai) | Dec 2025 | — | — | — | — | — |
| DeepHermes-3-Mistral-24B-Previewopen | Nous Research | Mar 2025 | 24B | — | — | — | — |
| Voxtral Small (latest)open | Mistral AI | Jul 2025 | — | 32K | $0.1 | $0.4 | — |
| Ming-Lite-Omniopen | inclusionAI (Ant Group) | May 2025 | 19B | — | — | — | — |
| medgemma-27b-text-itopen | Google DeepMind | May 2025 | 27B | — | — | — | — |
More models from Baidu
All Baidu models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Unlimited-OCRopen | Jun 2026 | 3.3B | — | — | — |
| Unlimited-OCR-2open | Oct 2026 | 3.3B | — | — | — |
| ERNIE-4.5-21B-A3B-Thinkingopen | Sep 2025 | 22B (3B act.) | — | — | — |
| Qianfan-OCRopen | Mar 2026 | 4.7B | — | — | — |
| ERNIE-5.5-Flash-Baseopen | Oct 2026 | 286B | — | — | — |
| ERNIE-4.5-21B-A3B-PTopen | Jun 2025 | 22B (3B act.) | — | — | — |
| ERNIE-5.5-Flash-Base-BF16open | Oct 2026 | 286B | — | — | — |
| ERNIE 4.5 300B A47Bopen | Jun 2025 | 300B (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.