Quick Start
- 1
- 2Use the Baidu Qianfan SDK or REST API to call
ernie-speed-pro-128k— see the documentation for request format. - 3
Code Examples
About Baidu Qianfan
Baidu Qianfan provides native hosted access to Baidu's ERNIE model lineup, including ERNIE 5.1, through model service APIs and the Qianfan console. The platform documents OpenAI-compatible access patterns, model lists, rate limits, and token-based pricing for online inference.
Baidu Qianfan is Baidu Intelligent Cloud's foundation model and Agent development platform, providing hosted API access to ERNIE and Qianfan models for text generation, reasoning, multimodal understanding, embeddings, and agent workflows.
Pricing on Baidu Qianfan
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.04 |
| Output tokens | $0.09 |
Capabilities
About ERNIE Speed Pro
ERNIE Speed Pro is Baidu's high-throughput lightweight model, available via the Qianfan API. It offers 128K context with efficient inference at very low cost ($0.044/1M input tokens). Pro-tier successor to the legacy free ERNIE Speed model. API model ID: ernie-speed-pro-128k. Exact release date not publicly documented.