Baidu models
14 models · one OpenAI-compatible API
14 Baidu models are on OpenCheap, each at its own price per 1M tokens. The cheapest to call is ERNIE 4.5 0.3b, at $0.014 per 1M input tokens and $0.054 per 1M output tokens. The largest context is ERNIE Light DT 1.0 (Intl)'s, 1M tokens. Prices are per 1M input / output tokens, as of 2026-11-23 23:07 UTC.
Every Baidu model
Price per 1M tokens, input / output
- ERNIE 4.5ernie-4.5$0.068 / $0.27 · 160K context · 1 provider
- ERNIE 4.5 0.3bernie-4.5-0.3b$0.014 / $0.054 · 1 provider
- ERNIE 4.5 300B A47Bernie-4.5-300b-a47b$0.32 / $1.28 · 1 provider
- ERNIE 4.5 Turbo 128K Previewernie-4.5-turbo-128k-preview$0.11 / $0.43 · 1 provider
- ERNIE 4.5 Turboernie-4.5-turbo-latest$0.11 / $0.44 · 135K context · 1 provider
- ERNIE 4.5 Turbo VLernie-4.5-turbo-vl$0.40 / $1.20 · 139K context · 1 provider
- ERNIE 5.0ernie-5.0$0.82 / $3.29 · 119K context · 1 provider
- ERNIE 5.0 Thinking Expernie-5.0-thinking-exp$0.82 / $3.29 · 119K context · 1 provider
- ERNIE 5.0 Thinking Previewernie-5.0-thinking-preview$0.82 / $3.29 · 183K context · 1 provider
- ERNIE 5.1ernie-5.1$0.56 / $2.54 · 119K context · 1 provider
- ERNIE 5.5 Flash Previewernie-5.5-flash-preview$0.15 / $0.59 · 1M context · 1 provider
- ERNIE Light DT 1.0 (Intl)ernie-light-dt-1.0-intl$1.19 / $4.14 · 1M context · 3 providers
- ERNIE X1 Turboernie-x1-turbo$0.14 / $0.54 · 50K context · 1 provider
- ERNIE X1.1 Previewernie-x1.1-preview$0.14 / $0.54 · 119K context · 1 provider
Call any Baidu model
Every model from Baidu is called the same way: point the OpenAI SDK at https://api.opencheap.si/v1 with your OpenCheap key and pass the model id, for example opencheap/ernie-4.5. Each request goes to the cheapest healthy provider of that model, and every answer reports what it cost in usage.cost. You pay per token from one prepaid balance, and credits never expire.
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-4.5",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)