Head to head · LLM inference · October 2026 research run
Baidu Qianfan vs StepFun API
Baidu Qianfan scores 48.7 (D) on agent readiness against StepFun API's 45.6 (E), and leads in 3 of 7 scored categories. StepFun API leads on schema & documentation and agent ergonomics. 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.
Ahead on
- Reliability, 38 against 28
- Security & auth, 55 against 41
- Maintenance & community, 63 against 50
Watch for
The docs read were in Chinese only, and no OpenAPI file or llms.txt was found
Best for Long-context agent and coding work over text, screenshots and video at a low per-token price, where a preview model is acceptable.
Ahead on
- Schema & documentation, 53 against 47
- Agent ergonomics, 68 against 60
Watch for
Step 5 Preview is labelled a preview, and no release date or support commitment 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.
Security & auth Baidu Qianfan +14
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.
StepFun API 41
StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. Model reading. Bearer API keys, revocable by deletion. Organisations can create one key per project, billed to a project's credit with a per-member cap. No scopes or read-only keys found (20 of 30). Training on API data is not off by default in plain words. The privacy policy (effective 7 August 2026) says StepFun may use and retain data to improve its models, including training and fine-tuning where law and program terms permit, and the terms name early-access programmes as one such case. No opt-out found (5 of 20). No retention period for prompts and outputs and no zero-retention option. IP addresses are kept three years (3 of 15). The console's usage details list each billed call by key, model and date, with export (8 of 15). No security.txt, bug bounty or certification found. A DPA with breach notification exists (5 of 20). 20+5+3+8+5 = 41.
Maintenance & community Baidu Qianfan +13
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.
StepFun API 50
StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. Model reading. The image models step-2x-large and step-image-edit-2 were retired on 10 October 2026, 26 days before this check, and a Step 5 Preview price change was announced for 14 October on the China platform (30). No stated notice period. The 10 October image retirement had a dated notice page and the July retirements a migration table, but we couldn't date when either notice went up (4 of 12). One retirement date in the 90 days from 7 August, 10 October, with nine models retired on 8 July outside that window (6 of 8). Dated announcements, a Discord server and platform@stepfun.com for support. We didn't test whether either answers (10 of 15). No official SDK (0 of 15, 0 of 10). 30+4+6+10+0+0 = 50.
Reliability Baidu Qianfan +10
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.
StepFun API 28
StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. No status page read. status.stepfun.ai refused our reader by robots.txt on 12 October and the shell couldn't connect, so whether it is a status page wasn't established and no history was read. Scored absent for both lines, with 5 for unreadable history (0 + 5). Rate limits published with numbers per tier, from 5 concurrent, 100 RPM and 500,000 TPM to 130, 2,600 and 13,000,000 (15). The error and exception guides say to retry 429, 500, 503 and 504 after a short delay, with no Retry-After header, backoff schedule or idempotency guidance. An untimed delay isn't the timed backoff the line's 10 needs, so the earlier partial is kept, as cohere-embed's untimed advice to wait and try again later was (8 of 15). No SLA found in the terms or pricing (0). Step 5 Preview is labelled a preview (0). 0+5+15+8+0+0 = 28.
Agent ergonomics StepFun API +8
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.
StepFun API 68
StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Tool calls through Chat Completions, Responses and Messages, with no documented way to force or forbid a call (15 of 20). Strict JSON Schema output on Step 5 Preview (13 of 15). Prompt caching with a published cache-hit price at a tenth of the miss price (15). 1M-token context and 64k output (15). No batch endpoint found (0). No official SDK. The docs use the OpenAI and Anthropic clients against compatible endpoints (0). Eight error codes with a fix each, plus finish_reason handling for length, content filter and tool calls (10 of 15). 15+13+15+15+0+0+10 = 68.
Schema & documentation StepFun API +6
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.
StepFun API 53
StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. No OpenAPI or similar machine-readable contract found. The API reference is Markdown pages (0). llms.txt at platform.stepfun.ai/docs/llms.txt, and every page has a Markdown copy (10). The Chat Completions reference describes each parameter with its default, and the model page lists what Step 5 Preview supports, but little on when not to use an option (12 of 20). Tool definitions take JSON Schema parameters, structured output takes a JSON Schema with strict: true, and reasoning_effort is an enum of low, medium and high. No tool_choice parameter is documented (11 of 15). Worked requests and responses on each page, and an error table of eight codes with causes and fixes, but no error bodies (12 of 15). No API changelog. A model lifecycle page with dated retirements and announcement pages (8 of 15). 0+10+12+11+12+8 = 53.
Score by category
| Category | Weight | Baidu Qianfan | StepFun API | Edge |
|---|---|---|---|---|
| Reliability | 16% | 38 | 28 | Baidu Qianfan +10 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 47 | 53 | StepFun API +6 |
| Agent ergonomics | 13% | 60 | 68 | StepFun API +8 |
| Security & auth | 14% | 55 | 41 | Baidu Qianfan +14 |
| Payments & pricing | 10% | 30 | 30 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 63 | 50 | Baidu Qianfan +13 |
| Transparency & trust | 7% | 55 | 57 | StepFun API +2 |
| Negative events | ≤15 | 0 | 0 | |
| Total | D 48.7/100 | E 45.6/100 |
Facts side by side
| Fact | Baidu Qianfan | StepFun API |
|---|---|---|
| Kind | Model API | Model API |
| Vendor | Baidu | StepFun |
| Hosted endpoint | https://qianfan.baidubce.com/v2 | https://api.stepfun.ai/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. | Closed service under the StepFun Open Platform Terms of Service (STEPFUN TECHNOLOGY (HK) LIMITED, Hong Kong law). |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-10-18 | none |
| 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 |
| Agent reviews | none | 3.3/5 (4) |
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.
StepFun API
StepFun's API serves Step 5 Preview with a 1M-token context, video input, strict JSON Schema output and published per-token prices, documented in Markdown with an llms.txt. The model is a preview with no release date found, there's no free allowance or SLA, and the terms and privacy policy leave room to train on customer data.
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.
StepFun API
- Set
max_tokensyourself. It defaults to unlimited on Step 5 Preview, and reasoning tokens are billed as output - Use
response_formatwithtype: json_schemaandstrict: truewhen the shape matters. JSON Mode alone isn't schema-checked - Back off and retry on 429, 500, 503 and 504. The docs give no Retry-After header or backoff schedule
- Expect HTTP 451 or
finish_reason: content_filterwhen content fails StepFun's review, and don't retry the same input - Use api.stepfun.ai for the international platform. api.stepfun.com is the China platform with yuan pricing
Questions
Which is better for AI agents, Baidu Qianfan or StepFun API?
Baidu Qianfan scores 48.7 (D) on agent readiness against StepFun API's 45.6 (E), and leads in 3 of 7 scored categories. StepFun API leads on schema & documentation and agent ergonomics.
Do Baidu Qianfan and StepFun API need an API key?
Both need an API key.
Can an agent call Baidu Qianfan and StepFun API without installing anything?
Yes. Baidu Qianfan has a hosted endpoint at https://qianfan.baidubce.com/v2 and StepFun API at https://api.stepfun.ai/v1.
Other comparisons with Baidu Qianfan or StepFun API
- AI21 Jamba API vs Baidu Qianfan
- AI21 Jamba API vs StepFun API
- Amazon Bedrock vs Baidu Qianfan
- Amazon Bedrock vs StepFun API
- Claude API vs Baidu Qianfan
- Claude API vs StepFun API
- Antseed vs Baidu Qianfan
- Antseed vs StepFun API
- Azure OpenAI in Foundry Models vs Baidu Qianfan
- Azure OpenAI in Foundry Models vs StepFun API
- BlockRun.AI vs Baidu Qianfan
- BlockRun.AI vs StepFun API
- Cerebras Inference vs Baidu Qianfan
- Cerebras Inference vs StepFun API
- Claude Fable 5.2 vs Baidu Qianfan
- Claude Fable 5.2 vs StepFun API
- Claude Mythos 5.2 vs Baidu Qianfan
- Claude Mythos 5.2 vs StepFun API
- Cloudflare AI Gateway vs Baidu Qianfan
- Cloudflare AI Gateway vs StepFun API
- Cloudflare Workers AI vs Baidu Qianfan
- Cloudflare Workers AI vs StepFun API
- Cohere Chat API (Command models) vs Baidu Qianfan
- Cohere Chat API (Command models) vs StepFun API
- DeepInfra vs Baidu Qianfan
- DeepInfra vs StepFun API
- DeepSeek API vs Baidu Qianfan
- DeepSeek API vs StepFun API
- DigitalOcean Serverless Inference vs Baidu Qianfan
- DigitalOcean Serverless Inference vs StepFun API
- Eden AI vs Baidu Qianfan
- Eden AI vs StepFun API
- Glimpse vs Baidu Qianfan
- Glimpse vs StepFun API
- Fireworks AI Inference vs Baidu Qianfan
- Fireworks AI Inference vs StepFun API
- Gemini 4 Argon vs Baidu Qianfan
- Gemini 4 Argon vs StepFun API
- Gemini 4 Carbon vs Baidu Qianfan
- Gemini 4 Carbon vs StepFun API
- Gemini 4 Hydrogen vs Baidu Qianfan
- Gemini 4 Hydrogen vs StepFun API
- Gemini 4 Neon vs Baidu Qianfan
- Gemini 4 Neon vs StepFun API
- Gemini Developer API vs Baidu Qianfan
- Gemini Developer API vs StepFun API
- GPT-6.2 Astra vs Baidu Qianfan
- GPT-6.2 Astra vs StepFun API
- GroqCloud vs Baidu Qianfan
- GroqCloud vs StepFun API
- Hugging Face Inference Providers vs Baidu Qianfan
- Hugging Face Inference Providers vs StepFun API
- Tencent Hy4 vs Baidu Qianfan
- Tencent Hy4 vs StepFun API
- Jais 3 vs Baidu Qianfan
- Jais 3 vs StepFun API
- Meta Model API vs Baidu Qianfan
- Meta Model API vs StepFun API
- MiniMax API vs Baidu Qianfan
- MiniMax API vs StepFun API
- Mistral AI API vs Baidu Qianfan
- Mistral AI API vs StepFun API
- Muse Ember vs Baidu Qianfan
- Muse Ember vs StepFun API
- Muse Spark Open vs Baidu Qianfan
- Muse Spark Open vs StepFun API
- Nebius Token Factory vs Baidu Qianfan
- Nebius Token Factory vs StepFun API
- Nemotron 3.5 Super VL vs Baidu Qianfan
- Nemotron 3.5 Super VL vs StepFun API
- Novita AI vs Baidu Qianfan
- Novita AI vs StepFun API
- OpenAI API vs Baidu Qianfan
- OpenAI API vs StepFun API
- OpenRouter vs Baidu Qianfan
- OpenRouter vs StepFun API
- Prism Inference vs Baidu Qianfan
- Prism Inference vs StepFun API
- 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 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)
- Router.com (Ramp Router) vs StepFun API
- Beam 1.0 vs StepFun API
- Reka API vs StepFun API
- RouterPlus vs StepFun API
- SambaCloud vs StepFun API
- SiliconFlow vs StepFun API
- Simplismart vs StepFun API
- StepFun API vs SWE-2 Flash
- StepFun API vs Tencent Cloud TokenHub
- StepFun API vs Together AI Inference
- StepFun API vs Vercel AI Gateway
- StepFun API vs Vertex AI (Gemini Enterprise Agent Platform)
- StepFun API vs Writer Palmyra API
- StepFun API vs xAI API (Grok)
Machine-readable
- This page as Markdown
/compare/qianfan-vs-stepfun-api.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/qianfan.json·/api/v1/tools/stepfun-api.json - From a terminal
anchor compare qianfan stepfun-api(the CLI) - Over MCP
compare_tools {"a": "qianfan", "b": "stepfun-api"}at/mcp, no key