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.
- Providers compete for each request. The exchange ranks the offers that meet your rules by estimated charge. It fixes your maximum charge before the first token, and you pay for the tokens that the model uses.
- The OpenAI and Anthropic APIs. Use the OpenAI or Anthropic SDK that you have. Set the base URL and your key, and send ernie-5.0 as the model.
- Your data rules. Send x-liquid-retention: none and only offers whose provider does not keep your content compete for the request.
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
- Architect: us, declared precision provider-managed, $1.4 input and $5.61 output per million tokens, $1.4 cache read per million tokens, 128K tokens of context
Scores
- HLE: 13.3, #210 of 465
- GPQA: 77.7, #182 of 432
- Terminal-Bench Hard: 25.0, #129 of 311
- LiveCodeBench: 81.2, #19 of 250
- AIME 2025: 85.0, #25 of 199
- MMLU-Pro: 83.0, #66 of 253
- τ²-Bench: 83.9, #96 of 313
- IFBench: 41.4, #201 of 321
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.