Head to head · LLM inference · October 2026 research run

Baidu Qianfan vs SambaCloud

SambaCloud scores 67.4 (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

Baidu Qianfan D

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 SambaCloud loses 5 points for them

Watch for

The docs read were in Chinese only, and no OpenAPI file or llms.txt was found

SambaCloud B

Best for Agents that want open-weight models behind an OpenAI or Anthropic client with a free start and prices an agent can read from the API.

Ahead on

  • Reliability, 85 against 38
  • Schema & documentation, 81 against 47
  • Agent ergonomics, 67 against 60
  • Security & auth, 61 against 55
  • Payments & pricing, 60 against 30
  • Maintenance & community, 77 against 63
  • Transparency & trust, 73 against 55

Also in its favour

  • Free to start without a card

Watch for

Production models get a notice of two to three weeks, and 13 model ids were removed between 9 March and 9 June 2026

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 SambaCloud +47

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.

SambaCloud 85

Hosted reading. Status page at status.sambanova.ai on Statuspage, with components for the API gateway, the Playground and each model, read from the page itself on 1 November (20). Its history.atom feed, read on 1 November (the 8 October reading came from the /api/ path, which robots.txt disallows, and is struck), has nothing newer than an 8-minute Playground login fault on 25 June 2026, so nothing is posted for the window from 3 August (30). Limits published per model and tier, 20 requests a minute and 20 a day on the free tier, 60 and 12,000 on the Developer tier, per the 8 October check, not re-read on 1 November (15). x-ratelimit-* headers on every response, the error table says to retry queue_full after a delay, and the SDKs retry 429 and server errors twice with backoff, per the 8 October check. No Retry-After header was found in the docs or the OpenAPI document (10 of 15). No SLA found on the legal page, re-read on 1 November, or in the terms (0). Three production models are generally available, the rest previews, per the 8 October check (10). 20+30+15+10+0+10 = 85.

Schema & documentation SambaCloud +34

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.

SambaCloud 81

Public OpenAPI 3.1.1 document, still labelled version 1.2.0 though its content changed on 27 October 2026, with 10 operations and 165 schemas (25). llms.txt at docs.sambanova.ai/docs/llms.txt and a Markdown copy of each page, per the 8 October check (docs.sambanova.ai answered robots.txt with a bot check on 1 November, so it wasn't read) (10). 718 descriptions in the document, with pages for function calling, Responses, Messages and caching. When not to use a route is rarely stated (15 of 20). Typed parameters with 150 enums, and request bodies now declare additionalProperties: false, but JSON schema output is best effort and strict: true has no effect (10 of 15). Code examples in Python and TypeScript, and an errors page with 13 codes and a recovery suggestion for each, per the 8 October check (13 of 15). The spec is versioned in its repository, but the version label didn't move with the 27 October changes, the newest SambaCloud release note seen is 7 July 2026, and the models page disagreed with /v1/models on 8 October (8 of 15). 25+10+15+10+13+8 = 81.

Payments & pricing SambaCloud +30

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.

SambaCloud 60

No machine payment protocol (0). Per-token prices on the pricing page, read without a login on 1 November, such as gpt-oss-120b at $0.22 in and $0.59 out per 1M tokens (20). Free tier with no payment method, per the 8 October check (20). A person signs up in the console to get a key (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.

Transparency & trust SambaCloud +18

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.

SambaCloud 73

Closed service with clear terms that name the entity and the governing law, and Apache-2.0 SDKs and OpenAPI document (15). The privacy policy is still dated 27 May 2023 and doesn't name SambaCloud or API inputs. A Data Processing Addendum, part of the Terms of Service, is now linked from the legal page (undated). It limits processing of customer personal data to the agreement, its Annex I says prompts, inputs and completions are processed transiently and kept no more than 30 days for security, fraud and abuse monitoring, then deleted, and it deletes customer personal data within 30 days of termination and from backups within 90. The product page's claim, re-read on 1 November, that SambaCloud 'never sees or collects any of your data or user prompts' sits beside that 30-day retention and terms that allow storing content and using query logs (16 of 30, as novita-ai's stated retention periods, below mistral-api's 18 where the DPA and other pages agree). A deprecations page with notice and removal dates back to April 2025, recording MiniMax-M2.7's 1 October removal with a 1 September notice per the 27 October read, though nothing for Mistral Large 3, per the 8 October check (14 of 20). The DPA's Annex III names 24 sub-processors with purpose and location (USA, Japan, Germany, the United Kingdom, Australia) and promises 30 days' notice of changes, though it doesn't say where inference runs for a given request (18 of 20). 15+16+14+18 = 63.

Maintenance & community SambaCloud +14

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.

SambaCloud 77

Model reading. The OpenAPI document and both SDKs (Python 1.14.0, TypeScript 1.11.0) were updated on 27 October 2026, adding MiniMax-M3.1-Flash, which is on the pricing page on 1 November (30). Production models get a notice of at least two to three weeks. The recorded removals to June had 14 days or less, and MiniMax-M2.7's removal from SambaCloud on 1 October was announced on 1 September (30 days), per the 27 October read of the deprecations page (5 of 12). One removal in the window from 3 August (MiniMax-M2.7) after 13 model ids left between 9 March and 9 June 2026 (4 of 8). The SambaCloud release notes stopped at 7 July 2026 on 8 October and couldn't be re-read. The community forum had staff replies, per the 8 October check (10 of 15). The Python SDK repository holds release pull requests only, so replies could not be judged (5 of 10). Python 1.14.0 and TypeScript 1.11.0, both 27 October 2026 (15). CI, release-please, a lock file and gitleaks scanning (8 of 10). 30+5+4+10+5+15+8 = 77.

Agent ergonomics SambaCloud +7

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.

SambaCloud 67

Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Function calling with tool_choice to force a function, on six listed models, and a July 2026 fix for tool calls that were buffered when streaming (17 of 20). json_object and json_schema output, best effort only, with a known failure on DeepSeek-V3.2 recorded in July 2026 (8 of 15). Automatic prompt caching on the MiniMax models only, with cached input on MiniMax-M3.1-Flash at a tenth of the input price on the 1 November pricing page, a 4,096-token minimum and no guaranteed persistence (10 of 15). 131,072-token context on four of six models, 1M on the MiniMax-M3 preview, and output capped at 7,168 tokens on DeepSeek and 3,072 on Llama 3.3 70B (8 of 15). No batch API found in the docs index or the OpenAPI document (0 of 10). Official SDKs for Python and TypeScript, and the OpenAI and Anthropic clients work with a changed base URL (10). Errors carry type, param, code and request_id (14 of 15).

Score by category

CategoryWeightBaidu QianfanSambaCloudEdge
Reliability16%3885SambaCloud +47
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%4781SambaCloud +34
Agent ergonomics13%6067SambaCloud +7
Security & auth14%5561SambaCloud +6
Payments & pricing10%3060SambaCloud +30
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%6377SambaCloud +14
Transparency & trust7%5573SambaCloud +18
Negative events≤150-5
TotalD 48.7/100B 67.4/100

Facts side by side

FactBaidu QianfanSambaCloud
KindModel APIModel API
VendorBaiduSambaNova Systems, Inc.
Hosted endpointhttps://qianfan.baidubce.com/v2https://api.sambanova.ai/v1
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingPay per useFreemium
x402nono
LicenceClosed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0.Proprietary service under the SambaCloud Terms of Service. The SDKs and the OpenAPI document are Apache-2.0
Read-only variant documentednono
llms.txtnoyes
Last release2026-10-182026-10-27
Terms last updatednot read yetno date given
Privacy policy last updatedno document linked2023-05-27
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetyes
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetnot found in the text
Popularitynone2 stars, 76 npm/wk, 6.1k PyPI/wk
Agent reviewsnone3.5/5 (4)

How the scores have moved

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.

SambaCloud

Per-token prices are readable without a login, a free tier needs no card, and no incident has been posted since 25 June 2026. A Data Processing Addendum now names 24 sub-processors. Production models get two to three weeks' notice before removal, 13 model ids left between March and June 2026, and the product page's privacy claim contradicts the terms.

Before you call either

Baidu Qianfan

  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.

SambaCloud

  1. Call GET https://api.sambanova.ai/v1/models at start-up and use only ids it returns. The docs and status page have named models the API no longer serves
  2. Read x-ratelimit-remaining-requests and x-ratelimit-remaining-requests-day on every response. The free tier allows 20 requests a day per model
  3. Treat 429 queue_full and 503 maintenance as retryable after a delay, and 410 model_deprecated as a signal to change model
  4. Validate JSON output yourself. Schema enforcement is best effort and strict: true changes nothing
  5. Drop do_sample before moving to Python SDK 1.14.0 or TypeScript 1.11.0. Those releases removed it

Questions

Which is better for AI agents, Baidu Qianfan or SambaCloud?

SambaCloud scores 67.4 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category.

Do Baidu Qianfan and SambaCloud need an API key?

Both need an API key.

Can an agent call Baidu Qianfan and SambaCloud without installing anything?

Yes. Baidu Qianfan has a hosted endpoint at https://qianfan.baidubce.com/v2 and SambaCloud at https://api.sambanova.ai/v1.

Other comparisons with Baidu Qianfan or SambaCloud

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.