Baidu Qianfan

● 24h Uptime 99.9% (Baidu Cloud Enterprise HA)

17 Flagship Models with 1M tokens each + 20 CNY Voucher · 100% Zero-Cost Dev

💡 HIGHLIGHT

Get 1 Million Free Tokens for 17 Top Models on Baidu Qianfan (DeepSeek R1, ERNIE 4.5, Qwen3)

⚡ Speed & Latency
180ms ~ 380ms
Direct connection to Baidu 10,000-card AI computing center, low-latency BGP
🎁 Free Quota & Policy
17 Models with 1M tokens each (17,000,000 tokens total)
Instant grant upon activation · Independent 3-month validity · Extra 20 CNY voucher on ID check
🛡️ Auth & Access Requirements
Baidu Qianfan v2 API Key (Native OpenAI Compatible)
Standard Bearer Token authentication, drop-in replacement for OpenAI SDK, NextChat, Cursor, etc.
📊 Concurrency & Context
Production High Throughput · Per-Model Rate Limits
Independent quota & lifecycle per model, stable enterprise-grade inference

🔌 OpenAI-Compatible Base URL

https://qianfan.baidubce.com/v2

💡 Directly paste the address above as Base URL into any OpenAI-compatible client (NextChat, Cherry Studio, Immersive Translate, etc.).

📋 Featured Models:

Click Model ID to copy
ERNIE Speed Flagship ERNIE-4.5-Turbo-128K
Baidu accelerated flagship with 128K long context; 1M free tokens for new users
ERNIE 32K Turbo ERNIE-4.5-Turbo-32K
High throughput, low latency 32K context edition with 1M free tokens
Vision Multimodal ERNIE-4.5-Turbo-VL
ERNIE 4.5 visual language model for high-res document & image parsing
Deep Reasoning ERNIE-X1-Turbo-32K
ERNIE X1 reasoning specialist supporting long chain-of-thought logic
Full-Blood R1 DeepSeek-R1
DeepSeek-R1 full 671B reasoning model hosted on Baidu infrastructure
R1 Snapshot DeepSeek-R1-250528
Official stable snapshot of DeepSeek-R1 balancing reasoning & consistency
Full-Blood Base DeepSeek-V3-250324
DeepSeek-V3 671B foundation snapshot for coding and general text
V3.1 Upgraded DeepSeek-V3.1-250821
Latest DeepSeek-V3.1 architecture optimized for long code & complex instructions
V3.1 Reasoning DeepSeek-V3.1-Think-250821
DeepSeek-V3.1 thinking model ideal for complex math and system architecture
Qwen3 Flagship Qwen3-235B-A22B-Instruct-2507
Alibaba open-weights Qwen3 MoE 235B flagship with exceptional general ability
Qwen3 Agile MoE Qwen3-30B-A3B-Instruct-2507
Compact high-performance MoE model with fast response times
Coding 30B Qwen3-Coder-30B-A3B-Instruct
Qwen3 code-specialized model ideal for IDE copilot & script generation
Top Coder 480B Qwen3-Coder-480B-A35B-Instruct
Top-tier 480B coder for full repository understanding and refactoring
Moonshot Kimi Kimi-K2-Instruct
Moonshot Kimi K2 instruction model expert in long text comprehension
Top EN Embedding bge-large-en
BAAI state-of-the-art English embedding for RAG search & semantic similarity
Top ZH Embedding bge-large-zh
BAAI state-of-the-art Chinese embedding standard for enterprise search
Search Suggestion qianfan-sug-8k
Baidu proprietary query completion and recommendation suggestion model

🎁 Free Tier Reality & Limits

1,000,000 tokens for each of the 17 featured models (17M total) · Independent 3-month validity · 20 CNY voucher on ID verify
🔄 Reset Cycle One-time grant (valid for 3 months per model from activation, not monthly recurring)
🛡️ Overage Behavior ⚠️ Wallet Risk: Once the 1M tokens per model expire (after 3 months) or exhaust, verified accounts automatically transition to pay-as-you-go billing (no stop-on-exhaust toggle, billed daily)! Monitor console usage closely.
📋 Access Requirements
✓ No Credit Card 🪪 ID Verification Required

Baidu Qianfan AI Platform provides an extensive welcome package for developers: 17 selected models—including ERNIE 4.5 Turbo, DeepSeek-R1, Qwen3-Coder, and Kimi-K2—each receive 1,000,000 free tokens for online inference (17,000,000 tokens total), with an independent 3-month timer per model.

Completing basic real-name verification grants an additional 20 CNY general voucher. The v2 API is natively OpenAI compatible for effortless integration.

⚠️ Worth Knowing & Gotchas

⚠️ Wallet Risk: No Stop-on-Exhaust Toggle

Baidu Qianfan does not provide an automatic cutoff toggle when free quotas run out. Once the 1M tokens per model expire (after 3 months) or deplete, calls will automatically roll over to pay-as-you-go billing deducted daily from your Baidu Cloud balance. Set up usage threshold alerts in the console to avoid surprise fees.

⚠️ Must Enable Pay-As-You-Go

Baidu requires pay-as-you-go post-paid billing to be toggled ON for free quotas to take effect. If not enabled, API calls may return authorization or quota errors.

⏳ Independent 3-Month Timer Per Model

Each model's 1M tokens timer starts upon its first activation or call and expires after 3 months independently, rather than sharing a global pool.

💡 Online Inference Only

Free quota applies exclusively to /v2 online inference (Chat Completions & Embeddings). Offline batch inference (Batch API) and fine-tuning are excluded.

🔌 Native OpenAI Compatible v2 API

No complicated legacy BCE-v3 signatures needed! Simply pass Authorization: Bearer <API_KEY> with Base URL https://qianfan.baidubce.com/v2.

🚀 30-Second Quick Setup Guide

01

Register Baidu Cloud Account & Complete Verification

Sign up at the Baidu Qianfan console and complete personal or enterprise ID verification. Once approved, a 20 CNY voucher is automatically credited.

02

Activate Models & Confirm Post-Paid Billing

Browse the Model Service catalog, activate desired models (e.g., ERNIE-4.5-Turbo, DeepSeek-R1, Qwen3), and confirm pay-as-you-go activation. Free 1M tokens will be injected into all 17 models.

03

Generate API Key & Connect OpenAI-Compatible Clients

Create an API Key in App / Key Management. Use Base URL: https://qianfan.baidubce.com/v2 in Cursor, NextChat, ChatBox, or Cherry Studio and start building!

💻 Quick Python OpenAI SDK Example

from openai import OpenAI

client = OpenAI(
    api_key="your_api_key_here",  # 填入申请的 Key
    base_url="https://qianfan.baidubce.com/v2"
)

response = client.chat.completions.create(
    model="ERNIE-4.5-Turbo-128K",
    messages=[
        [object Object]
    ]
)

print(response.choices[0].message.content)
← Radar 🚀 Toolbox