百度千帆

Baidu Qianfan

🟢 150ms 赠送 100 万 tokens 在线推理配额 📏 64k 30 RPM 🧠 Deep Reasoning

🛡️ 🛡️ Free Tier Policy & Rate Limits

Official Permanent Free Pool No Credit Card Identity Verified Zero Unexpected Bill Agent Ready
Context Window 64k
Rate Limit RPM 30 RPM
Daily Quota & Reset No API Call Ceiling · Permanent Availability
Auth & Card Requirement No Card Needed
Supported Capabilities:
🧠 Deep Reasoning 📝 Text Generation

📋 Core Endpoint & Model Parameters

OpenAI API Compatible
Base URL
https://qianfan.baidubce.com/v2
Model ID
DeepSeek-R1
Alternate Model Identifiers
🟢 [DeepSeek-R1 Full-Blood] Accelerated on Baidu Cloud, new users get 1M free tokens
👉 免费领取 R1 算力

💡 Caveats & Rate Limits

🎯 Qianfan official GPU acceleration · Full CoT thinking process · 1M free tokens [3 months validity]

📋 Free Tier Quota Rules and Constraints

  • ERNIE Speed and Lite series are permanently free
  • Enterprise-grade free limit of 300 RPM and 300k TPM
  • High availability for batch processing and retrieval workflows

🛡️ Zero-Billing Protection and Risk Prevention

Permanently free zero-cost models with high concurrency.

Quick Integration Code and Client Setup

🍒 Connect Cherry Studio
curl https://qianfan.baidubce.com/v2/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "DeepSeek-R1",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": true
  }'
from openai import OpenAI

client = OpenAI(
    base_url="https://qianfan.baidubce.com/v2",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="DeepSeek-R1",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True
)

for chunk in response:
    content = chunk.choices[0].delta.content or ""
    print(content, end="", flush=True)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://qianfan.baidubce.com/v2",
  apiKey: "YOUR_API_KEY"
});

const stream = await client.chat.completions.create({
  model: "DeepSeek-R1",
  messages: [{ role: "user", content: "Hello!" }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content || "");
}
{
  "apiProvider": "openai",
  "openAiBaseUrl": "https://qianfan.baidubce.com/v2",
  "openAiApiKey": "YOUR_API_KEY",
  "openAiModelId": "DeepSeek-R1"
}
AUTHORITATIVE

Benchmark Overview

Authoritative Measured Benchmark Signals
Intelligence 13.1/100

General reasoning and instruction following

Coding 24.6/100

Programming and code generation

Agentic 1.1/100

Tool use and multi-step tasks

Speed 36 tok/s

Observed generation speed

Context 131K

Maximum listed context window

✓ ✓ Copied