# ERNIE 4.5 21B A3B Usage, Cost & Rank | OpenCode Data

> ERNIE 4.5 21B A3B costs $0.07 per 1M input tokens and $0.28 per 1M output tokens.

Open ERNIE text MoE with 21B total and 3B active parameters

- Page: https://opencode.ai/data/baidu/ernie-4-5-21b-a3b
- JSON: https://opencode.ai/data/baidu/ernie-4-5-21b-a3b.json
- Model ID: baidu/ernie-4.5-21b-a3b
- Lab: Baidu

## Model facts

| Fact | Value |
| --- | --- |
| Context window | 131K |
| Max output | 8K |
| Knowledge cutoff | - |
| Release date | 2025-06-30 |
| Input modalities | text |
| Output modalities | text |
| Reasoning | No |
| Tool calling | Yes |
| Open weights | Yes |
| Weights | [Hugging Face](https://huggingface.co/baidu/ERNIE-4.5-21B-A3B-PT) |

## Pricing: USD per 1M tokens

| Input | Output | Cached input | Cache write |
| --- | --- | --- | --- |
| $0.07 | $0.28 | - | - |

## Methodology

- Updates: Aggregated every hour. Days and weeks use UTC.
- Tokens: Input, output, reasoning, and cached tokens for each request.
- Users and sessions: Approximate counts of distinct users and OpenCode sessions.
- Cost: Session cost is the average cost per OpenCode session. Token prices are list prices from the OpenCode model catalog.
- Retention: The share of a model's users in one week who use it again the next week.
- Citation: Cite OpenCode Data (opencode.ai/data) with the update time shown at the top of the page.
