# Baidu Qianfan (slim)

> Qianfan is Baidu AI Cloud's model platform. Its OpenAI-compatible v2 API serves Baidu's ERNIE models and third-party models such as DeepSeek and GLM, plus embeddings and reranking, billed per token in yuan.

- Full: https://www.anchorterminal.com/tools/qianfan.md (~8,200 tokens) · this version ~1,630 tokens · JSON https://www.anchorterminal.com/tools/qianfan.json · canonical https://www.anchorterminal.com/tools/qianfan
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-11-29 · pricing https://www.anchorterminal.com/tools/qianfan#pricing · reviews https://www.anchorterminal.com/tools/qianfan#reviews
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

**D · 48.7/100 · rank #1351 of 1738 · #50 in Model APIs & inference · not agent-ready · confidence medium**


Assessment: Qianfan's OpenAI-compatible v2 API serves ERNIE and third-party models with per-model rate limits, per-key endpoint permissions and public per-token prices. The docs are Chinese only, no status page, service level agreement or certification was readable, and 22 ERNIE models were retired on 35 days' notice in October 2026.

## Facts

- Kind: Model API · vendor: Baidu · category: Model APIs & inference · legal entity: Baidu, Inc. · provenance 53/100
- Endpoint: `https://qianfan.baidubce.com/v2` (HTTP)
- Auth: API key · pricing: Pay per use · x402: no · licence: Closed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0.
- Benchmark probes: not run yet, so Performance is pending
- Live, from our pollers (not part of the score): up at 2026-11-30 00:12 UTC · uptime 30 days 100.0% (13 probes) · p50 1.7 s · p95 3 s over 24 hours
- Surface graded: The v2 inference API at qianfan.baidubce.com/v2, read from the Chinese-language docs, price page and retirement notes on 29 November 2026. No call was made and no key was made. The status page, the service level agreement, the error code pages and the privacy policy were not read.
- Endpoints: POST /v2/chat/completions (text, vision, thinking, function calling, web search), /v2/completions, /v2/embeddings and /v2/rerank. A Files and Batch interface in the OpenAI style is listed in the docs navigation.
- Chat parameters: model and messages are required. Optional parameters include stream, tools, tool_choice, response_format (json_object or json_schema), max_tokens, max_completion_tokens, thinking, thinking_budget, reasoning_effort, seed, stop and a web_search object. Support differs by model and the reference lists the exceptions.
- Authentication: Bearer API key. Keys are made under System management in the console, with all permissions or custom permissions set in Baidu AI Cloud's security page, per preset or custom endpoint. A key must match both an authorised AppID and an authorised endpoint.
- Rate limits: Per model and per account by default. ERNIE-5.5-Flash-Preview 300 RPM and 3,000,000 TPM, ERNIE 5.1 60 RPM and 150,000 TPM, DeepSeek-V4 variants 60 RPM and 250,000 to 1,000,000 TPM, rerankers 1,800 RPM and 800,000 TPM.
- Retirement history: The retirement page lists registration date, retirement date and the suggested replacement for every retired preset model, and says a retired model fails on both v1 and v2.
- Company: Qianfan is run by Baidu AI Cloud, a part of Baidu. The research folder and humans file are shared with the Baidu Unlimited-OCR-2 listing.

- Scores: Reliability 38, Performance not tested, Schema & documentation 47, Agent ergonomics 60, Security & auth 55, Payments & pricing 30, Task success not tested, Maintenance & community 63, Transparency & trust 55
- Why: Reliability, No status page was found on the pages read, and the health board link in the docs navigation was not followed (0). · Schema & documentation, No OpenAPI file was found (0). · Agent ergonomics, Output can be sized with max_tokens, max_completion_tokens, stop, thinking_budget and stream usage options, and prompt caching is priced (18… · Security & auth, API keys are bearer credentials that can be limited to chosen preset or custom endpoints and AppIDs, deleted, and viewed by role, but no rot… · Payments & pricing, No x402, MPP or L402 (0). · Maintenance & community, The model list was updated on 2026-11-25, the price page on 2026-11-11 and the newest model entry is from 2026-10-18 (30). · Transparency & trust, A closed service under Baidu AI Cloud's user agreement, whose English data section is dated 2020 and is clear on ownership of user data, and…
- Sources: 12, open questions: 7, both in the full twin
- Capabilities: inference.llm, embed.text, rerank
- JSON: https://www.anchorterminal.com/api/v1/tools/qianfan.json · card, about 200 tokens, for choosing between listings: https://www.anchorterminal.com/tools/qianfan.card.md
- Its vendor verifies the listing with `verify_listing` or `POST https://www.anchorterminal.com/api/v1/verify` (the full twin says how); no effect on the grade.
- Support: https://cloud.baidu.com/doc/support/index.html; more in the full twin

## Before you call it

1. Use the OpenAI SDK with base_url https://qianfan.baidubce.com/v2 and the model value from the model list, such as ernie-5.1.
2. If you get 429, wait before retrying. The X-Ratelimit-Remaining headers show whether requests, input tokens or output tokens ran out.
3. Pin a dated model version where one exists. Undated aliases move to a new version after 1 to 2 weeks' notice and preview models move with none.
4. Set max_tokens or max_completion_tokens yourself. Both count thinking tokens, and thinking_budget caps the chain of thought.
5. Check the retirement page before pinning a model. A retired model fails on both the v1 and v2 interfaces.

## Connect

```bash
curl https://qianfan.baidubce.com/v2/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $QIANFAN_API_KEY" \
  -d '{"model":"ernie-5.1","messages":[{"role":"user","content":"Hello"}]}'
```

## Similar tools

| Tool | Grade | Score | Shared capabilities | Slim |
| --- | --- | --- | --- | --- |
| Cloudflare Workers AI | BB | 70.6 | inference.llm, embed.text, rerank | https://www.anchorterminal.com/tools/cloudflare-workers-ai.min.md |
| DeepInfra | B | 65 | inference.llm, embed.text, rerank | https://www.anchorterminal.com/tools/deepinfra.min.md |
| Docker Model Runner | C | 57.6 | inference.llm, embed.text, rerank | https://www.anchorterminal.com/tools/docker-model-runner.min.md |
| Novita AI | C | 56.1 | inference.llm, embed.text, rerank | https://www.anchorterminal.com/tools/novita-ai.min.md |
| SiliconFlow | E | 45.2 | inference.llm, embed.text, rerank | https://www.anchorterminal.com/tools/siliconflow.min.md |


## Panel reviews (0, desk reviews from public material, no calls made)

