ERNIE 4.5 21B A3B Thinking

Baidu chatreasoningtool_use

API ID: baidu/ernie-4.5-21b-a3b-thinking

Input Price
$0.07
/1M tokens
Output Price
$0.28
/1M tokens

About ERNIE 4.5 21B A3B Thinking

ERNIE-4.5-21B-A3B-Thinking is Baidu's upgraded lightweight MoE model, refined to boost reasoning depth and quality for top-tier performance in logical puzzles, math, science, coding, text generation, and expert-level academic benchmarks.

๐Ÿ’ฐ
Price Ranking
#681 lowest price among 1240 Chat models

Model Specifications

Context Length
131k
Max Output
66k
Release Date
2025-10-09
Capabilities
chat reasoning tool_use
Input Modalities
text
Output Modalities
text

Best For

  • Complex reasoning, math problems, multi-step logic
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)
  • Simple Q&A (cheaper models available)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.12
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$3.57
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$4.94
/month
500 analyses/day, ~2k tokens each

Baidu Model Lineup

Compare all models from Baidu to find the best fit

Model Input Output Context Capabilities
ERNIE 4.5 21B A3B Thinking Current $0.07 $0.28 131k chat reasoning tool_use
ERNIE 4.5 21B A3B $0.07 $0.28 120k chat reasoning tool_use
ERNIE 4.5 VL 28B A3B $0.14 $0.56 30k chat vision reasoning
ERNIE 4.5 300B A47B $0.28 $1.10 123k chat tool_use
ERNIE 4.5 VL 424B A47B $0.42 $1.25 123k chat reasoning vision

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Mistral Devstral Small 1.1
Input: $0.07
Output: $0.28
Context: 131k
Other Spotlight
Input: $0.18
Output: $0.18
Context: 131k
Meta Llama Guard 4 12B
Input: $0.18
Output: $0.18
Context: 1.0M
Alibaba Qwen Qwen3 Coder 30B A3B Instruct
Input: $0.07
Output: $0.27
Context: 262k

๐Ÿš€ Quick Start

Get started with ERNIE 4.5 21B A3B Thinking API

OpenAI-compatible SDK
from openai import OpenAI

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

response = client.chat.completions.create(
    model="baidu/ernie-4.5-21b-a3b-thinking",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)