LLM ReferenceLLM Reference

Using ERNIE X1 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-x1 — see the documentation for request format.
  3. 3
    You'll be billed $0.30/1M input, $1.18/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.30
Output tokens$1.18

Capabilities

VisionMultimodalReasoningFunction CallingTool UseStructured OutputsCode Execution

About ERNIE X1

Baidu ERNIE X1 advanced model with enhanced reasoning for enterprise applications.

Model Specs

Released2025-03-16
ArchitectureDecoder Only

Provider

Baidu Qianfan

Baidu

Beijing, China