Back to Models

Baidu: ERNIE 4.5 21B A3B

baidu/ernie-4.5-21b-a3b
Aug 12, 2025120K context8K max output$0.07/M in · $0.28/M outReasoning

Description

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.

Specifications

Provider
baidu
Context Length
120K
Max Output
8K
Modality
Intext
Outtext

Pricing

TypePrice / 1M tokens
Input$0.07
Output$0.28

Quick Start

curl https://api.ominigate.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-omg-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "baidu/ernie-4.5-21b-a3b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'