Head to head · LLM inference · October 2026 research run

Baidu Qianfan vs Writer Palmyra API

Writer Palmyra API scores 64.7 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in 6 of 7 scored categories. 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.

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

Writer Palmyra API B

Best for An enterprise team that wants Palmyra models with a long context, tool calls and published trust documents, usually beside Writer's agent platform.

Ahead on

  • Reliability, 43 against 38
  • Schema & documentation, 88 against 47
  • Agent ergonomics, 71 against 60
  • Security & auth, 79 against 55
  • Transparency & trust, 78 against 55

Watch for

The status page at status.writer.com answered 403 for robots.txt, so its history was not read

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 Writer Palmyra API +41

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.

Writer Palmyra API 88

Model reading. A public OpenAPI 3.0.3 file, gateway-api-schema.yaml, lists 18 operations including /v1/chat, /v1/completions and /v1/models, linked from llms.txt (25). llms.txt and a Markdown twin of every docs page (10). The endpoint guides and the reference describe each field and when to use chat over text completion (14 of 20). Types, defaults and bounds are given, with free-form tools and response_format objects and structured outputs limited to two models (11 of 15). An error-code page gives a JSON format, causes and actions, and examples exist in curl, Python and JavaScript (14 of 15). A dated changelog, SDK semver with removals called out in 3.0.0, and a deprecation policy exist (14 of 15). Total 88.

Security & auth Writer Palmyra API +24

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.

Writer Palmyra API 79

Model reading. A bearer key made in Control Center with a name, an owner, an expiration and per-capability permissions, shown once, and legacy keys end on 1 January 2027 (22 of 30). The terms say materials are not used to train models and the trust FAQ says no training on inputs or outputs, and the data processing agreement was not read (16 of 20). The trust FAQ describes zero data retention with storage only as long as needed, and customers can set a deletion schedule and bring their own KMS key (12 of 15). Control Center has event logs and observability with request-level logs, and their coverage of plain API calls was not read (11 of 15). SOC 2 Type II, ISO 27001, 27701 and 42001, HIPAA and PCI DSS SAQ A per the trust centre, with security.txt answering 404 and no bug bounty found (18 of 20). Total 79.

Transparency & trust Writer Palmyra API +23

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.

Writer Palmyra API 78

Closed service under published terms, Apache-2.0 SDKs, and Palmyra weights not part of this listing (15 of 30). The terms, privacy policy, trust FAQ and docs agree on no training and zero data retention, and the data processing agreement is linked and was not read (24 of 30). A dated deprecation policy with stated minimum notice periods (20 of 20). A trust centre with a subprocessors tab and an EU endpoint, with the subprocessor list not read (16 of 20). Total 75.

Agent ergonomics Writer Palmyra API +11

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.

Writer Palmyra API 71

Model reading. Responses can be sized with max_tokens (8,192 on X6 and X5, 4,096 on X4), n, stop, logprobs and streaming, with a 1M context on X6 and X5 (18 of 25). A pagination guide covers lists of graphs and files, and chat has no filtering (14 of 20). Errors share one JSON shape with a description and a key (16 of 20). The SDKs retry 7 times by default and a retry endpoint exists for failed files, with no idempotency key (8 of 20). model and messages are required, with Python and Node SDKs (15 of 15). Tool calling, streaming, vision on X5 and structured outputs on X5 and X4 are documented. No prompt caching or batch for chat was found. Total 71.

Reliability Writer Palmyra API +5

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.

Writer Palmyra API 43

Hosted lines. The site footer links status.writer.com, whose robots.txt answered 403, so the page and its history were not read and are scored as absent, which says nothing about Writer's uptime (0 of 20 for the page, 5 of 30 for the incident record). Rate limits are published with numbers, 400 requests and 25,000 tokens a minute (15). The rate-limit and error pages tell clients to back off exponentially on 429, and the Python SDK retries 7 times by default, with no Retry-After header or idempotency key documented (13 of 15). No SLA was found (0). The chat API is generally available (10). Total 43.

Score by category

CategoryWeightBaidu QianfanWriter Palmyra APIEdge
Reliability16%3843Writer Palmyra API +5
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%4788Writer Palmyra API +41
Agent ergonomics13%6071Writer Palmyra API +11
Security & auth14%5579Writer Palmyra API +24
Payments & pricing10%3030even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%6367Writer Palmyra API +4
Transparency & trust7%5578Writer Palmyra API +23
Negative events≤1500
TotalD 48.7/100B 64.7/100

Facts side by side

FactBaidu QianfanWriter Palmyra API
KindModel APIModel API
VendorBaiduWriter
Hosted endpointhttps://qianfan.baidubce.com/v2https://api.writer.com/v1/chat
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingPay per usePay per use
x402nono
LicenceClosed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0.Proprietary service under Writer's terms of use and enterprise agreements. The Python and Node SDKs are Apache-2.0
Read-only variant documentednono
llms.txtnoyes
Last release2026-10-182026-09-03
Privacy policy last updatedno document linkednot read yet

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.

Writer Palmyra API

Writer publishes an OpenAPI file with 18 operations, keys with permissions and an expiry, public per-token prices and a dated deprecation policy, and the terms say it does not train on customer data. Palmyra X4 and X5 are deprecated on 14 December 2026, and Writer's status page is closed to our reader.

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.

Writer Palmyra API

  1. Call POST https://api.writer.com/v1/chat with Authorization: Bearer <key>. model and messages are required, and max output is 8,192 tokens for X6 and X5 and 4,096 for X4
  2. Use palmyra-x6 for new work. Move any palmyra-x4 or palmyra-x5 code before 14 December 2026
  3. Create new API keys and revoke legacy keys before 1 January 2027, and tick only the Models permission for a chat-only agent
  4. Stay under 400 requests and 25,000 tokens a minute. On 429, back off exponentially. The Python SDK retries 7 times by default
  5. Read the error body's errors[].description and key fields to decide whether to fix the request or retry

Questions

Which is better for AI agents, Baidu Qianfan or Writer Palmyra API?

Writer Palmyra API scores 64.7 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in 6 of 7 scored categories.

Do Baidu Qianfan and Writer Palmyra API need an API key?

Both need an API key.

Can an agent call Baidu Qianfan and Writer Palmyra API without installing anything?

Yes. Baidu Qianfan has a hosted endpoint at https://qianfan.baidubce.com/v2 and Writer Palmyra API at https://api.writer.com/v1/chat.

Other comparisons with Baidu Qianfan or Writer Palmyra API

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.