Baidu: ERNIE 5.1API pricing
ERNIE 5.1 is a language model from Baidu. It reads and writes text.
- 每100万枚代币的价格
- $0.56 / $2.54input / output
- 缓存的输入
- $0.56per 1M tokens
- 上下文
- 119K tokens65K max output
- 服务提供商
- 1
服务提供商
1 provider ·
119K context · 65K max output
支持的参数11
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/ernie-5.1", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/ernie-5.1",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/ernie-5.1",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 ERNIE 5.1 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/ernie-5.1;其余代码保持不变。
About ERNIE 5.1
- 请求示例
- $0.008210,000 in + 1,000 out
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
ERNIE 5.1 costs from $0.56 per 1M input tokens and $2.54 per 1M output tokens on OpenCheap. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0082, and 1,000 such requests about $8.17.
One provider serves ERNIE 5.1 on OpenCheap today. Its context window is 119K tokens (119,000), room for roughly 89,000 words of English in one request.
ERNIE 5.1 is one of 14 Baidu models on OpenCheap.
Prices as of 2026-12-04 11:48 UTC.
关于定价的问题
How much does the ERNIE 5.1 API cost per 1M tokens?
ERNIE 5.1 costs from $0.56 per 1M input tokens and $2.54 per 1M output tokens on OpenCheap. Prices as of 2026-12-04 11:48 UTC.
What does one ERNIE 5.1 request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.0082, and 1,000 such requests about $8.17. Every answer reports its own cost in usage.cost.
Which providers serve ERNIE 5.1?
One provider serves ERNIE 5.1 on OpenCheap today. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of ERNIE 5.1?
Its context window is 119K tokens (119,000), room for roughly 89,000 words of English in one request.
How do I call the ERNIE 5.1 API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/ernie-5.1. One OpenCheap key works for every model; the rest of your code stays the same.
More from Baidu
- ERNIE 4.5ernie-4.5$0.068 / $0.27 per 1M · 160K context
- ERNIE 4.5 0.3bernie-4.5-0.3b$0.014 / $0.054 per 1M
- ERNIE 4.5 300B A47Bernie-4.5-300b-a47b$0.32 / $1.28 per 1M
- ERNIE 4.5 Turbo 128K Previewernie-4.5-turbo-128k-preview$0.11 / $0.43 per 1M
- ERNIE 4.5 Turboernie-4.5-turbo-latest$0.11 / $0.44 per 1M · 135K context
- ERNIE 4.5 Turbo VLernie-4.5-turbo-vl$0.40 / $1.20 per 1M · 139K context
- ERNIE 5.0ernie-5.0$0.82 / $3.29 per 1M · 119K context
- ERNIE 5.0 Thinking Expernie-5.0-thinking-exp$0.82 / $3.29 per 1M · 119K context
类似型号
- 基米 K2.6Moonshot · 26.2万上下文$0.32 / $1.57 per 1M38 % cheaper
- Mistral Medium 3Mistral · 13.1万语境$0.44 / $2.20 per 1M14 % cheaper
- NousResearch/Hermes-4-405BNous · 131K context$1.00 / $3.00 per 1M
- Kimi K2 教学指南Moonshot · 131K context$0.52 / $2.10 per 1M17 % cheaper
- Llama 3.3 70BMeta · 128K context$1.75 / $2.75 per 1M
- GPT 4oOpenAI · 128K context$1.00 / $4.00 per 1M