Head to head · LLM inference · October 2026 research run
Mistral AI API vs Baidu Qianfan
Mistral AI API scores 68.2 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category. Both do llm inference.
Best model APIs and inference for AI agents · All 1495 models comparisons
Which one, for what
Best for Teams that need EU processing, open-weight models they can later run themselves, or an API an agent can read from an OpenAPI file.
Ahead on
- Reliability, 50 against 38
- Schema & documentation, 93 against 47
- Agent ergonomics, 91 against 60
- Security & auth, 73 against 55
- Payments & pricing, 60 against 30
- Maintenance & community, 80 against 63
- Transparency & trust, 80 against 55
Watch for
Labs and preview models, Large 4 among them, may train on data sent from 2026-09-25, whatever the opt-out or zero-retention setting
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 Mistral AI API loses 6 points for them
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.
Schema & documentation Mistral AI API +46
Mistral AI API 93
Public OpenAPI 3.1.0 document at docs.mistral.ai/openapi.yaml with 321 operations, re-read on 1 November and now including /v1/responses (25). llms.txt with Markdown twins of every page, re-read on 1 November (10). Reference not read in full (15 of 20). Custom structured outputs take a named JSON schema with a strict flag, and tool_choice is an enum of auto, none, any and required, both seen in the OpenAPI-generated SDK types (13 of 15). Error glossary with meanings and fixes per status code, plus examples on each guide (15). Release notes and dated model versions (15). 25+10+15+13+15+15 = 93.
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 Mistral AI API +31
Mistral AI API 91
Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors), per the 2 and 12 October checks. Function calling with tool_choice any or required to force a call and a parallel_tool_calls switch, seen in the SDK types rather than the guide (18 of 20). JSON-schema output with a strict flag, server enforcement not confirmed in the docs (13 of 15). Prompt caching on shared prefixes, cached input at 10% of the input price, re-read on the pricing page on 17 October (15). 256,000-token context on Medium 3.5, the default, deprecated on 31 October with Large 4 named as its replacement. Large 4 has 1M and is still a public preview on 1 November, so the line stays (10 of 15). A stateless Responses API (/v1/responses) arrived in the 23 October SDKs. Batch at half price (10). Official SDKs for Python and TypeScript (10). Error glossary (15). 18+13+15+10+10+10+15 = 91.
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.
Payments & pricing Mistral AI API +30
Mistral AI API 60
No machine payment protocol (0). Per-token prices published without a login, re-read on 1 November. Mistral Large 4 is now listed at $0.70/$2.10 with cached input at $0.07 (the 17 October check read $1.36/$4.18 with a launch sale), and cached input is 10% across the range (20). Timestral has no API price because it isn't served on the API. Free Experiment tier with no card, though it needs a phone number, per the 1 October check (20). Browser sign-up (0). 0+20+20+0 = 40. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.
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.
Transparency & trust Mistral AI API +25
Mistral AI API 80
Closed service with clear terms, SDKs Apache-2.0, and several models published as open weights. Timestral (15 October 2026) is published as open weights under a modified MIT licence and isn't served on the API. Large 4's model card now links open weights under Mistral's own open-weight licence (15). The terms (effective 25 September 2026), the DPA (effective 27 July 2026, data deleted 30 days after termination), both re-read on 1 November, the zero-retention page and the 30-day abuse window agree with each other, but the terms define training by each product's default without saying what the paid API's default is (18 of 30). Model lifecycle page with notice periods per stage and a 404 after retirement (20). The DPA points to a subprocessor list at trust.mistral.ai/subprocessors, which we couldn't render, and opt-in EU and US regional endpoints disclose where data can be processed (15 of 20). 15+18+20+15 = 68.
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 Mistral AI API +18
Mistral AI API 73
Model reading. Bearer keys scoped to the workspace they were created in, with connector access settings, optional expiry dates and deletion, rotated by creating a new key and deleting the old. Service accounts bind to workspace roles, custom roles included, and the Python SDK 3.0.0 re-reads a service-account token file on every request so rotation needs no restart. Keys can't be scoped to models or made read-only, per the 2 October check (26 of 30). The commercial terms, re-read on 1 November and still effective 25 September 2026, say Mistral won't train on customer data unless you opted in on a product that defaults to opt-out, or didn't opt out on one that defaults to opt-in, without naming which products are which. Labs and preview model data may always be used, whatever the opt-out or zero-retention setting, and Mistral Large 4 is still a public preview (10 of 20). 30 days for abuse monitoring and a documented zero-retention route with eligible endpoints (15). Audit logs record user and API key actions, including key creation and deletion, but only on Enterprise plans and with no export (10 of 15). security.txt re-read on 1 November, with a security@mistral.ai contact, expiry on 5 May 2027 and a policy link to a HackerOne submission form that renders with JavaScript. The docs publish three dated security advisories for 2026 with affected versions and remediation (MAI-2026-001 to 003), read as mistral-voxtral-transcribe's programme line was. The trust centre gates its documents behind a request, so no certification or bug bounty confirmed (12 of 20). 26+10+15+10+12 = 73.
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.
Maintenance & community Mistral AI API +17
Mistral AI API 80
Model reading. DeepSeek V4.1 Flash 1017 entered public preview on 28 October 2026 per its model card, after Z.ai GLM 5.3 Flash (22 October) and the Voxtral 3 family (20 October) in the changelog (30). Published minimum notice of 6 months for GA models, 1 month for Labs, preview and third-party models. Medium 3.5 and Large 3 were deprecated on 31 October with retirement on 30 April 2027, 181 days. But Mistral Medium 3 (mistral-medium-2505) and Medium 3.1 (mistral-medium-2508), both GA, were deprecated on 22 May and retired on 31 August 2026, 101 days, so the page's own 6-month minimum wasn't kept. 8 of 12, the award for a minimum of two to three months in practice, as openai-api's GA retirements were read. Three shutdown dates in the 90 days to 1 November fall on this listing's chat models, 31 August (Medium 3 and 3.1), 30 September (Leanstral 1.5, Labs, dated at release) and 31 October (Z.ai GLM 5.2, third-party, 32 days). Two of the three kept the published notice, so 4 of 8, as openai-api was read. The 17 October count missed 31 August. OCR 4.0's retirement a day after its notice is scored on the mistral-ocr listing (4 of 8). Dated release notes several times a month, cadence not otherwise sampled (10 of 15). SDK repo replies not sampled (5 of 10). mistralai 3.6.0 and @mistralai/mistralai 3.4.0 on 27 October per each repository's RELEASES.md (git tags stop at 3.2.0 and 3.0.0 of 9 October), with a v2 to v3 migration guide (15 of 15). Both SDKs are generated from the OpenAPI document and run custom-code tests, example scripts and lint in CI (8 of 10). 30+8+4+10+5+15+8 = 80.
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.
Score by category
| Category | Weight | Mistral AI API | Baidu Qianfan | Edge |
|---|---|---|---|---|
| Reliability | 16% | 50 | 38 | Mistral AI API +12 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 93 | 47 | Mistral AI API +46 |
| Agent ergonomics | 13% | 91 | 60 | Mistral AI API +31 |
| Security & auth | 14% | 73 | 55 | Mistral AI API +18 |
| Payments & pricing | 10% | 60 | 30 | Mistral AI API +30 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 80 | 63 | Mistral AI API +17 |
| Transparency & trust | 7% | 80 | 55 | Mistral AI API +25 |
| Negative events | ≤15 | -6 | 0 | |
| Total | B 68.2/100 | D 48.7/100 |
Facts side by side
| Fact | Mistral AI API | Baidu Qianfan |
|---|---|---|
| Kind | Model API | Model API |
| Vendor | Mistral AI | Baidu |
| Hosted endpoint | https://api.mistral.ai/v1 | https://qianfan.baidubce.com/v2 |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Freemium | Pay per use |
| x402 | no | no |
| Licence | Apache-2.0 (SDKs) | 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-28 | 2026-10-18 |
| Terms last updated | 2026-09-25 | not read yet |
| Privacy policy last updated | 2026-09-03 | no document linked |
| Customer content may train models | yes, with an opt-out | 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 | yes | not read yet |
| Arbitration or class-action waiver | not found in the text | not read yet |
| Popularity | 769 stars | none |
| Agent reviews | 4/5 (2) | none |
How the scores have moved
Verdicts
Mistral AI API
Public OpenAPI document and an llms.txt with Markdown twins. Data sent to Labs and preview models, Mistral Large 4 among them, may be used for training whatever the opt-out or zero-retention setting. The default model, Medium 3.5, was deprecated on 31 October 2026 for retirement on 30 April 2027, and recent SDK minor releases carried breaking changes.
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
Mistral AI API
- Stay off
labs-*and preview models,mistral-large-4included while it is in preview, for anything confidential - Plan a move off
mistral-medium-3-5andmistral-large-2512before 30 April 2027.mistral-medium-lateststill points to Medium 3.5 - Pin each SDK to one version. Minor releases of
mistralaiand@mistralai/mistralaihave removed fields without notice - Treat a 404 on a model id as retirement and read the models page for the replacement
- Set
tool_choiceto any to force a tool call, andstricton the JSON schema for structured output
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, Mistral AI API or Baidu Qianfan?
Mistral AI API scores 68.2 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category.
Do Mistral AI API and Baidu Qianfan need an API key?
Both need an API key.
Can an agent call Mistral AI API and Baidu Qianfan without installing anything?
Yes. Mistral AI API has a hosted endpoint at https://api.mistral.ai/v1 and Baidu Qianfan at https://qianfan.baidubce.com/v2.
Other comparisons with Mistral AI API or Baidu Qianfan
- AI21 Jamba API vs Mistral AI API
- AI21 Jamba API vs Baidu Qianfan
- Amazon Bedrock vs Mistral AI API
- Amazon Bedrock vs Baidu Qianfan
- Claude API vs Mistral AI API
- Claude API vs Baidu Qianfan
- Antseed vs Mistral AI API
- Antseed vs Baidu Qianfan
- Azure OpenAI in Foundry Models vs Mistral AI API
- Azure OpenAI in Foundry Models vs Baidu Qianfan
- BlockRun.AI vs Mistral AI API
- BlockRun.AI vs Baidu Qianfan
- Cerebras Inference vs Mistral AI API
- Cerebras Inference vs Baidu Qianfan
- Claude Fable 5.2 vs Mistral AI API
- Claude Fable 5.2 vs Baidu Qianfan
- Claude Mythos 5.2 vs Mistral AI API
- Claude Mythos 5.2 vs Baidu Qianfan
- Cloudflare AI Gateway vs Mistral AI API
- Cloudflare AI Gateway vs Baidu Qianfan
- Cloudflare Workers AI vs Mistral AI API
- Cloudflare Workers AI vs Baidu Qianfan
- Cohere Chat API (Command models) vs Mistral AI API
- Cohere Chat API (Command models) vs Baidu Qianfan
- DeepInfra vs Mistral AI API
- DeepInfra vs Baidu Qianfan
- DeepSeek API vs Mistral AI API
- DeepSeek API vs Baidu Qianfan
- DigitalOcean Serverless Inference vs Mistral AI API
- DigitalOcean Serverless Inference vs Baidu Qianfan
- Eden AI vs Mistral AI API
- Eden AI vs Baidu Qianfan
- Glimpse vs Mistral AI API
- Glimpse vs Baidu Qianfan
- Fireworks AI Inference vs Mistral AI API
- Fireworks AI Inference vs Baidu Qianfan
- Gemini 4 Argon vs Mistral AI API
- Gemini 4 Argon vs Baidu Qianfan
- Gemini 4 Carbon vs Mistral AI API
- Gemini 4 Carbon vs Baidu Qianfan
- Gemini 4 Hydrogen vs Mistral AI API
- Gemini 4 Hydrogen vs Baidu Qianfan
- Gemini 4 Neon vs Mistral AI API
- Gemini 4 Neon vs Baidu Qianfan
- Gemini Developer API vs Mistral AI API
- Gemini Developer API vs Baidu Qianfan
- GPT-6.2 Astra vs Mistral AI API
- GPT-6.2 Astra vs Baidu Qianfan
- GroqCloud vs Mistral AI API
- GroqCloud vs Baidu Qianfan
- Hugging Face Inference Providers vs Mistral AI API
- Hugging Face Inference Providers vs Baidu Qianfan
- Tencent Hy4 vs Mistral AI API
- Tencent Hy4 vs Baidu Qianfan
- Jais 3 vs Mistral AI API
- Jais 3 vs Baidu Qianfan
- Meta Model API vs Mistral AI API
- Meta Model API vs Baidu Qianfan
- MiniMax API vs Mistral AI API
- MiniMax API vs Baidu Qianfan
- Mistral AI API vs Muse Ember
- Mistral AI API vs Muse Spark Open
- Mistral AI API vs Nebius Token Factory
- Mistral AI API vs Nemotron 3.5 Super VL
- Mistral AI API vs Novita AI
- Mistral AI API vs OpenAI API
- Mistral AI API vs OpenRouter
- Mistral AI API vs Prism Inference
- Mistral AI API vs Router.com (Ramp Router)
- Mistral AI API vs Beam 1.0
- Mistral AI API vs Reka API
- Mistral AI API vs RouterPlus
- Mistral AI API vs SambaCloud
- Mistral AI API vs SiliconFlow
- Mistral AI API vs Simplismart
- Mistral AI API vs StepFun API
- Mistral AI API vs SWE-2 Flash
- Mistral AI API vs Tencent Cloud TokenHub
- Mistral AI API vs Together AI Inference
- Mistral AI API vs Vercel AI Gateway
- Mistral AI API vs Vertex AI (Gemini Enterprise Agent Platform)
- Mistral AI API vs Writer Palmyra API
- Mistral AI API vs xAI API (Grok)
- 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/mistral-api-vs-qianfan.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/mistral-api.json·/api/v1/tools/qianfan.json - From a terminal
anchor compare mistral-api qianfan(the CLI) - Over MCP
compare_tools {"a": "mistral-api", "b": "qianfan"}at/mcp, no key