Atlas / Models / Baidu / Baidu: ERNIE 4.5 21B A3B

Baidu: ERNIE 4.5 21B A3B✓ Catalog verified

baidu/ernie-4.5-21b-a3b

A sophisticated text-based Mixture-of-Experts (MoE) model featuring 21B total parameters with 3B activated per token, delivering exceptional multimodal understanding and generation through heterogeneous MoE structures and modality-isolated routing. Supporting an extensive 131K token context length, the model achieves efficient inference via multi-expert parallel collaboration and quantization, while advanced post-training techniques including SFT, DPO, and UPO ensure optimized performance across diverse applications with specialized routing and balancing losses for superior task handling.

Input price
$0.07 /1M
Output price
$0.28 /1M
Context
120K
Modalities
text
Released
Aug 12, 2025
Tool calling
✓ Yes
Atlas signal
76/100
01

Overview

A sophisticated text-based Mixture-of-Experts (MoE) model featuring 21B total parameters with 3B activated per token, delivering exceptional multimodal understanding and generation through heterogeneous MoE structures and modality-isolated routing. Supporting an extensive 131K token context length, the model achieves efficient inference via multi-expert parallel collaboration and quantization, while advanced post-training techniques including SFT, DPO, and UPO ensure optimized performance across diverse applications with specialized routing and balancing losses for superior task handling.

Access: available through the official Baidu API. Context window: 120K.

Pricing and metadata from the ModelsAtlas catalog.Last refreshed Aug 5, 2026
02

Specifications

API identifierbaidu/ernie-4.5-21b-a3b
ProviderBaidu
Model typeText LLM
Context window120K catalog
Input modalitiestext
Output modalitiestext
ReleasedAug 12, 2025
ModeratedNo
Architecture modalitytext->text
Supported parameters
frequency_penaltymax_tokenspresence_penaltyrepetition_penaltyseedstoptemperaturetool_choicetoolstop_ktop_p
Source: provider documentation + catalog feedMethodology →

API defaults

Default parameters
{
  "top_p": 0.8,
  "temperature": 0.8,
  "frequency_penalty": null
}
03

Pricing

Live pricing components for baidu/ernie-4.5-21b-a3b as published in the catalog.

$0.07
Input /1M
$0.28
Output /1M
Per request
Per image
Pricing componentRaw unit priceNormalizedUnit
Prompt tokens$7e-8$0.07 / 1MPer input token
Completion tokens$2.8e-7$0.28 / 1MPer output token
Request feeN/AN/APer request
Image feeN/AN/APer image unit
Web search feeN/AN/APer search request
Source: catalog pricing feedCompare all pricing →Cheapest models →
04

Cost calculator

Estimate monthly spend from your own token volumes.

Scale / Volume

Estimated Total Cost

$0.09Calculated from current list pricing in the ModelsAtlas catalog.
05

Capabilities

CapabilityStatusWhat it means
Visual UnderstandingNot advertisedImage and document analysis support
Audio ProcessingNot advertisedSpeech and voice aligned flows
Tool Calling✓ SupportedSupports tools / function calling
Self-HostingNot advertisedDeploy outside managed APIs
Derived from catalog capability tags and supported parameters
06

Capability signals

Directional signals derived from model metadata and capability tags — not official benchmark submissions.

Baidu: ERNIE 4.5 21B A3B
MMLU Signal (Reasoning)
74signal
Coding Signal (HumanEval proxy)
80signal
Math Signal (GSM8K proxy)
74signal
Science Signal (GPQA proxy)
74signal
Estimated from metadata — not an official benchmark runAll benchmarks →Methodology →
07

Quick start

Call Baidu: ERNIE 4.5 21B A3B through an OpenAI-compatible client.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="baidu/ernie-4.5-21b-a3b",
    messages=[{"role": "user", "content": "Explain quantum physics."}]
)

print(response.choices[0].message.content)
08

Alternatives

Closest models by context window from a different provider.

09

Sources & attribution

Pricing and metadata are maintained in the ModelsAtlas catalog.

Capability bars use metadata tags — directional estimates onlyHow we source and verify data →
10

Frequently asked questions

How much does Baidu: ERNIE 4.5 21B A3B cost?

$0.07 per 1M input tokens and $0.28 per 1M output tokens on the official Baidu API.

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

Baidu: ERNIE 4.5 21B A3B supports up to 120K tokens of context.

Does Baidu: ERNIE 4.5 21B A3B support tool / function calling?

Yes, Baidu: ERNIE 4.5 21B A3B supports tool / function calling — you can register tools and the model will emit structured tool calls.

How do I access Baidu: ERNIE 4.5 21B A3B?

Use the official Baidu API with the model id `baidu/ernie-4.5-21b-a3b`. See the Quick start section above for code examples.