Baidu

ERNIE 4.5 21B A3B API Pricing 2026

Compare pricing, benchmarks, and providers for ERNIE 4.5 21B A3B. Find the best value for your use case.

8 Ways to Use Fewer Tokens
Last updated: November 21, 2026 at 08:43 AM

Overview

ERNIE 4.5 21B A3B was released on August 12, 2025. Pricing starts at $0.900 per million input tokens and $0.900 per million output tokens. The model supports a context window of up to 120K tokens. API access is available through Baidu.

Context Window
120K
tokens
Pricing
Input$0.900
Output$0.900
Cached$0.450
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
Tools

ERNIE 4.5 21B A3B is priced at $0.900 per million input tokens and $0.900 per million output tokens. It has a context window of 120,000 tokens. It is available from 1 provider, with Fireworks the cheapest at $0.900 per million input tokens.

Pricing Comparison

Compare ERNIE 4.5 21B A3B with 10 similar models by price.

Current Pricing (per 1M tokens)

11 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Model
Input $/M
Output $/M
Coding
MMLU
GPQA
Context
Actions
$0.900
$0.900
—
—
—
120,000
Try
$0.900
$0.900
—
—
—
262,000
Try
$0.900
$0.900
—
—
—
131,072
Try
$0.900
$0.900
—
—
—
131,072
Try
$0.900
$0.900
—
—
—
131,072
Try
$0.900
$0.900
—
—
—
131,072
Try
$0.900
$0.900
—
—
—
4,096
Try
$0.900
$0.900
—
—
—
16,384
Try
$0.900
$0.900
—
—
—
8,192
Try
$0.900
$0.900
—
—
—
131,072
Try
$0.900
$0.900
—
—
—
8,192
Try

* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.

Compare Providers

ERNIE 4.5 21B A3B is available from multiple providers with different pricing and availability.

1
Providers
$0.900
Cheapest Input/M
$0.900
Cheapest Output/M
Fireworks
Best Price

Provider Pricing

1 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Input $/M
Output $/M
Cache Read $/M
Cache Write $/M
Uptime
Fireworks
Fireworks
Best Price
$0.900
$0.900
$0.450
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

How does ERNIE 4.5 21B A3B perform? Vote based on your experience.

Cost vs. Quality

Compare ERNIE 4.5 21B A3B's benchmark performance against all models.

X-axis:
Y-axis:
Loading chart...
Other models

Try ERNIE 4.5 21B A3B

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test ERNIE 4.5 21B A3B directly in your browser.

Open Playground

Frequently Asked Questions

ERNIE 4.5 21B A3B costs $0.000900 per 1,000 input tokens and $0.000900 per 1,000 output tokens.
ERNIE 4.5 21B A3B is available from 1 provider. Fireworks offers the best price.
Fireworks offers ERNIE 4.5 21B A3B at $0.900 per million input tokens.
We compare ERNIE 4.5 21B A3B with 10 similarly-priced models. See the benchmark scatter plot above to compare quality vs cost.

All Baidu Models

See pricing for all Baidu models.

View all Baidu models →