# Baidu ERNIE models: APIs and prices

ERNIE models for reasoning, coding and agents. XiaoZhan AIhub offers 1 Baidu ERNIE models (Text generation). Call them with one API key through the OpenAI, Anthropic or Gemini SDK; prices are in credits (60 credits = ¥1) and every model page lists the full price.

- Page: https://qd.zsopc.com/en/vendors/baidu
- Models: 1
- Last updated: 2026-11-17

## Text generation

### ERNIE 5.5 Flash Preview

Baidu ERNIE 5.5 Flash Preview: the newest ERNIE base model (preview), 280B total and 14B active parameters per token, built for coding, agents, knowledge work and deep research. 1M context and up to 1M output. Reasoning cannot be turned off (thinking tokens bill as output); tool calling and JSON output, text-only input. Billed at Baidu's official peak / off-peak prices: list price 8:00-22:00 Beijing time every day, half price 22:00-8:00.

- Model ID: `ernie-5.5-flash-preview`
- Page: https://qd.zsopc.com/en/models/ernie-5.5-flash-preview (Markdown: https://qd.zsopc.com/en/models/ernie-5.5-flash-preview.md)
- Context window: 1,048,576 tokens
- Updated: 2026-11-17
- Price:
  - Input: 120 credits (≈ ¥2 / ≈ $0.297) per 1M tokens
  - Output: 480 credits (≈ ¥8 / ≈ $1.19) per 1M tokens
  - Cached input: 12 credits (≈ ¥0.2 / ≈ $0.03) per 1M tokens

Prices are in credits, 60 credits = ¥1. The prices above are what is charged today (limited-time discounts included); ≈¥ / ≈$ use the platform's published rates.

## FAQ

### How do I call Baidu ERNIE models?

Create an API key on XiaoZhan AIhub, point your SDK's base_url at https://qd.zsopc.com/v1 and put the model ID from the list above in the model field. The OpenAI, Anthropic and Gemini SDKs all work.

### How are Baidu ERNIE models billed?

Each model is billed its own way: text models per input and output token, image models per image, video models per second or per token. Prices are in credits (60 credits = ¥1); each model page lists the full price.
