# 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-12-04 11:48 UTC.

## Every Baidu model

Price per 1M tokens, input / output

- [ERNIE 4.5](https://opencheap.si/models/ernie-4.5): ernie-4.5 $0.068 / $0.27 · 160K context · 1 provider
- [ERNIE 4.5 0.3b](https://opencheap.si/models/ernie-4.5-0.3b): ernie-4.5-0.3b $0.014 / $0.054 · 1 provider
- [ERNIE 4.5 300B A47B](https://opencheap.si/models/ernie-4.5-300b-a47b): ernie-4.5-300b-a47b $0.32 / $1.28 · 1 provider
- [ERNIE 4.5 Turbo 128K Preview](https://opencheap.si/models/ernie-4.5-turbo-128k-preview): ernie-4.5-turbo-128k-preview $0.11 / $0.43 · 1 provider
- [ERNIE 4.5 Turbo](https://opencheap.si/models/ernie-4.5-turbo-latest): ernie-4.5-turbo-latest $0.11 / $0.44 · 135K context · 1 provider
- [ERNIE 4.5 Turbo VL](https://opencheap.si/models/ernie-4.5-turbo-vl): ernie-4.5-turbo-vl $0.40 / $1.20 · 139K context · 1 provider
- [ERNIE 5.0](https://opencheap.si/models/ernie-5.0): ernie-5.0 $0.82 / $3.29 · 119K context · 1 provider
- [ERNIE 5.0 Thinking Exp](https://opencheap.si/models/ernie-5.0-thinking-exp): ernie-5.0-thinking-exp $0.82 / $3.29 · 119K context · 1 provider
- [ERNIE 5.0 Thinking Preview](https://opencheap.si/models/ernie-5.0-thinking-preview): ernie-5.0-thinking-preview $0.82 / $3.29 · 183K context · 1 provider
- [ERNIE 5.1](https://opencheap.si/models/ernie-5.1): ernie-5.1 $0.56 / $2.54 · 119K context · 1 provider
- [ERNIE 5.5 Flash Preview](https://opencheap.si/models/ernie-5.5-flash-preview): ernie-5.5-flash-preview $0.15 / $0.59 · 1M context · 1 provider
- [ERNIE Light DT 1.0 (Intl)](https://opencheap.si/models/ernie-light-dt-1.0-intl): ernie-light-dt-1.0-intl $1.19 / $4.14 · 1M context · 3 providers
- [ERNIE X1 Turbo](https://opencheap.si/models/ernie-x1-turbo): ernie-x1-turbo $0.14 / $0.54 · 50K context · 1 provider
- [ERNIE X1.1 Preview](https://opencheap.si/models/ernie-x1.1-preview): ernie-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](https://opencheap.si/models/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)
```

---

Source: https://opencheap.si/models/lab/baidu · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
