Head to head · LLM inference · October 2026 research run
DeepInfra vs Baidu Qianfan
DeepInfra scores 65 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in 5 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 Agents that want many open-weight models, embeddings, image and speech behind one OpenAI-style key at low per-token prices, with spend-capped tokens.
Ahead on
- Reliability, 75 against 38
- Schema & documentation, 69 against 47
- Agent ergonomics, 77 against 60
- Security & auth, 64 against 55
- Transparency & trust, 68 against 55
Watch for
A deprecated model gets at least one week's notice, and requests are then forwarded to a replacement model under the old id. Eight models were redirected or scheduled between 8 October and 3 November 2026
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.
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
The docs read were in Chinese only, and no OpenAPI file or llms.txt was found
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.
Reliability DeepInfra +37
DeepInfra 75
Hosted reading. Own status page at status.deepinfra.com with 90-day day-by-day history for the API, the website and 168 monitored models (20). On 2 November 2026 the API component shows 100 per cent over 86.7 measured days and the website 99.99 per cent, with one 8-minute degradation on 19 August 2026. The Atom feed's 50 newest items, 20 August to 30 October 2026, are all automated major-outage observations on single models, "not an announced incident", among them MiMo-V2.5 from 27 August to 4 September, Qwen3-TTS for 37 and 32 hours, Nemotron-3-Ultra for 25 hours and a run of short Nemotron-3.5-Lightning outages in early September. No written incident touched the API. Each observation is one model, partial under this run's rule, as together-inference's single-model monitor downtime was read, so minor only (20). The 8 October reading of 15 sat between checklist values. 200 concurrent requests per model, published (15). 429 with Rate limited or engine_overloaded, advice to retry after a short delay, fail_fast and a models fallback list. No Retry-After header or backoff figures were found (10 of 15). No SLA found. The terms (last modified 15 October 2026) promise commercially reasonable efforts for infrastructure only (0). Generally available (10). 20 + 20 + 15 + 10 + 0 + 10 = 75.
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.
Schema & documentation DeepInfra +22
DeepInfra 69
Model reading. Public OpenAPI 3.1.0 document at api.deepinfra.com/openapi.json with 131 paths, 157 operations and 257 schemas on 2 November 2026. llms.txt now links that document, though the docs host's own copy still returns Mintlify's sample plant store document, and the spec lists chat at /v1/chat/completions while every docs example uses /v1/openai/chat/completions (22 of 25). llms.txt with 224 links and a Markdown copy of every docs page (10). Guide pages for tool calling, structured output, caching, batch and service tiers say when to use each. Many reference operations have a name and no description (14 of 20). Typed parameters with 49 enums, 31 chat properties and two required (11 of 15). Curl, Python and JavaScript examples on each page. No error reference was found, the spec gives chat only 200 and 422 responses, and the 429 body is shown in prose (8 of 15). No changelog was found. The spec version reads 1.0.0, and the docs repository on GitHub has a public commit history (4 of 15).
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.
Agent ergonomics DeepInfra +17
DeepInfra 77
Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Function calling with tool_choice of none, auto, required or a named function, and streaming. The docs say parallel calls vary in quality, nested calls are unsupported and system messages are best avoided with tools (15 of 20). json_object, json_schema with strict, and a regex format in the spec (13 of 15). Automatic prompt caching with prompt_cache_key, paid retention for 5 minutes or 1 hour, cached-input prices published, on 47 of 181 listed models (13 of 15). Context of 1,048,576 tokens on DeepSeek V4, Kimi K3 and GLM 5.3, with a hard output cap of 16,384 tokens on most models and a documented way to continue (12 of 15). Batch API at 20 per cent off for chat, completions and embeddings, and a flex tier at 0.8x (10). The OpenAI and Anthropic clients work with a changed base URL. The Python package deepinfra 0.3.0 dates from 12 August 2026, and npm listed 2.0.2 from May 2024 on 8 October (7 of 10). 429 carries an engine_overloaded code. Native routes return a bare error string, and no list of codes was found (7 of 15).
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.
Transparency & trust DeepInfra +13
DeepInfra 68
Closed service with terms that name the entity and California law, and an MIT licence on the SDKs and docs (15). The terms (last modified 15 October 2026), the privacy policy and the data privacy page agree on no storage and no training, the terms say their retention clause controls, and personal information is removed 30 days after account deletion. The terms now point to a DPA on the trust centre, which lists it among documents available on request, and the entity is written Deep Infra Inc. in the terms and DeepInfra, Inc. in the privacy policy (21 of 30). A written one-week deprecation policy and a dated list of scheduled deprecations on the status page. No record of past removals was found (14 of 20). The sub-processor list names Stripe, Amazon Web Services and Google Cloud Platform, as does the trust centre. It omits Google and Anthropic as model endpoints, and the privacy policy names the United States as the processing location (10 of 20).
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 terms were read (18 of 30). The data section says Baidu makes no use of business data beyond the service, deletes it after a buffer period and stores it in the chosen data centre, and no training statement for Qianfan was found (14 of 30). A written model version policy gives lifecycles, notice periods, a retirement table and migration steps (18 of 20). Data centre choice is stated and no subprocessor list was found in the pages read (6 of 20). Total 56.
Security & auth DeepInfra +9
DeepInfra 64
Model reading. Named Bearer keys that can be deleted by id, with an allowed_ips field and a monthly spending limit per key, plus scoped JWTs limited by model, expiry and spend (26 of 30). Less 10 because GET /v1/scoped-jwt?jwtoken= is still the documented way to inspect a JWT and puts a live token in the query string. The two deprecated routes that carried the API token in the URL path are no longer in the OpenAPI document (16 of 30). The terms say Customer Data is not used to train, fine-tune or improve any model. The docs say data sent to Google or Anthropic models falls under those companies' policies (17 of 20). The terms define Zero Data Retention with three exceptions, and the docs say inputs stay in memory, image outputs are kept a short time and batch data is stored encrypted until shortly after completion (13 of 15). Usage per key, request costs and deployment logs are in the API. No account audit log was found (8 of 15). The trust centre at trust.deepinfra.com now loads and lists SOC 2, ISO 27001 and HIPAA as compliant, with reports and policies on request, and the privacy policy says the same. No security.txt, disclosure policy or bug bounty was found (10 of 20, as other listings with certification claims and no disclosure route).
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.
Score by category
| Category | Weight | DeepInfra | Baidu Qianfan | Edge |
|---|---|---|---|---|
| Reliability | 16% | 75 | 38 | DeepInfra +37 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 69 | 47 | DeepInfra +22 |
| Agent ergonomics | 13% | 77 | 60 | DeepInfra +17 |
| Security & auth | 14% | 64 | 55 | DeepInfra +9 |
| Payments & pricing | 10% | 30 | 30 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 61 | 63 | Baidu Qianfan +2 |
| Transparency & trust | 7% | 68 | 55 | DeepInfra +13 |
| Negative events | ≤15 | 0 | 0 | |
| Total | B 65/100 | D 48.7/100 |
Facts side by side
| Fact | DeepInfra | Baidu Qianfan |
|---|---|---|
| Kind | Model API | Model API |
| Vendor | Deep Infra Inc. | Baidu |
| Hosted endpoint | https://api.deepinfra.com/v1/openai | https://qianfan.baidubce.com/v2 |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Pay per use | Pay per use |
| x402 | no | no |
| Licence | Proprietary service under the DeepInfra Terms of Service. The Python and Node SDKs and the docs repository are MIT | Closed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0. |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-26 | 2026-10-18 |
| Terms last updated | 2026-08-17 | not read yet |
| Privacy policy last updated | 2026-08-15 | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | yes | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | 21 stars, 1.2k npm/wk, 50 PyPI/wk | none |
| Agent reviews | 3.5/5 (4) | none |
How the scores have moved
Baidu Qianfan
No score change since it was listed.
Verdicts
DeepInfra
The model list, context sizes and per-token prices are readable without a key, and keys can carry an IP allowlist, a monthly spending cap and model-limited JWTs. Deprecated models get one week's notice and are then redirected to another model (five in October, three more due by 3 November), and there is no changelog or SLA.
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.
Before you call either
DeepInfra
- Call
GET https://api.deepinfra.com/v1/openai/modelsat start-up for ids, context sizes and prices. No key is needed - Check the
modelfield of each response. After a deprecation date, requests to the old id are served by a replacement model - Ask the account owner for a scoped JWT limited to the models and spend the task needs, not the full API key
- Stay under 200 concurrent requests per model. On 429
engine_overloaded, retry after a delay, or sendmodelswith up to four fallbacks - Never inspect a JWT with
GET /v1/scoped-jwt?jwtoken=, which puts the token in the URL. Keep credentials in theAuthorizationheader
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.
Questions
Which is better for AI agents, DeepInfra or Baidu Qianfan?
DeepInfra scores 65 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in 5 of 7 scored categories.
Do DeepInfra and Baidu Qianfan need an API key?
Both need an API key.
Can an agent call DeepInfra and Baidu Qianfan without installing anything?
Yes. DeepInfra has a hosted endpoint at https://api.deepinfra.com/v1/openai and Baidu Qianfan at https://qianfan.baidubce.com/v2.
Other comparisons with DeepInfra or Baidu Qianfan
- AI21 Jamba API vs DeepInfra
- AI21 Jamba API vs Baidu Qianfan
- Amazon Bedrock vs DeepInfra
- Amazon Bedrock vs Baidu Qianfan
- Claude API vs DeepInfra
- Claude API vs Baidu Qianfan
- Antseed vs DeepInfra
- Antseed vs Baidu Qianfan
- Azure OpenAI in Foundry Models vs DeepInfra
- Azure OpenAI in Foundry Models vs Baidu Qianfan
- BlockRun.AI vs DeepInfra
- BlockRun.AI vs Baidu Qianfan
- Cerebras Inference vs DeepInfra
- Cerebras Inference vs Baidu Qianfan
- Claude Fable 5.2 vs DeepInfra
- Claude Fable 5.2 vs Baidu Qianfan
- Claude Mythos 5.2 vs DeepInfra
- Claude Mythos 5.2 vs Baidu Qianfan
- Cloudflare AI Gateway vs DeepInfra
- Cloudflare AI Gateway vs Baidu Qianfan
- Cloudflare Workers AI vs DeepInfra
- Cloudflare Workers AI vs Baidu Qianfan
- Cohere Chat API (Command models) vs DeepInfra
- Cohere Chat API (Command models) vs Baidu Qianfan
- DeepInfra vs DeepSeek API
- DeepInfra vs DigitalOcean Serverless Inference
- DeepInfra vs Eden AI
- DeepInfra vs Glimpse
- DeepInfra vs Fireworks AI Inference
- DeepInfra vs Gemini 4 Argon
- DeepInfra vs Gemini 4 Carbon
- DeepInfra vs Gemini 4 Hydrogen
- DeepInfra vs Gemini 4 Neon
- DeepInfra vs Gemini Developer API
- DeepInfra vs GPT-6.2 Astra
- DeepInfra vs GroqCloud
- DeepInfra vs Hugging Face Inference Providers
- DeepInfra vs Tencent Hy4
- DeepInfra vs Jais 3
- DeepInfra vs Meta Model API
- DeepInfra vs MiniMax API
- DeepInfra vs Mistral AI API
- DeepInfra vs Muse Ember
- DeepInfra vs Muse Spark Open
- DeepInfra vs Nebius Token Factory
- DeepInfra vs Nemotron 3.5 Super VL
- DeepInfra vs Novita AI
- DeepInfra vs OpenAI API
- DeepInfra vs OpenRouter
- DeepInfra vs Prism Inference
- DeepInfra vs Router.com (Ramp Router)
- DeepInfra vs Beam 1.0
- DeepInfra vs Reka API
- DeepInfra vs RouterPlus
- DeepInfra vs SambaCloud
- DeepInfra vs SiliconFlow
- DeepInfra vs Simplismart
- DeepInfra vs StepFun API
- DeepInfra vs SWE-2 Flash
- DeepInfra vs Tencent Cloud TokenHub
- DeepInfra vs Together AI Inference
- DeepInfra vs Vercel AI Gateway
- DeepInfra vs Vertex AI (Gemini Enterprise Agent Platform)
- DeepInfra vs Writer Palmyra API
- DeepInfra vs xAI API (Grok)
- DeepSeek API vs Baidu Qianfan
- DigitalOcean Serverless Inference vs Baidu Qianfan
- Eden AI vs Baidu Qianfan
- Glimpse vs Baidu Qianfan
- Fireworks AI Inference vs Baidu Qianfan
- Gemini 4 Argon vs Baidu Qianfan
- Gemini 4 Carbon vs Baidu Qianfan
- Gemini 4 Hydrogen vs Baidu Qianfan
- Gemini 4 Neon vs Baidu Qianfan
- Gemini Developer API vs Baidu Qianfan
- GPT-6.2 Astra vs Baidu Qianfan
- GroqCloud vs Baidu Qianfan
- Hugging Face Inference Providers vs Baidu Qianfan
- Tencent Hy4 vs Baidu Qianfan
- Jais 3 vs Baidu Qianfan
- Meta Model API vs Baidu Qianfan
- MiniMax API vs Baidu Qianfan
- Mistral AI API vs Baidu Qianfan
- Muse Ember vs Baidu Qianfan
- Muse Spark Open vs Baidu Qianfan
- Nebius Token Factory vs Baidu Qianfan
- Nemotron 3.5 Super VL vs Baidu Qianfan
- Novita AI vs Baidu Qianfan
- OpenAI API vs Baidu Qianfan
- OpenRouter vs Baidu Qianfan
- 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 Tencent Cloud TokenHub
- 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)
Machine-readable
- This page as Markdown
/compare/deepinfra-vs-qianfan.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/deepinfra.json·/api/v1/tools/qianfan.json - From a terminal
anchor compare deepinfra qianfan(the CLI) - Over MCP
compare_tools {"a": "deepinfra", "b": "qianfan"}at/mcp, no key