LLM Reference
Baidu Qianfan

ERNIE 5.1 on Baidu Qianfan

ERNIE 5 · Baidu AI

Serverless

Last refreshed 2026-06-29. Next refresh: weekly.

Why use ERNIE 5.1 on Baidu Qianfan?

Baidu Qianfan offers ERNIE 5.1 with pay-as-you-go pricing at $0.59/1M input tokens. Baidu Qianfan is Baidu Intelligent Cloud's foundation model and Agent development platform, providing hosted API access to ERNIE and Qianfan models for text generation, reasoning, multimodal understanding, embeddings, and agent workflows.

Input / 1M
$0.59
Output / 1M
$2.65
Cache
Not sourced
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: ernie-5.1
Model ID
ernie-5.1

Request example

Curated snippets for this provider are not sourced yet. Use Baidu Qianfan documentation with model ID ernie-5.1.

Gotchas

No curated gotchas have been sourced for this exact provider/model route yet.

Pricing

TypePrice (per 1M)
Input tokens$0.59
Output tokens$2.65

Capabilities

JSON / Tool use

About ERNIE 5.1

ERNIE 5.1 is Baidu's fifth-generation flagship language model, officially released May 9, 2026. Achieved via disaggregated fully-asynchronous reinforcement learning and scaled agentic post-training, it delivers leading performance at approximately 6% of the pre-training compute cost of comparable models — with roughly one-third the total parameters and half the active parameters of ERNIE 5.0. ERNIE 5.1 ranks #4 globally and #1 among Chinese models on the LMArena Search leaderboard (score: 1,223), with standout performance in legal reasoning, mathematics (AIME26: 99.6), and business domains. API model ID: ernie-5.1. Context: 128K tokens; max output: 65,536 tokens.

Get Started

Model Specs

Released2026-05-09
Context128k

Related Models on Baidu Qianfan