中文

Prices › Baidu ERNIE (Qianfan)

ERNIE 5.1 API pricing & setup

As of 2026-10-17, the cheapest ERNIE 5.1 channel is Official (China): ¥4 input / ¥18 output per 1M tokens (blended $1.12). Context —.

Context: — · Max output: — · Modalities: — · Listed: —

Channel comparison (per 1M tokens)

ChannelBlendedInputOutputCachedAccess & payment (this channel)NotesSource
Official (China)
¥4 / ¥18
$1.12$0.597$2.69✓CN direct✓Alipay✓ID✗Intl card
conditions source2026-10-17
输入≤32K;32K–128K:输入 ¥6 / 输出 ¥22cloud.baidu.com
2026-10-17

Access & payment conditions are verified per channel (see the column above); unverified never counts as met.

How to use ERNIE 5.1 in Claude Code / Codex / OpenCode

Provider-specific setup not yet verified. Generic setup: guides

Cheaper alternatives

Mistral Large 4 ($1.03) · Qwen3.8 27B ($0.956) · Doubao Seed 2.1 Turbo ($0.896) ·

Compare

ERNIE 5.1 vs Qwen3.8 Max (0902) · ERNIE 4.5 Turbo 128K vs Doubao Seed 2.1 Turbo · Claude Haiku 5.5 vs Gemini 3.5 Flash-Lite · Compare any two →

Rankings: Cheapest LLM APIs · LLM APIs usable from mainland China · All Baidu ERNIE (Qianfan) models

Price history

FAQ

How much does the ERNIE 5.1 API cost?

Cheapest channel (Official (China)): ¥4 input / ¥18 output per 1M tokens, verified 2026-10-17.

Can I use ERNIE 5.1 from China?

Official (China): direct yes, Alipay yes, ID required yes, overseas card no

Is ERNIE 5.1 free?

No free route or deal recorded for this model; pay-as-you-go.

What is ERNIE 5.1's context window?

— tokens