Ernie 5.0 API

Baidu's Ernie 5.0 costs $1.4 per million input tokens and $5.61 per million output tokens from 1 supplier. Each request through the OpenAI-compatible API goes to the offer with the lowest estimated charge that meets your rules.

About Ernie 5.0

Ernie 5.0 is a language model from Baidu. It takes text, files and images and gives text. The largest offer takes 128,000 input tokens. It has 1 supplier on this exchange now.

Facts

Model name
ernie-5.0
Maker
Baidu
Context window
128K tokens
Input price
$1.4 per million tokens
Output price
$5.61 per million tokens
Suppliers
1 supplier
Regions
us

Providers

Scores

Scores: Artificial Analysis (https://artificialanalysis.ai/)

Request

curl https://router.inference.ai.exchange/v1/chat/completions \
  -H "Authorization: Bearer $LIQUID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ernie-5.0",
    "messages": [{"role":"user","content":"Say hello."}]
  }'

Questions

What is Ernie 5.0?
Ernie 5.0 is a language model from Baidu.
How much does Ernie 5.0 cost?
Offers now ask $1.4 per million input tokens and $5.61 per million output tokens. A job pays for the tokens it uses. The exchange picks the cheapest eligible offer.
What is the context length of Ernie 5.0?
The largest offer takes 128,000 input tokens. A smaller offer can take less. The exchange skips an offer that cannot take your message.
What can Ernie 5.0 do?
Its providers list Documents, Vision, Reasoning effort, JSON object, JSON schema, Frequency penalty, Logit bias, Log probabilities, Min-p sampling, Presence penalty, Repetition penalty, Seed, Stop sequences, Top-k sampling, Top-p sampling, Text, Tools.
What inputs and outputs does Ernie 5.0 support?
Text · Files · Images → Text.
Which providers serve Ernie 5.0?
It has 1 supplier now, with 1 offer. The table above ranks them by the cost of one agent-mix job.
How do I call Ernie 5.0?
Send "ernie-5.0" as the model in an OpenAI or Anthropic request. The API section links to setup steps for each client.
When was Ernie 5.0 listed?
The exchange first listed it on 10/8/2026. This is not its release date.

Related pages