TheToolRadar

ERNIE 4.5 21B A3B API Cost Calculator

Estimate your monthly API costs for ERNIE 4.5 21B A3B from Baidu.

Pricing per 1M tokens

Input
$0.0700
Output
$0.2800
120K context8K max outputFunction callingStreaming

Pricing last verified: Mar 21, 2026

30-Day Price History

Solid line: input price  ·  Dashed line: output price

Estimate Your Costs

What are you building?

Cost Breakdown

Input cost/request$0.000035
Output cost/request$0.000084
Cost per request$0.000119
Daily cost (1,000 requests)$0.1190
Monthly estimate$3.57
Annual estimate$42.84

Compare with Similar Models

ModelInput/1MOutput/1M
ERNIE 4.5 21B A3B Thinking
Baidu
$0.0700$0.2800
ERNIE 4.5 VL 28B A3B
Baidu
$0.1400$0.5600
ERNIE 4.5 300B A47B
Baidu
$0.2800$1.10
ERNIE 4.5 VL 424B A47B
Baidu
$0.4200$1.25
Spotlight
Arcee Ai
$0.1800$0.1800

Frequently Asked Questions

How much does ERNIE 4.5 21B A3B cost per token?

ERNIE 4.5 21B A3B is priced at $0.0700 per 1M input tokens and $0.2800 per 1M output tokens. Use the calculator above to estimate your monthly costs based on your usage volume.

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

ERNIE 4.5 21B A3B has a context window of 120K tokens (120,000 tokens). The maximum output length is 8K tokens.

Does ERNIE 4.5 21B A3B support function calling (tool use)?

Yes, ERNIE 4.5 21B A3B supports function calling (also called tool use). You can define custom functions that the model can invoke as part of its responses.

How does ERNIE 4.5 21B A3B compare to similar models?

ERNIE 4.5 21B A3B costs $0.0700 input and $0.2800 output per 1M tokens. ERNIE 4.5 21B A3B is competitively priced compared to ERNIE 4.5 21B A3B Thinking ($0.0700 input / $0.2800 output per 1M tokens). See the "Compare with Similar Models" table above, or visit the ERNIE 4.5 21B A3B Thinking page at /tools/cost-calculator/baidu/ernie-4-5-21b-a3b-thinking.