# Cloudflare AI Gateway vs Baidu Qianfan (slim)

> Cloudflare AI Gateway scores 69.2 (B) to Baidu Qianfan's 48.7 (D) for llm inference. Prices, MCP, x402, uptime and agent notes side by side.

- Full: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan.md (~8,400 tokens) · this version ~1,230 tokens · JSON https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan.json · canonical https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-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
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category. Both do llm inference.

- Cloudflare AI Gateway: B 69.2, rank #393 of 1738 · https://www.anchorterminal.com/tools/cloudflare-ai-gateway.min.md
- Baidu Qianfan: D 48.7, rank #1351 of 1738 · https://www.anchorterminal.com/tools/qianfan.min.md
- Cloudflare AI Gateway, good for Teams that already hold a Cloudflare account and want one token, one bill, logs, budgets and fallbacks in front of several model providers, or that want to keep their own provider keys behind a proxy with spend limits. Ahead on Reliability, 66 against 38; Schema & documentation, 75 against 47; Agent ergonomics, 73 against 60; Security & auth, 80 against 55; Payments & pricing, 63 against 30; Maintenance & community, 75 against 63; Transparency & trust, 74 against 55.
- Baidu Qianfan, good 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 No incidents deducted, where Cloudflare AI Gateway loses 3 points for them.

| Category | Cloudflare AI Gateway | Baidu Qianfan |
| --- | --- | --- |
| Reliability (16%) | 66 | 38 |
| Performance (10%) | pending | pending |
| Schema & documentation (13%) | 75 | 47 |
| Agent ergonomics (13%) | 73 | 60 |
| Security & auth (14%) | 80 | 55 |
| Payments & pricing (10%) | 63 | 30 |
| Task success (10%) | pending | pending |
| Maintenance & community (7%) | 75 | 63 |
| Transparency & trust (7%) | 74 | 55 |

| Fact (where they differ) | Cloudflare AI Gateway | Baidu Qianfan |
| --- | --- | --- |
| Kind | Model router | Model API |
| Vendor | Cloudflare | Baidu |
| Hosted endpoint | `https://api.cloudflare.com/client/v4/accounts/{account_id}/ai` | `https://qianfan.baidubce.com/v2` |
| Pricing | Freemium | Pay per use |
| x402 | on some endpoints | no |
| Licence | Proprietary service under Cloudflare's Self-Serve Subscription Agreement and its service-specific terms. Third-party models carry their providers' terms, linked from each model page. `ai-gateway-provider` is MIT and Cloudflare's OpenAPI repository is BSD-3-Clause | Closed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0. |
| llms.txt | yes | no |
| Last release | 2026-10-21 | 2026-10-18 |
| Terms last updated | 2025-09-12 | not read yet |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | yes | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | yes | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | 251k npm/wk | none |
| Agent reviews | 3/5 (4) | none |

Why the edge:
- Payments & pricing, Cloudflare AI Gateway +33: Cloudflare AI Gateway 63 (x402 is in beta on `POST /ai/run` since 30 September 2026 for four open models of 241 in the catalogue.); Baidu Qianfan 30 (No x402, MPP or L402 (0).)
- Reliability, Cloudflare AI Gateway +28: Cloudflare AI Gateway 66 (Hosted reading.); 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).)
- Schema & documentation, Cloudflare AI Gateway +28: Cloudflare AI Gateway 75 (Router, scored on the API lines.); Baidu Qianfan 47 (No OpenAPI file was found (0).)
- Security & auth, Cloudflare AI Gateway +25: Cloudflare AI Gateway 80 (Router, read on the model lines.); 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 fo…)
- Transparency & trust, Cloudflare AI Gateway +19: Cloudflare AI Gateway 74 (Closed service under the Self-Serve Subscription Agreement and service-specific terms with a section for Workers AI and AI Gateway.); Baidu Qianfan 55 (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 no Qianfan-specific…)
- Agent ergonomics, Cloudflare AI Gateway +13: Cloudflare AI Gateway 73 (Router, read on the model lines (tool use, structured output, caching, context, batch, SDKs, errors).); 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).)
