Head to head · LLM inference · October 2026 research run
Baidu Qianfan vs Tencent Cloud TokenHub
Tencent Cloud TokenHub scores 61.7 (C) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in 6 of 7 scored categories. Both do llm inference.
Best model APIs and inference for AI agents · All 1495 models comparisons
Which one, for what
Best for Calling ERNIE and other China-hosted models through an OpenAI-style API at a low per-token price, for teams that can read Chinese docs and open a Baidu AI Cloud account.
Also in its favour
- No incidents deducted, where Tencent Cloud TokenHub loses 3 points for them
Watch for
The docs read were in Chinese only, and no OpenAPI file or llms.txt was found
Best for Teams in or near Tencent Cloud that want one key and bill for Tencent's Hy models and Chinese open-weight models (DeepSeek, Kimi, GLM, MiniMax, Qwen, MiMo) with per-key limits and CNY billing.
Ahead on
- Reliability, 46 against 38
- Schema & documentation, 73 against 47
- Agent ergonomics, 83 against 60
- Security & auth, 71 against 55
- Payments & pricing, 53 against 30
- Maintenance & community, 73 against 63
Watch for
Sign-up needs a Tencent Cloud account with real-name verification. The international site answered with a bot check, so access from outside China was not established
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Schema & documentation Tencent Cloud TokenHub +26
Baidu Qianfan 47
No OpenAPI file was found (0). cloud.baidu.com/llms.txt returned 404 (0). The chat completions reference states the endpoint, authentication, parameter support per model and links the model list, and the docs are Chinese only (13 of 20). Parameters are typed with enums, ranges and required marks, including json_schema output, tool_choice and thinking controls (12 of 15). Curl and Python examples cover plain chat and function calling, and an error object with code, message and type is described while the error code pages were not read (10 of 15). A dated model update log, retirement records with replacements and the v1 to v2 migration notice make up the versioning, but the platform log's newest entry is from August 2025 (12 of 15). Total 47.
Tencent Cloud TokenHub 73
Router, scored on the API lines. No OpenAPI file for the inference routes. Field pages document the OpenAI Chat Completions, OpenAI Responses and Anthropic Messages formats as TokenHub implements them, and the control plane is a Tencent Cloud API 3.0 service (version 2026-03-22) with typed parameters, API Explorer and SDKs (12 of 25). An llms.txt at cloud.tencent.com/document/product/1823/llms.txt links a Markdown copy of each docs page (10). The docs say which models support thinking, tools, structured output and caching, how TokenHub departs from each standard protocol, and which DeepSeek model suits which job. The quickstart's examples still use deepseek-v3, which is not in the model list, and Qwen3.5 stays in the list with a past shutdown date (13 of 20). Protocol pages list each field with type, required flag and default, and control-plane parameters carry enums and required flags (10 of 15). Examples in curl, Python, Node.js, Java and Go, and an error page listing 30 codes with HTTP status, cause and fix (14 of 15). Paths carry /v1, release notes are dated monthly from 7 April to 24 October 2026, and the control-plane API has a dated history of 26 releases to 18 September 2026 (14 of 15).
Agent ergonomics Tencent Cloud TokenHub +23
Baidu Qianfan 60
Output can be sized with max_tokens, max_completion_tokens, stop, thinking_budget and stream usage options, and prompt caching is priced (18 of 25). There are no list endpoints to page. Sizing and batch controls are the filters here, with an OpenAI-style Files and Batch interface listed in the docs navigation but not read (12 of 20). Errors return code, message and type with a separate error code page that was not read (12 of 20). No idempotency key was found, and seed gives best-effort determinism on some models (5 of 20). Only model and messages are required, official SDKs exist for Python, Go, Java and JavaScript although the Python one is stale, and the OpenAI SDK works against the v2 base URL (13 of 15). Total 60.
Tencent Cloud TokenHub 83
Router, read on the model lines. Function calling is marked on most chat models in the model list, with behaviour depending on the model routed (14 of 20). Structured output is marked per model and missing on the MiniMax and Qwen models, and an unsupported response_format returns code 400006 (12 of 15). Cache-hit prices are published per model, Kimi K3.1 Pro lists five-minute and one-hour cache writes, and a guide covers prompt_cache_key and the X-Session-ID header for instance affinity (14 of 15). Most listed chat models have contexts of one million tokens, a judgement call since a router has no default model (15). Batch at half price covers only Hy3 and Hy4 preview, reads and writes JSONL in the customer's own COS bucket and is documented for the Guangzhou endpoint (5 of 10). No TokenHub inference SDK. The OpenAI and Anthropic SDKs work with a changed base URL, and Tencent Cloud SDK 3.0 and the thcli CLI cover the control plane (8 of 10). Errors return a code, English and Chinese messages, the source, the upstream code and status and a request ID, and stream errors arrive as SSE error frames (15 of 15).
Payments & pricing Tencent Cloud TokenHub +23
Baidu Qianfan 30
No x402, MPP or L402 (0). Per-token prices are public without a login, in yuan (30). No free tier or trial was found on the pages read, and a promotional price is not a free allowance (0). Access needs a browser sign-up on Baidu AI Cloud and no keyless or programmatic route was found (0). Total 30.
Tencent Cloud TokenHub 53
No x402, MPP or L402 (0). Per-token prices for every model are public in CNY for Guangzhou and Singapore, with DeepSeek's peak and off-peak rates (20). Each account gets 1M free tokens per language model, valid for a year, in a campaign running to 31 December 2026. No card is mentioned, but the account needs real-name verification, so this line takes 15 of 20. A person signs up and completes real-name verification in a browser. Keys can then be created in code or by thcli auth login, but only from that account (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.
Security & auth Tencent Cloud TokenHub +16
Baidu Qianfan 55
API keys are bearer credentials that can be limited to chosen preset or custom endpoints and AppIDs, deleted, and viewed by role, but no rotation tooling was found and the SDK README calls a key permanently valid (25 of 30). Sub-account roles and per-endpoint key permissions give least privilege, and no confirmation step applies to an inference API (14 of 20). Chat output can carry untrusted content and no injection guidance was read. A content safety policy and intervention strategy sections exist in the docs navigation (5 of 15). Cloud audit integration, call detail queries and BCM monitoring are documented (11 of 15). No security.txt, bug bounty or certification was found in the pages read (0 of 20). Total 55.
Tencent Cloud TokenHub 71
Router, read on the model lines. Bearer keys can be limited to chosen models and inference services, up to 200 source IP ranges and daily, monthly or total token quotas, can be disabled or deleted, and can be created in code through CreateApiKey with signed Tencent Cloud credentials. Keys are long-lived with no expiry setting or built-in rotation (26 of 30). Clause 2.17 of the terms says inputs are not used to train Tencent Cloud's own models, and the FAQ says data is not used for training. Inputs to third-party deployed models (DeepSeek's directly supplied ones) go to DeepSeek under its terms (14 of 20). Clause 2.14 keeps data only as long as the service needs, with no periods stated. When a customer asks for generated content without AI labels, Tencent Cloud keeps logs of who received it for at least six months. No zero-retention option was found (7 of 15). Per-call audit logs (request ID, key, client IP, status, tokens, latency) and optional full call logs go to the customer's CLS, billed separately, with usage by key and a monitoring dashboard (14 of 15). No security.txt on cloud.tencent.com, www.tencent.com or tokenhub.tencentmaas.com (404). Tencent's bug bounty through TSRC lists Tencent Cloud in scope. No certification for TokenHub was checked (10 of 20).
Maintenance & community Tencent Cloud TokenHub +10
Baidu Qianfan 63
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). There are at least three dated model entries or retirement registrations in the last 90 days, among them 10 September, 24 September, 18 October, 22 October and 4 November 2026 (20). Support runs through a ticket system and a community forum, and answer times were not tested (8 of 15). The official SDK was last released in February 2025 and the OpenAI SDK route is the current one, so current official SDKs earn 5 of 15. The SDK repository has CI workflows, last changed in February 2025 (5 of 10). Departed from the checklist by 5 for churn, because 22 ERNIE models were registered on 24 September for retirement on 29 October. Total 63.
Tencent Cloud TokenHub 73
Closed service, read on the model lines. The newest release note is dated 24 October 2026 and the price page was updated on 31 October (30). The four retirement notices read gave 21 to 33 days, and eligible callers are switched to a successor at its price. No minimum notice period is written, and DeepSeek-V4.1-Flash (directly supplied) was moved to the 1017 version under the same ids on 17 October 2026 in a notice dated two days later (7 of 12). 18 retirement notices from 21 April to 22 October 2026, 12 of them since 3 August (3 of 8). Dated release notes and announcements, ticket and phone support around the clock and a Q&A community (13 of 15). Replies on the THCLI repository were not sampled (3 of 10). Tencent Cloud SDK 3.0 in several languages covers the control plane and tencent-tokenhub-cli 1.0.2 was published on 30 October 2026. No inference SDK of its own (12 of 15). The CLI has four releases since 15 September 2026, lists no runtime dependencies and needs Node.js 18 or later. CI not checked (5 of 10).
Reliability Tencent Cloud TokenHub +8
Baidu Qianfan 38
No status page was found on the pages read, and the health board link in the docs navigation was not followed (0). No readable incident history, so 5. Default requests and tokens a minute are published per model, and responses carry X-Ratelimit headers (15). Those headers show remaining quota refreshing in 0 to 60 seconds, but no Retry-After or backoff guidance was read, the error code pages were not read and no idempotency guidance was found (8 of 15). The service level agreement is linked in the docs navigation and its page did not load for our reader (0). The v2 API is generally available, although ERNIE-5.5-Flash-Preview is a preview model (10). Total 38.
Tencent Cloud TokenHub 46
Hosted reading. No public status page was found. status.cloud.tencent.com did not answer and the Tencent Cloud health dashboard documentation answered with a bot check (0). With no page there is no incident record to read (5 of 30). The announcements carry one incident, DeepSeek's directly supplied models unavailable from 9:06 to 13:04 Beijing time on 15 October 2026 after a fault at DeepSeek, compensated with vouchers. Rate limits are per model, shown in the console and returned by DescribeModelQuota. The public docs give numbers only for batch jobs (20 created a minute, 10 active), image models (5 concurrent) and DeepSeek V4 Flash and Pro (2,500 and 500 concurrent), with the rules for self-serve increases (8 of 15). Six 429 codes separate RPM, TPM, TPD, concurrency and upstream capacity, 429s may carry Retry-After and the docs advise exponential backoff. No idempotency guidance, though inference calls are not writes (13 of 15). The TokenHub SLA promises 99.5% monthly availability with vouchers of 10, 25 or 50 per cent of the month's fee. It excludes free use and third-party deployed models such as DeepSeek's directly supplied ones (10). Generally available since 7 April 2026, with some models marked preview (10).
Score by category
| Category | Weight | Baidu Qianfan | Tencent Cloud TokenHub | Edge |
|---|---|---|---|---|
| Reliability | 16% | 38 | 46 | Tencent Cloud TokenHub +8 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 47 | 73 | Tencent Cloud TokenHub +26 |
| Agent ergonomics | 13% | 60 | 83 | Tencent Cloud TokenHub +23 |
| Security & auth | 14% | 55 | 71 | Tencent Cloud TokenHub +16 |
| Payments & pricing | 10% | 30 | 53 | Tencent Cloud TokenHub +23 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 63 | 73 | Tencent Cloud TokenHub +10 |
| Transparency & trust | 7% | 55 | 54 | Baidu Qianfan +1 |
| Negative events | ≤15 | 0 | -3 | |
| Total | D 48.7/100 | C 61.7/100 |
Facts side by side
| Fact | Baidu Qianfan | Tencent Cloud TokenHub |
|---|---|---|
| Kind | Model API | Model router |
| Vendor | Baidu | Tencent Cloud |
| Hosted endpoint | https://qianfan.baidubce.com/v2 | https://tokenhub.tencentmaas.com/v1 |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Pay per use | Pay per use |
| x402 | no | no |
| Licence | Closed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0. | Proprietary service under the TokenHub Terms of Service, the TokenHub SLA and the Tencent Cloud Service Agreement, with a special note for third-party deployed models. The tencent-tokenhub-cli package is Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-10-18 | 2026-10-24 |
| Terms last updated | not read yet | couldn't be read |
| Privacy policy last updated | no document linked | couldn't be read |
| Customer content may train models | not read yet | couldn't be read |
| Terms restrict automated access | not read yet | couldn't be read |
| Terms restrict benchmarking | not read yet | couldn't be read |
| Terms or service can change without notice | not read yet | couldn't be read |
| Arbitration or class-action waiver | not read yet | couldn't be read |
| Popularity | none | 204 npm/wk |
How the scores have moved
Baidu Qianfan
No score change since it was listed.
Verdicts
Baidu Qianfan
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.
Tencent Cloud TokenHub
Keys can be limited to chosen models, source IPs and token quotas, errors name their source and code, and a 99.5% SLA covers paid use of models Tencent runs. Sign-up needs a Tencent Cloud account with real-name verification, prices are in CNY, no public status page was found, and 18 model retirement notices ran from April to October 2026.
Before you call either
Baidu Qianfan
- 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.
- If you get 429, wait before retrying. The X-Ratelimit-Remaining headers show whether requests, input tokens or output tokens ran out.
- 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.
- Set max_tokens or max_completion_tokens yourself. Both count thinking tokens, and thinking_budget caps the chain of thought.
- Check the retirement page before pinning a model. A retired model fails on both the v1 and v2 interfaces.
Tencent Cloud TokenHub
- Use
https://tokenhub.tencentmaas.com/v1with keys made for Guangzhou andhttps://tokenhub-intl.tencentmaas.com/v1with keys made for Singapore. Keys do not work across the two - Send the key as
Authorization: Beareron the OpenAI paths and asx-api-keyon/v1/messages - Parse
error.codeas a string or a number, since 429 codes can come back as integers, and wait forRetry-Afterbefore retrying - Take model ids from
GET /v1/modelsand watch forpre-offline. The quickstart'sdeepseek-v3example is not in the current model list - Expect DeepSeek prices to double on weekdays from 9am to noon and 2pm to 6pm Beijing time, when the peak rate applies
Questions
Which is better for AI agents, Baidu Qianfan or Tencent Cloud TokenHub?
Tencent Cloud TokenHub scores 61.7 (C) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in 6 of 7 scored categories.
Do Baidu Qianfan and Tencent Cloud TokenHub need an API key?
Both need an API key.
Can an agent call Baidu Qianfan and Tencent Cloud TokenHub without installing anything?
Yes. Baidu Qianfan has a hosted endpoint at https://qianfan.baidubce.com/v2 and Tencent Cloud TokenHub at https://tokenhub.tencentmaas.com/v1.
Other comparisons with Baidu Qianfan or Tencent Cloud TokenHub
- AI21 Jamba API vs Baidu Qianfan
- AI21 Jamba API vs Tencent Cloud TokenHub
- Amazon Bedrock vs Baidu Qianfan
- Amazon Bedrock vs Tencent Cloud TokenHub
- Claude API vs Baidu Qianfan
- Claude API vs Tencent Cloud TokenHub
- Antseed vs Baidu Qianfan
- Azure OpenAI in Foundry Models vs Baidu Qianfan
- Azure OpenAI in Foundry Models vs Tencent Cloud TokenHub
- BlockRun.AI vs Baidu Qianfan
- BlockRun.AI vs Tencent Cloud TokenHub
- Cerebras Inference vs Baidu Qianfan
- Cerebras Inference vs Tencent Cloud TokenHub
- Claude Fable 5.2 vs Baidu Qianfan
- Claude Fable 5.2 vs Tencent Cloud TokenHub
- Claude Mythos 5.2 vs Baidu Qianfan
- Claude Mythos 5.2 vs Tencent Cloud TokenHub
- Cloudflare AI Gateway vs Baidu Qianfan
- Cloudflare AI Gateway vs Tencent Cloud TokenHub
- Cloudflare Workers AI vs Baidu Qianfan
- Cloudflare Workers AI vs Tencent Cloud TokenHub
- Cohere Chat API (Command models) vs Baidu Qianfan
- Cohere Chat API (Command models) vs Tencent Cloud TokenHub
- DeepInfra vs Baidu Qianfan
- DeepInfra vs Tencent Cloud TokenHub
- DeepSeek API vs Baidu Qianfan
- DeepSeek API vs Tencent Cloud TokenHub
- DigitalOcean Serverless Inference vs Baidu Qianfan
- DigitalOcean Serverless Inference vs Tencent Cloud TokenHub
- Eden AI vs Baidu Qianfan
- Glimpse vs Baidu Qianfan
- Glimpse vs Tencent Cloud TokenHub
- Fireworks AI Inference vs Baidu Qianfan
- Fireworks AI Inference vs Tencent Cloud TokenHub
- Gemini 4 Argon vs Baidu Qianfan
- Gemini 4 Argon vs Tencent Cloud TokenHub
- Gemini 4 Carbon vs Baidu Qianfan
- Gemini 4 Carbon vs Tencent Cloud TokenHub
- Gemini 4 Hydrogen vs Baidu Qianfan
- Gemini 4 Hydrogen vs Tencent Cloud TokenHub
- Gemini 4 Neon vs Baidu Qianfan
- Gemini 4 Neon vs Tencent Cloud TokenHub
- Gemini Developer API vs Baidu Qianfan
- Gemini Developer API vs Tencent Cloud TokenHub
- GPT-6.2 Astra vs Baidu Qianfan
- GPT-6.2 Astra vs Tencent Cloud TokenHub
- GroqCloud vs Baidu Qianfan
- GroqCloud vs Tencent Cloud TokenHub
- Hugging Face Inference Providers vs Baidu Qianfan
- Tencent Hy4 vs Baidu Qianfan
- Tencent Hy4 vs Tencent Cloud TokenHub
- Jais 3 vs Baidu Qianfan
- Jais 3 vs Tencent Cloud TokenHub
- Meta Model API vs Baidu Qianfan
- Meta Model API vs Tencent Cloud TokenHub
- MiniMax API vs Baidu Qianfan
- MiniMax API vs Tencent Cloud TokenHub
- Mistral AI API vs Baidu Qianfan
- Mistral AI API vs Tencent Cloud TokenHub
- Muse Ember vs Baidu Qianfan
- Muse Ember vs Tencent Cloud TokenHub
- Muse Spark Open vs Baidu Qianfan
- Muse Spark Open vs Tencent Cloud TokenHub
- Nebius Token Factory vs Baidu Qianfan
- Nebius Token Factory vs Tencent Cloud TokenHub
- Nemotron 3.5 Super VL vs Baidu Qianfan
- Novita AI vs Baidu Qianfan
- Novita AI vs Tencent Cloud TokenHub
- OpenAI API vs Baidu Qianfan
- OpenAI API vs Tencent Cloud TokenHub
- OpenRouter vs Baidu Qianfan
- OpenRouter vs Tencent Cloud TokenHub
- Prism Inference vs Baidu Qianfan
- Baidu Qianfan vs Router.com (Ramp Router)
- Baidu Qianfan vs Beam 1.0
- Baidu Qianfan vs Reka API
- Baidu Qianfan vs RouterPlus
- Baidu Qianfan vs SambaCloud
- Baidu Qianfan vs SiliconFlow
- Baidu Qianfan vs Simplismart
- Baidu Qianfan vs StepFun API
- Baidu Qianfan vs SWE-2 Flash
- Baidu Qianfan vs Together AI Inference
- Baidu Qianfan vs Vercel AI Gateway
- Baidu Qianfan vs Vertex AI (Gemini Enterprise Agent Platform)
- Baidu Qianfan vs Writer Palmyra API
- Baidu Qianfan vs xAI API (Grok)
- Beam 1.0 vs Tencent Cloud TokenHub
- Reka API vs Tencent Cloud TokenHub
- SambaCloud vs Tencent Cloud TokenHub
- SiliconFlow vs Tencent Cloud TokenHub
- Simplismart vs Tencent Cloud TokenHub
- StepFun API vs Tencent Cloud TokenHub
- SWE-2 Flash vs Tencent Cloud TokenHub
- Tencent Cloud TokenHub vs Together AI Inference
- Tencent Cloud TokenHub vs Vertex AI (Gemini Enterprise Agent Platform)
- Tencent Cloud TokenHub vs Writer Palmyra API
- Tencent Cloud TokenHub vs xAI API (Grok)
- Antseed vs Tencent Cloud TokenHub
- Eden AI vs Tencent Cloud TokenHub
- Hugging Face Inference Providers vs Tencent Cloud TokenHub
- LiteLLM vs Tencent Cloud TokenHub
- Router.com (Ramp Router) vs Tencent Cloud TokenHub
- RouterPlus vs Tencent Cloud TokenHub
- Tencent Cloud TokenHub vs Vercel AI Gateway
- Nemotron 3.5 Super VL vs Tencent Cloud TokenHub
- Prism Inference vs Tencent Cloud TokenHub
Machine-readable
- This page as Markdown
/compare/qianfan-vs-tencent-tokenhub.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/qianfan.json·/api/v1/tools/tencent-tokenhub.json - From a terminal
anchor compare qianfan tencent-tokenhub(the CLI) - Over MCP
compare_tools {"a": "qianfan", "b": "tencent-tokenhub"}at/mcp, no key