LLM Reference

ERNIE 5.1 on Baidu Qianfan

ERNIE 5 · Baidu AI

Serverless

Last refreshed 2026-05-12. 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

Function CallingTool 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.

FAQ

What does ERNIE 5.1 cost on Baidu Qianfan?

On Baidu Qianfan, ERNIE 5.1 costs $0.59 per 1M input tokens and $2.65 per 1M output tokens.

What is the context window for ERNIE 5.1 on Baidu Qianfan?

ERNIE 5.1 supports a 128k token context window on Baidu Qianfan.

What API model ID do I use for ERNIE 5.1 on Baidu Qianfan?

Use the model ID ernie-5.1 when calling Baidu Qianfan's API.

Who created ERNIE 5.1?

ERNIE 5.1 was created by Baidu AI as part of the ERNIE 5 model family.

Is ERNIE 5.1 open source?

ERNIE 5.1 is not open source; the seed data lists it as proprietary.

Get Started

Model Specs

Released2026-05-09
Context128k

Related Models on Baidu Qianfan