LLM ReferenceLLM Reference

Using ERNIE Lite Pro on Baidu Qianfan

Implementation guide · ERNIE · Baidu AI

Serverless

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-lite-pro-128k — see the documentation for request format.
  3. 3
    You'll be billed $0.03/1M input, $0.06/1M output tokens. See full pricing.

Code Examples

See Baidu Qianfan documentation for integration details.

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

TypePrice (per 1M)
Input tokens$0.03
Output tokens$0.06

Capabilities

VisionMultimodalReasoningFunction CallingTool UseStructured OutputsCode Execution

About ERNIE Lite Pro

ERNIE Lite Pro is Baidu's ultra-lightweight efficient model, available via the Qianfan API at the lowest price tier ($0.03/1M input tokens). Offers 128K context with minimal cost for high-volume, latency-sensitive applications. Pro-tier successor to the legacy free ERNIE Lite model. API model ID: ernie-lite-pro-128k. Exact release date not publicly documented.

Model Specs

Released2025-01-01
Context128K
ArchitectureDecoder Only

Provider

Baidu Qianfan

Baidu

Beijing, China