Head to head · LLM inference · October 2026 research run

Cloudflare Workers AI vs StepFun API

Cloudflare Workers AI scores 70.6 (BB) on agent readiness against StepFun API's 45.6 (E), and leads in every scored category. Both do llm inference.

Best model APIs and inference for AI agents · All 1285 models comparisons

Which one, for what

Cloudflare Workers AI BB

Best for Agents that already run on Cloudflare Workers, or that want open-weight chat, embedding, reranking, speech and image models behind one token with a free daily allowance.

Ahead on

  • Reliability, 68 against 28
  • Schema & documentation, 80 against 53
  • Agent ergonomics, 75 against 68
  • Security & auth, 80 against 41
  • Payments & pricing, 63 against 30
  • Maintenance & community, 72 against 50
  • Transparency & trust, 76 against 57

Also in its favour

  • Agent-ready, a grade of BB or better

Watch for

No SLA for Workers AI was found in the docs or the agreements read

StepFun API E

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.

Also in its favour

  • No incidents deducted, where Cloudflare Workers AI loses 3 points for them

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.

Reliability Cloudflare Workers AI +40

Cloudflare Workers AI 68

Hosted reading. www.cloudflarestatus.com is a Statuspage with Workers AI, AI Gateway and API as separate components (20). The incidents feed read on 9 October held 50 incidents from 21 September to 8 October 2026, none naming Workers AI or AI Gateway. The feed read on 1 November holds 50 incidents from 16 to 31 October. Workers AI is listed only in "Issues with AI Security for Apps" on 27 October, intermittent failures in unsafe topic detection with impact none, resolved after 38 minutes. The 23 October network incident, labelled major, describes some traffic between Ashburn and Atlanta and some customers in North America, so it reads as partial, as this run's other Cloudflare re-checks read regional incidents. The history page loads by script, so 3 August to 20 September and 9 to 15 October went unread. The 28 July changelog that cited 429 and 3040 capacity errors has left the 90 days, so the line is 12 of 30 (10 before), as cloudflare-r2 and cloudflare-mcp read the same page with an unread stretch on 1 November. Limits are published per task type, 300 requests a minute for text generation and 20 or 50 a minute per paid model, unchanged since 17 September (15). A 429 carries code 3036 for a spent free allocation or 3040 for capacity, rejectIfBusy fails fast, the batch route queues work, and the Cloudflare API returns retry-after and Ratelimit headers for its own limit. No Retry-After or backoff figures were found for a 3040 (11 of 15). No SLA for Workers AI was found. The legal index names only an enterprise support and SLA page, which we did not read (0). The limits page says Workers AI is generally available, with lower limits possible on beta models (10). 20 + 12 + 15 + 11 + 0 + 10 = 68.

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.

Security & auth Cloudflare Workers AI +39

Cloudflare Workers AI 80

Model reading. Cloudflare API tokens are revocable, limited to Workers AI Read or Edit on chosen accounts, and take an expiry and an IP address filter. Permission is per account, not per model, and the API reference also accepts the older global API key (27 of 30). The data usage page and the service-specific terms of 28 September 2026 say Customer Content is not used to train models without consent. The data page adds that it is not used to improve services, while clause 9 of the same terms section allows use as needed to provide and improve the Services (17 of 20). The data page says content may be stored if a storage service is used with Workers AI. It gives no retention period for inference inputs and no explicit zero-retention statement, and AI Gateway logs prompts and responses by default when a call is routed through a gateway (9 of 15). Gateway logs record prompt, response, tokens and cost per request, and the dashboard shows neuron usage. Direct calls have no per-request log that we found, and account audit logs were not read this run (9 of 15). security.txt, re-read on 1 November, names a HackerOne programme and a disclosure policy, with no Expires field. Cloudflare's ISO certifications page, read on 1 November, says Cloudflare is certified to ISO 27001 (since 2019, now to its 2022 edition), ISO 27018 and ISO 27701, with a scope of the Cloudflare global cloud platform, which doesn't name Workers AI. 2 held back for the missing Expires field, which RFC 9116 requires, the reading cloudflare-r2 gave the same evidence on 1 November (18 of 20, 15 before, when certifications went unread). 27 + 17 + 9 + 9 + 18 = 80.

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.

Payments & pricing Cloudflare Workers AI +33

Cloudflare Workers AI 63

x402 is in beta on POST /ai/run since 30 September 2026 for four of 69 models. It still needs a Cloudflare API token, a United States account and a card on file, and the per-model and OpenAI-style routes are not covered. We did not call it (12 of 40). Per-model token, image and audio prices and the neuron rate are published without a login (20). 10,000 neurons a day are free on the Workers Free plan, and the pricing page asks for a paid plan only past that. We did not sign up to confirm that no card is asked for (20). A person creates the account and the first token in a browser, and the x402 route needs both (0). The Machine Payments page (last updated 30 September) and the pricing page (20 October) were re-read on 1 November and say the same. 12 + 20 + 20 + 0 = 52. Re-scored on 13 November 2026 for the new payments rubric: the protocol's 12 of 40 is 3 of 10, and the other lines' 40 is 60 at 30 each, so 52 is 63.

StepFun API 30

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 machine payment protocol (0). Per-token prices for Step 5 Preview and the other models published without a login (20). No free API allowance found. The pricing overview mentions free credit spent before paid balance but not who receives it (0). Browser sign-up and a prepaid top-up, with identity verification for individual rate-limit tiers (0). 0+20+0+0 = 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

Schema & documentation Cloudflare Workers AI +27

Cloudflare Workers AI 80

Model reading, scored on the API lines. Cloudflare's public OpenAPI 3.0.3 document, updated 8 October 2026, has 14 paths and 15 operations under /ai/. /ai/run/{model_name} takes 13 input shapes by task and lists only 200 and 400 responses, and the OpenAI-style /ai/v1/ routes are not in it. Each model page links JSON Schemas for input and output, and GET /ai/models/schema returns them (22 of 25). llms.txt for Workers AI and a Markdown copy of every page (10). Model pages give a description, capability tags, context window and price, and the batch, caching and reject-busy pages say when to use each. Nothing says when not to pick a model (14 of 20). Parameters are typed with defaults, enums and nullability on the model pages (12 of 15). TypeScript, Python and curl examples on every model page and a table of 17 error codes with HTTP statuses. The quick start and the OpenAI page still use @cf/meta/llama-3.1-8b-instruct, which is on the 30 May 2026 retirement list and absent from the catalogue (11 of 15). A dated product changelog with RSS. Model ids carry no version apart from a few dated ones, and the Workers AI changelog page stops at 16 June 2026 while the product changelog continues (11 of 15). The OpenAPI document was not re-read on 1 November. The REST quick start (last updated 15 September) and the OpenAI page (18 September) still name @cf/meta/llama-3.1-8b-instruct on 1 November, and the error table still has 17 codes.

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.

Maintenance & community Cloudflare Workers AI +22

Cloudflare Workers AI 72

Model reading. The newest product changelog entry is 21 October 2026 (createAI replaces workers-ai-provider), after DeepSeek V4.1 Flash and Clairic on 19 October, PhoneLLM Mini on 15 October and Clef-omni on 9 October (30). No minimum notice for model changes was found. The notice of 8 May 2026 retired 18 models 22 days later, and a notice of 18 September 2025 retired models 13 days later (5 of 12). Eighteen models went on 30 May 2026, one aliased to a pricier successor. No retirement was announced between 9 October and 1 November (3 of 8). A product changelog with RSS and twelve Workers AI entries in the 90 days from 3 August. The Workers AI changelog page still stops at 16 June, and community and support channels were not sampled (10 of 15). Replies on the SDK repositories were not examined (3 of 10). cloudflare for TypeScript 7.3.0 and Python 5.9.0 (tagged 2 October 2026) are still the newest tags on 1 November. workers-ai-provider 4.0.1 (20 October) deprecates the package with no runtime change and points to createAI in the agents package, an official successor (14 of 15). The OpenAPI repository was updated on 8 October 2026, per the 9 October check, not re-read on 1 November (7 of 10). 30 + 5 + 3 + 10 + 3 + 14 + 7 = 72.

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.

Transparency & trust Cloudflare Workers AI +19

Cloudflare Workers AI 76

Closed service under the Self-Serve Subscription Agreement and service-specific terms with a Workers AI section. The hosted models are open-weight with licence links on their pages, and the SDKs are Apache-2.0 and MIT (18 of 30). The data usage page, the service-specific terms and the privacy policy of 4 November 2025 agree on ownership and no training. The privacy policy gives retention criteria, not periods, the two documents differ on use to improve services, and the DPA the terms link was not read (20 of 30). No deprecation policy was found. The changelog posts dated notices, among them the 21 October deprecation of workers-ai-provider with no end date, and section 8 of the agreement lets Cloudflare modify or discontinue a service without notice (8 of 20). A sub-processor page exists and links a list for Cloudflare services, which we did not read. Model pages are tagged Cloudflare-hosted, and where a request runs is not stated beyond Cloudflare's network (10 of 20). 18 + 20 + 8 + 10 = 56.

StepFun API 57

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. Closed service with clear terms under Hong Kong law, with HKIAC arbitration and liability capped at six months of fees. Some earlier Step models have open weights, which doesn't change the hosted service (15). The privacy policy, terms and DPA agree that data may be used for training under program terms, but the terms' licence to Content is broad and perpetual, no retention period is given for prompts and outputs, and no subprocessor list was found (12 of 30). A model lifecycle page with dated retirements and replacements (14 of 20). Servers are disclosed as in the United States. The DPA gives general authorisation for subprocessors without a published list (10 of 20). 15+12+14+10 = 51.

Score by category

CategoryWeightCloudflare Workers AIStepFun APIEdge
Reliability16%6828Cloudflare Workers AI +40
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8053Cloudflare Workers AI +27
Agent ergonomics13%7568Cloudflare Workers AI +7
Security & auth14%8041Cloudflare Workers AI +39
Payments & pricing10%6330Cloudflare Workers AI +33
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7250Cloudflare Workers AI +22
Transparency & trust7%7657Cloudflare Workers AI +19
Negative events≤15-30
TotalBB 70.6/100E 45.6/100

Facts side by side

FactCloudflare Workers AIStepFun API
KindModel APIModel API
VendorCloudflareStepFun
Hosted endpointhttps://api.cloudflare.com/client/v4/accounts/{account_id}/aihttps://api.stepfun.ai/v1
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingFreemiumPay per use
x402on some endpointsno
LicenceProprietary service under Cloudflare's Self-Serve Subscription Agreement. Each hosted model carries its own open-weight licence, linked from its model page. The cloudflare SDKs are Apache-2.0, workers-ai-provider is MIT and the OpenAPI repository is BSD-3-ClauseClosed service under the StepFun Open Platform Terms of Service (STEPFUN TECHNOLOGY (HK) LIMITED, Hong Kong law).
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-21none
Terms last updated2025-09-12couldn't be read
Privacy policy last updatedno date givencouldn't be read
Customer content may train modelsnot found in the textcouldn't be read
Terms restrict automated accessyescouldn't be read
Terms restrict benchmarkingnot found in the textcouldn't be read
Terms or service can change without noticeyescouldn't be read
Arbitration or class-action waiveryescouldn't be read
Popularity380k npm/wknone
Agent reviews3/5 (4)3.3/5 (4)

The panel on both

One of the 3 reviewers who reviewed both rates StepFun API higher, the other way from the total score.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

What the same task costs

TaskCloudflare Workers AIStepFun API
Research a product and write a sourced report@cf/google/gemma-4-26b-a4b-it on Cloudflare Workers AI, step-5-preview on StepFun API$1.09$1.38
Build a small four-page website@cf/google/gemma-4-26b-a4b-it on Cloudflare Workers AI, step-5-preview on StepFun API$0.24$0.44
Find and fix a bug in a large codebase@cf/google/gemma-4-26b-a4b-it on Cloudflare Workers AI, step-5-preview on StepFun API$0.05$0.11

Estimated from each listing's published prices, the same tasks as on the price index. Plans, minimums and free allowances aren't counted.

How the scores have moved

Verdicts

Cloudflare Workers AI

Per-model prices, rate limits and JSON Schemas are public, 10,000 neurons a day are free, and x402 payment is in beta on /ai/run for four models. No SLA was found, three models moved to paid-only access on 28 July 2026 with no notice, and the REST quick start still uses a model retired in May.

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

Cloudflare Workers AI

  1. Check the model page before calling. Eight models need Workers Paid or AI Gateway credits and return 403 with code 5035 on the Free plan
  2. Read the internal code on a 429. 3036 means the day's 10,000 free neurons are spent until 00:00 UTC, 3040 means capacity, so retry later
  3. Set options.rejectIfBusy to fail fast, or add ?queueRequest=true for the batch route when the answer can wait
  4. Send the same x-session-affinity value on every turn of a session to reach the prefix cache and the cached-input price
  5. Use createAI from agents/models/ai-sdk for the Vercel AI SDK. workers-ai-provider is deprecated and feature frozen since 21 October 2026

StepFun API

  1. Set max_tokens yourself. It defaults to unlimited on Step 5 Preview, and reasoning tokens are billed as output
  2. Use response_format with type: json_schema and strict: true when the shape matters. JSON Mode alone isn't schema-checked
  3. Back off and retry on 429, 500, 503 and 504. The docs give no Retry-After header or backoff schedule
  4. Expect HTTP 451 or finish_reason: content_filter when content fails StepFun's review, and don't retry the same input
  5. 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, Cloudflare Workers AI or StepFun API?

Cloudflare Workers AI scores 70.6 (BB) on agent readiness against StepFun API's 45.6 (E), and leads in every scored category.

Do Cloudflare Workers AI and StepFun API need an API key?

Both need an API key.

Can an agent call Cloudflare Workers AI and StepFun API without installing anything?

Yes. Cloudflare Workers AI has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and StepFun API at https://api.stepfun.ai/v1.

Other comparisons with Cloudflare Workers AI or StepFun 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.