17 Flagship Models with 1M tokens each + 20 CNY Voucher · 100% Zero-Cost Dev
https://qianfan.baidubce.com/v2 💡 Directly paste the address above as Base URL into any OpenAI-compatible client (NextChat, Cherry Studio, Immersive Translate, etc.).
ERNIE-4.5-Turbo-128K ERNIE-4.5-Turbo-32K ERNIE-4.5-Turbo-VL ERNIE-X1-Turbo-32K DeepSeek-R1 DeepSeek-R1-250528 DeepSeek-V3-250324 DeepSeek-V3.1-250821 DeepSeek-V3.1-Think-250821 Qwen3-235B-A22B-Instruct-2507 Qwen3-30B-A3B-Instruct-2507 Qwen3-Coder-30B-A3B-Instruct Qwen3-Coder-480B-A35B-Instruct Kimi-K2-Instruct bge-large-en bge-large-zh qianfan-sug-8k 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.
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.
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.
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.
Free quota applies exclusively to /v2 online inference (Chat Completions & Embeddings). Offline batch inference (Batch API) and fine-tuning are excluded.
No complicated legacy BCE-v3 signatures needed! Simply pass Authorization: Bearer <API_KEY> with Base URL https://qianfan.baidubce.com/v2.
Sign up at the Baidu Qianfan console and complete personal or enterprise ID verification. Once approved, a 20 CNY voucher is automatically credited.
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.
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!
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)