LLM Reference
Baidu Qianfan

Using ERNIE Speed Pro on Baidu Qianfan

Implementation guide · ERNIE · Baidu AI

Serverless

Baidu Qianfan exposes ERNIE Speed Pro through model ID ernie-speed-pro-128k. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-06-29. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at Baidu Qianfan and generate an API key.
  2. 2
    Use the Baidu Qianfan SDK or REST API to call ernie-speed-pro-128k — see the documentation for request format.
  3. 3
    You'll be billed $0.04/1M input, $0.09/1M output tokens. See full pricing.

Code Examples

See Baidu Qianfan documentation for integration details.

Pricing on Baidu Qianfan

TypePrice (per 1M)
Input tokens$0.04
Output tokens$0.09

Capabilities

No model capability flags are currently sourced.

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.

Model Specs

Released2025-01-01
Context128k
ArchitectureDecoder Only

Provider

Baidu Qianfan
Baidu Qianfan

Baidu

Beijing, China