Quick Start
- 1
- 2Use the Baidu Qianfan SDK or REST API to call
ernie-x1-turbo-32k— 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.15 |
| Output tokens | $0.59 |
Capabilities
About ERNIE X1 Turbo
ERNIE X1 Turbo is Baidu's faster, more affordable deep-thinking reasoning model, launched April 24, 2025. It builds on ERNIE X1's chain-of-thought capabilities with enhanced multimodal understanding and tool use. Priced at ~25% of DeepSeek R1 ($0.15/1M input tokens). Claims to outperform DeepSeek R1 and DeepSeek V3 on key benchmarks. API model ID: ernie-x1-turbo-32k.