ERNIE 5.1 API Pricing
ERNIE 5.1 is Baidu's frontier MoE model on the Qianfan platform - a cheaper refresh of the ERNIE 5 line. The official billing page lists the 0-32K tier at CNY 4/M input and CNY 18/M output, which AI//COST stores as $0.59/M and $2.655/M at 1 CNY = $0.1475. Pulled from cloud.baidu.com.
Run the numbers.
Live calculator pre-loaded with ERNIE 5.1's 0-32K tier. Above 32K input, Baidu charges the higher CNY 6/M input and CNY 22/M output band shown in the FAQ.
Real-world presets.
Codebase-scale migration
Reading 100-page contracts
Ticket triage
Research planning turn
Paste text. See tokens. See cost.
This is a chars-per-token approximation, not a real tokenizer. Actual tokens vary by language, code density, and tool-call overhead — counts are typically ±10–20% off for English prose, more for code or non-Latin scripts. For exact billing, use the vendor's official tokenizer.
| Model | Input /M | Output /M | Effective blended | Context | Best for |
|---|---|---|---|---|---|
| ERNIE 5.1 Current | $0.59 | $2.65 | $0.76 agentic 92/8, no cache | 128K | Frontier Chinese-language work |
| ERNIE 4.5 Turbo | $0.12 cache $0.03 | $0.47 | $0.08 cheaper sibling | 128K | High-volume cost-sensitive traffic |
| DeepSeek V4 Pro | $0.43 cache $0.00 | $0.87 | $0.14 cross-vendor reasoning | 1M | Low-cost reasoning |
| Qwen 3.5 Plus | $0.40 | $2.40 | $0.56 China peer | 256K | General Qwen production |
| GPT-5.4 | $2.50 cache $0.25 | $15.00 | $1.80 Western frontier | 1M | Frontier daily-driver |
Frequently asked.
Practical ERNIE 5.1 pricing questions, with Baidu's published CNY rates kept separate from conversion and workload assumptions.
Q · 01 What is ERNIE 5.1 priced at? +
CNY 4/M input and CNY 18/M output, stored here as $0.59/M and $2.655/M at 1 CNY = $0.1475. Above 32K input, the rate rises to CNY 6/M input and CNY 22/M output.Q · 02 Does ERNIE 5.1 have a cache discount? +
$0.59/M). ERNIE 4.5 Turbo does have a published CNY 0.2/M cache-hit rate.Q · 03 How does ERNIE 5.1 compare with ERNIE 5.0? +
$0.885/$3.54) while ERNIE 5.1 is a cheaper refresh at CNY 4/18 ($0.59/$2.655). ERNIE 5.1 is newer and lower-priced.Q · 04 Which API model ID should I use? +
ernie-5.1 on the Qianfan platform. Re-verify the current CNY tier prices on the Qianfan billing page before pinning a production integration.