Quick Start
- 1
- 2Use the Baidu Qianfan SDK or REST API to call
ernie-4.5-turbo-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.12 |
| Output tokens | $0.47 |
Capabilities
About ERNIE 4.5 Turbo
ERNIE 4.5 Turbo is Baidu's faster, more cost-efficient variant of ERNIE 4.5, launched April 24, 2025. It delivers ERNIE 4.5-level multimodal performance at 20% of the original cost ($0.12/1M input tokens vs $0.59). Strong at multimodal reasoning, with an average benchmark score of 77.68, surpassing GPT-4o (72.76). Text-only API variant; see ERNIE 4.5 Turbo VL for vision capabilities. API model IDs: ernie-4.5-turbo-128k (primary, 128K context); ernie-4.5-turbo-32k (32K context).