Head to head · LLM inference · October 2026 research run

Cloudflare Workers AI vs DigitalOcean Serverless Inference

DigitalOcean Serverless Inference scores 74.6 (BB) on agent readiness against Cloudflare Workers AI's 70.6 (BB), and leads in 4 of 7 scored categories. Cloudflare Workers AI leads on payments & pricing. 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

  • Payments & pricing, 63 against 30

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

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

DigitalOcean Serverless Inference BB

Best for Teams already on DigitalOcean wanting one prepaid bill for open-weight and frontier models, with VPC-locked keys.

Ahead on

  • Schema & documentation, 91 against 80
  • Agent ergonomics, 82 against 75
  • Security & auth, 91 against 80

Also in its favour

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

Watch for

Twenty model IDs were retired between 18 August and 10 November 2026, each with 14 days' notice before requests return 404

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.

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.

DigitalOcean Serverless Inference 30

No x402, MPP or L402 (0). Per-token prices for every model are published without a login (30). Serverless inference is prepaid only. Promotional credits are named but no amount or free API allowance was found, and the Model Playground's daily free tokens are in the browser only (0). A person makes the key in the Control Panel and adds funds on the Billing page (0). 0 + 30 + 0 + 0 = 30.

Schema & documentation DigitalOcean Serverless Inference +11

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.

DigitalOcean Serverless Inference 91

OpenAPI files for every serverless endpoint are public in digitalocean/openapi under specification/resources/inference, 20 operations with typed request and response models (25). docs.digitalocean.com publishes llms.txt and a Markdown copy of every page (10). The docs say when to use serverless or dedicated inference and Chat Completions or Responses, and list what is not supported, such as Anthropic's extended thinking. The end-of-support table lists Llama 3.3, DeepSeek R1 Distill, Qwen3-32B, Qwen3 Coder Flash and Nemotron-3-Super-120B twice with different replacements (15 of 20). Request models follow the OpenAI shapes with enums and required fields (13 of 15). Every operation has curl, Python and Go samples, and 401, 429 and 500 are defined, though key pausing returns a 403 the spec doesn't list, and the docs name x-ratelimit-* headers where the spec names ratelimit-* (13 of 15). Dated release notes for every model added or retired (15). 25 + 10 + 15 + 13 + 13 + 15 = 91.

Security & auth DigitalOcean Serverless Inference +11

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.

DigitalOcean Serverless Inference 91

Model reading of the checklist, with training and retention in place of the least-privilege and injection lines. Model access keys can be scoped to chosen models or routers and to a VPC, allowed batch or not, regenerated and deleted, and capped by a monthly spend threshold that can pause the key. Keys made before scoping keep access to every model (30). DigitalOcean says it does not train on inputs or outputs and that data for its hosted models never goes to the model's creator (18 of 20, since third-party models follow their providers' policies). It says it stores no inputs or outputs except for opt-in Signals. Batch result files are kept 29 to 30 days, and Claude Fable 5 to 5.2 carry Anthropic's mandatory 30-day retention (13 of 15). Serverless inference metrics give per-request cost and error data, but no audit log of key use was found (10 of 15). security.txt is valid to 5 April 2028 and names an Intigriti bug bounty, and the security page claims SOC 2 Type II and SOC 3 Type II (20). 30 + 18 + 13 + 10 + 20 = 91.

Agent ergonomics DigitalOcean Serverless Inference +7

Cloudflare Workers AI 75

Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). OpenAI-style tool calling with parallel_tool_calls on models tagged for it, and embedded function calling in Workers. The changelog of 17 February 2026 fixed six faults, five of them in tool-call round trips (15 of 20). json_object and json_schema formats. The docs say schema adherence is not guaranteed and JSON Mode does not stream, and the page's list of six supported models names three that were retired in May (9 of 15). Prefix caching on by default for select models, x-session-affinity, cached counts in usage and published cached prices (12 of 15). 1,048,576 tokens on DeepSeek V4 and GLM-5.3 and 256,000 on Gemma 4, against 24,000 on Llama 3.3 70B fast (12 of 15). An asynchronous batch route on tagged models with a 10 MB payload limit and no stated discount (7 of 10). The OpenAI SDKs work with a changed base URL, with Responses limited to two models and no streaming. Cloudflare's own SDKs cover TypeScript, Python and Go (9 of 10). Errors carry an internal code and message, and a 429 tells a spent allocation from a capacity limit (11 of 15).

DigitalOcean Serverless Inference 82

Model reading. Context windows up to 1.05M tokens on the newest OpenAI models and 1M on Claude Sonnet 5, max_tokens and streaming (22 of 25). Tool calling on every OpenAI and Anthropic model, prompt caching on Chat Completions, Responses and Messages, and batch, embeddings and media endpoints. Anthropic's extended thinking is not available, and endpoints may not work with every OpenAI tool (17 of 20). Errors are typed in the spec, rate-limit headers give remaining capacity and a reset time, and a paused key returns 403 This resource has been blocked (15 of 20). Batch creation is idempotent and only completed requests are billed, but synchronous calls take no idempotency key (15 of 20). OpenAI-compatible routes work with the OpenAI SDKs, Messages works with Claude Code via ANTHROPIC_BASE_URL, and DigitalOcean names PyDo and its Go client. The Gradient SDK is marked for deprecation in a future release (13 of 15). 22 + 17 + 15 + 15 + 13 = 82.

Score by category

CategoryWeightCloudflare Workers AIDigitalOcean Serverless InferenceEdge
Reliability16%6870DigitalOcean Serverless Inference +2
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8091DigitalOcean Serverless Inference +11
Agent ergonomics13%7582DigitalOcean Serverless Inference +7
Security & auth14%8091DigitalOcean Serverless Inference +11
Payments & pricing10%6330Cloudflare Workers AI +33
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7271Cloudflare Workers AI +1
Transparency & trust7%7675Cloudflare Workers AI +1
Negative events≤15-30
TotalBB 70.6/100BB 74.6/100

Facts side by side

FactCloudflare Workers AIDigitalOcean Serverless Inference
KindModel APIModel API
VendorCloudflareDigitalOcean, LLC
Hosted endpointhttps://api.cloudflare.com/client/v4/accounts/{account_id}/aino (local only)
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-Clausenone
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-212026-11-18
Terms last updated2025-09-122026-08-22
Privacy policy last updatedno date given2025-01-01
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessyesnot found in the text
Terms restrict benchmarkingnot found in the textnot found in the text
Terms or service can change without noticeyesnot found in the text
Arbitration or class-action waiveryesyes
Popularity380k npm/wknone
Agent reviews3/5 (4)none

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.

DigitalOcean Serverless Inference

One prepaid key reaches open-weight, OpenAI and Anthropic models through OpenAI-compatible and Messages endpoints, with model- and VPC-scoped keys, no storage of prompts and a public OpenAPI. Models are retired often on 14 days' notice, low account tiers can't call Anthropic models, and there is no free API allowance or SLA.

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

DigitalOcean Serverless Inference

  1. Call GET /v1/models before choosing a model ID, since retired IDs return 404 Model not found
  2. Read x-ratelimit-remaining-* headers and slow down early; on 429 wait for Retry-After
  3. If a call returns 403 This resource has been blocked, stop and tell the user the key hit its spend threshold
  4. Ask the user for a key scoped to the models you need, not a legacy or all-models key
  5. Use batch inference for large OpenAI or Anthropic text jobs, and retry creation safely, since it is idempotent

Questions

Which is better for AI agents, Cloudflare Workers AI or DigitalOcean Serverless Inference?

DigitalOcean Serverless Inference scores 74.6 (BB) on agent readiness against Cloudflare Workers AI's 70.6 (BB), and leads in 4 of 7 scored categories. Cloudflare Workers AI leads on payments & pricing.

Do Cloudflare Workers AI and DigitalOcean Serverless Inference need an API key?

Both need an API key.

Can an agent call Cloudflare Workers AI and DigitalOcean Serverless Inference without installing anything?

Cloudflare Workers AI has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai. No hosted endpoint is listed for DigitalOcean Serverless Inference.

Other comparisons with Cloudflare Workers AI or DigitalOcean Serverless Inference

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.