Long-running agents deserve better inference.

Cloudflare Workers AI

Serverless open-model inference on Cloudflare GPUs, called straight from Workers and billed in Neurons.

Founded
2009
Example models
DeepSeek V4 Pro, GLM 5.3

By The Subconscious Team · Updated

What is Cloudflare Workers AI?

Workers AI is the serverless GPU inference service of Cloudflare, which was founded in 2009. It launched in September 2023 and reached general availability in April 2024. Models run on GPUs inside Cloudflare's own network and are called from a Worker through an AI binding or over REST, including OpenAI-compatible Chat Completions and Embeddings endpoints plus a Responses endpoint for gpt-oss. The catalog lists 50+ open models. Since Kimi K2.5 arrived in March 2026 it has carried frontier-scale LLMs: Kimi K3, K2.6 and K2.7 Code, GLM 5.2, 5.3 and 5.3 Flash, DeepSeek V4 Pro and Flash, gpt-oss 120B and 20B, Qwen 3.8 27B and Llama 4 Scout. DeepSeek V4, added August 14, 2026, was the first to offer the full 1,048,576 token context, and Kimi K3 now matches it.

Billing is in Neurons at $0.011 per 1,000, with 10,000 Neurons a day free, and Cloudflare publishes per-token equivalents for each model. DeepSeek V4 Pro costs $1.32 in and $3.96 out per million, GLM 5.3 $1.40 and $4.40, Kimi K3 $3 and $15, Kimi K2.6 $0.95 and $4.00, and gpt-oss 120B $0.35 and $0.75. Prefix caching bills cached input at a discount, and an x-session-affinity header pins a conversation to one instance to raise hit rates. LoRA adapters are bring-your-own, in free open beta, capped at rank 32, 300MB and 100 per account, and limited to smaller non-quantized models. AI Gateway adds caching, rate limits, retries, fallbacks and logs, and since August 2026 shares billing with Workers AI.

Cloudflare Workers AI pros, cons and use cases

Upsides

  • Inference, code, storage and the Agents SDK live on one platform, so an agent can run end to end on Cloudflare.
  • Daily free allocation and per-token prices that undercut many GPU hosts on gpt-oss and Llama models.
  • OpenAI-compatible endpoints make it a base URL swap for existing SDK code.
  • AI Gateway in front of Workers AI and third-party providers gives one place for caching, fallbacks and spend tracking.

Core use cases

  • Agents and chat features built on Workers that need an LLM without a separate vendor.
  • Low-cost classification, embeddings and summarization inside existing Cloudflare apps.
  • Long-context agent loops on DeepSeek V4 or GLM 5.3 with prefix caching.

Downsides

  • LoRA covers only smaller, older models, and there is no fine-tuning or dedicated deployment for the large LLMs.
  • Large models like Kimi K2.6, K2.7 Code, GLM 5.2 and 5.3 and DeepSeek V4 require the Workers Paid plan or prepaid AI Gateway credits, and synchronous requests can queue for capacity.

Cloudflare Workers AI alternatives compared

Pick any row for the full head-to-head.

ProviderModel accessFlagship modelsSpeedPriceCustomizationDeploymentLong contextCompare
Cloudflare Workers AIOpen weightsDeepSeek V4 Pro, GLM 5.3, Kimi K3, Kimi K2.7 Code, gpt-oss 120BUnknown$0.011 per 1K Neurons; 10K free dailyBYO LoRA on small models (beta)Serverless on Cloudflare network1M on DeepSeek V4 and Kimi K3; 262K on Kimi K2.6 and K2.7 Code
SubconsciousOpen weightsGLM 5.3, DeepSeek V4.1 Flash2x faster task completion50–80% lower cost; billed on processed tokensMarathon post-trained variantsManaged API, dedicated, on-prem5M+ effective contextCompare
OpenAIClosed, plus open gpt-ossGPT-6 Astra, GPT-6.1 Sol, GPT-6 LunaFast mode; Ultrafast on GPT-6 Astra$0.10–$10 in, $0.50–$50 out per 1MN/AAPI, Azure OpenAI, Bedrock1.05M; 2x input past 272KCompare
AnthropicClosedClaude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5Fable is the slowest tier$0.10–$10 in, $0.50–$50 out per 1MN/AAPI, Bedrock, Vertex AI, Microsoft Foundry1M; Haiku 5.5 costs more past 100KCompare
Google Vertex AIClosed and open, 200+ modelsGemini 3.8 Flash, Claude, GemmaFlash tier built for low latencyGemini 3.8 Flash $0.75 in, $3.75 out until 2027, then $1.50/$7.50Custom training on GPUs or TPUsManaged on Google Cloud1M on Gemini 3.8 FlashCompare
Amazon BedrockClosed and open, 100+ modelsClaude, GPT-6 Astra, Nova, DeepSeekLatency-optimized option on some models~20–35% above direct; Claude and GPT at parityFine-tuning, Custom Model ImportManaged on AWS, AgentCoreVaries by modelCompare
Together AIOpen weightsKimi K3, GLM 5.3, DeepSeek V4.1 Flash, Qwen 3.80.99s TTFT on DeepSeek V4 ProParity with Fireworks and BasetenLoRA and full SFT; RL in betaServerless, dedicated, GPU clusters512K on DeepSeek V4 Pro 0813Compare
Fireworks AIOpen weightsDeepSeek V4.1 Flash, GLM 5.3, Kimi K3167–174 tok/s on DeepSeek V4 ProFine-tunes served at base priceSFT, DPO, RFT; Training APIServerless, dedicated GPUsFull 1M on DeepSeek V4.1 Flash, GLM 5.3Compare
BasetenOpen weights, about a dozen curatedGLM 5.3, DeepSeek V4.1 Flash, Kimi K3, gpt-oss 120B0.49s TTFT, lowest measuredH100 about $6.50/hr dedicatedDeploy any model with TrussModel APIs, dedicated, self-hostVaries by modelCompare
GroqOpen weightsGPT-OSS 120B, Qwen 3.8 27B500–1,000 tok/sNear the floor on small modelsNo fine-tuned model hostingGroqCloud APIAround 131K maxCompare
CerebrasOpen weightsGPT-OSS 120B, Qwen 3.8 27B~3,000 tok/s on GPT-OSS 120B$0.35 in, $0.75 out (GPT-OSS 120B)UnknownShared API, dedicated, partners131K on GPT-OSS 120B, 128K on Qwen 3.8 27BCompare
DeepInfraOpen weightsDeepSeek V4 Flash, Llama 3.1 8BUnknownFrom $0.02 per 1MNo managed fine-tuningShared API, no contracts1M on DeepSeek V4 ProCompare
Hugging Face Inference ProvidersOpen weightsGLM 5.3, Kimi K3, DeepSeek V4.1 FlashRoutes to fastest provider by defaultProvider rates, no markupN/AServerless router; dedicated EndpointsUp to 1M, provider-dependentCompare
ModalBring your own weightsNone hosted~1s container bootPer second; H100 $3.95/hr listRun any training codeServerless GPU containersDepends on the model you deployCompare
xAIClosedGrok 4.7, Grok 4.20, grok-build~54 tok/s on Grok 4.6$2 in, $6 out (Grok 4.7); 2x past 200KUnknownFirst-party API500K (4.7), 1M (4.20, 4.3)Compare
Mistral AIOpen weights, plus closed CodestralMistral Large 4, Medium 3.5, Small 4, Large 3Unknown$0.15–$1.50 in, $0.60–$7.50 out per 1MForge (enterprise); fine-tuning API deprecatedAPI, Azure, Bedrock, Vertex, self-host1M (Large 4 preview); 256K on othersCompare
DeepSeekOpen weights (MIT)DeepSeek V4.1 Flash~209 tok/s on V4.1 FlashOff-peak hours at half priceOpen weights to fine-tuneFirst-party API, Hugging Face weights1M, 384K max outputCompare
Moonshot AIOpen weights, custom licenseKimi K3, Kimi K2.8 Preview~33 tok/s on Kimi K3$3 in, $15 out (Kimi K3)Open weights to fine-tuneAPI, Kimi Code, OpenRouter1MCompare
Z.aiOpen weights (GLM-5.3 License; MIT on Flash and older)GLM-5.3, GLM-5.3-Flash~80 tok/s on GLM-5.3$1.40 in, $4.40 out (GLM-5.3); free Flash tierOpen weights; GLM-5.3 License adds review for large hostsAPI, GLM Coding Plan1M (GLM-5.3)Compare
Alibaba CloudOpen weights incl. Max (custom license)Qwen 3.8-Max, Qwen 3.7-Max~40 tok/s on Qwen 3.8-Max$2 in, $6 out internationalNo fine-tuning on hosted MaxModel Studio on Alibaba Cloud1M (Qwen 3.8-Max)Compare
MetaClosed API; open Muse GlimmerMuse Spark 1.3, Muse Glimmer~145–233 tok/s on Muse Spark 1.3$1.25 in, $4.25 out; Contributor tier cheaperOpen Muse Glimmer weights to fine-tuneMeta Model API (preview)1MCompare
CohereClosed, plus open Command A+Command A+, Command A, Embed 5, Rerank 4375 tok/s on Command A+ W4A4, per Cohere$0.0375–$2.50 in, $0.15–$10 out per 1MEnterprise fine-tuning, incl. privateAPI, Bedrock, Azure, OCI, VPC, on-prem256K on Command A; 128K on A+Compare
SambaNovaOpen weightsMiniMax M3, MiniMax M2.7, GPT-OSS 120B~800 tok/s on MiniMax M2.7 (SN50, SemiAnalysis)$0.22 in, $0.59 out (GPT-OSS 120B)UnknownSambaCloud, racks for neocloudsUp to 1M (MiniMax M3, preview)Compare
NebiusOpen weights, 60+ modelsDeepSeek V4 Pro, Kimi K3, MiniMax M3, GLMAmong top hosts on throughputFrom $0.06 per 1M inputServe uploaded fine-tunesToken Factory, dedicated, raw GPUsVaries by modelCompare
CrusoeOpen weightsDeepSeek V4, GLM 5.3, Kimi K2.6, Nemotron 3Up to 9.9x faster TTFT vs vLLM (vendor claim)$0.05–$1.74 in, $0.20–$4.40 out per 1MServerless LoRA fine-tuningServerless, self-serve and tailored dedicated, raw GPUsVaries by model; cluster-wide KV cacheCompare
falHosted media modelsFLUX, Kling, SeedreamCold starts on less popular endpointsPer image, per video second, GPU timeLoRA training endpointsHosted API, serverless GPUsNot applicableCompare
Novita AIOpen weightsDeepSeek V4 Pro, Gemma 4~36 tok/s on DeepSeek V4 ProFrom $0.02 per 1M; batch 50% offHot-swappable LoRA adaptersServerless, GPU cloud, dedicatedFull 1M on DeepSeek V4 ProCompare
VeniceOpen weights, plus proxied closed modelsGLM 5.3, Kimi K3, DeepSeek V4 ProUnknown$0.06–$12 in, $0.28–$60 out per 1M; DIEM stakingUnknownServerless API, consumer app1M on most current modelsCompare
ParasailAny Hugging Face modelKimi K3, DeepSeek V4.1 Flash, GLM-5.3, MiniMax M3600ms p99 real-time budgetPer-parameter rates; batch 50% offPrivate Hugging Face reposServerless, elastic, dedicated, batchVaries by modelCompare
Inference.netOpen, closed and customSchematron, ClipTagger, customer fine-tunesBatch windows of 24h to 7 daysFree pay-as-you-go; Growth $250/mo; B200 $9.98/hrDistill traces into custom modelsBatch API, gateway, dedicated GPUsVaries by modelCompare
GMI CloudOpen and third-party modelsDeepSeek V4 Flash, GLM-5.2, Google VeoNear bare-metal performanceH100 from $2.60/GPU-hrUnknownShared, autoscaling, reserved GPUsVaries by modelCompare
Thinking MachinesOpen weightsInkling, Inkling-SmallUnknownPer 1M tokens by prefill, sample, train; Inkling $1.00 in, $4.05 outLoRA SFT and RL via TinkerTraining API, beta serverless (Inkling only)Inkling up to 1M (256K serverless); Tinker 32K–256KCompare
Sail ResearchOpen weightsKimi K2.6, GLM-5.3, GPT-OSS 120BLow-latency default; slower windows cheaper30–85% below other hosts by completion windowCustomer LoRA fine-tunesAPI plus SailboxesVaries by modelCompare
MorphSpecialist modelsmorph-v3-fast, morph-v3-large10,500+ tok/s Fast Apply$0.80 in, $1.20 out (morph-v3-fast)Fine-tuning offeredOpenAI-compatible API; self-hosted on EnterpriseUnknownCompare
RelaceSpecialist modelsrelace-apply-3, agentic search~10,000 tok/s apply3x+ cheaper than full rewritesUnknownHosted API or self-hosted128K maxCompare
TypeSafe AIDecision modelsJev, jev-1.1370–500ms per call$0.042 per 1M input tokens; output freeUnknownEarly-access API, also via LiteLLM32KCompare
StepFunOpen (Apache 2.0) and API modelsStep 5 Preview, Step 3.7 Flash~128 tok/s on Step 3.7 Flash$0.20 in, $1.15 out (Step 3.7 Flash)Open weights to fine-tuneFirst-party API, OpenRouterUp to 1M (Step 5 Preview); 256K on Step 3.7 FlashCompare
RunwareHosted media modelsSeedance 2.5, Qwen-Image-3.0UnknownImages from fractions of a centFine-tuned diffusion checkpointsUnified API, serverless GPUs, bare metalNot applicableCompare
StreamLakeProprietary coding models, plus hosted open modelsKAT-Coder-Pro V2.5, KAT-Coder-Air V2.5Unknown$0.74 in, $2.96 out (Pro V2.5), or KwaiKAT Coding PlanUnknownMaaS API, bare metal256KCompare
WaferOpen weightsGLM-5.3, DeepSeek V4.1 Flash~176 tok/s on GLM-5.3; 2–2.8x vs stock vLLM or SGLang (vendor)Per token, prepaid creditsAgent-tuned dedicated deploymentsServerless, dedicatedUp to 1M (GLM-5.3, DeepSeek V4.1 Flash)Compare
RunInfraOpen weightsNemotron 3.5 Lightning 30B, Qwen 3.8 27B~541 tok/s on Nemotron 3.5 Lightning 30B (vendor); cold starts under 2sFrom $0.05 in, $0.15 out; coding plans from $10 a monthUploads up to 50 GB; auto-quantizationModel APIs, agent-built endpointsVaries by modelCompare
Particle.AIOpen weightsDeepSeek V4.1 Flash, GLM 5.3 Flash~193 tok/s on DeepSeek V4.1 Flash$0.10 in, $0.40 out (GLM 5.3 Flash)UnknownVia Vercel AI Gateway1MCompare
LuminalSmall hosted catalog plus bring your own weightsDeepSeek V4.1 Flash, Ideogram 4.536K tok/s on GPT-OSS 120B, 8xH100 (vendor)$0.1425 in, $0.57 out (DeepSeek V4.1 Flash)Compiles any PyTorch or HF modelServerless (early access), on-prem licenseUnknownCompare
InfronClosed and open, 400+ modelsDeepSeek, Qwen, Claude, Gemini, GPTUnknownProvider rates; 3–5% top-up feeCustom deploymentsGateway API, dedicated, BYOKVaries by modelCompare
InceptionClosed weights (Mercury dLLMs)Mercury 2.5, Mercury 21,100+ tok/s (vendor); ~640 measured$0.20 in, $0.75 out (Mercury 2.5)Fine-tuning on requestServerless API, Bedrock, Azure, private260KCompare
DolphinOpen weights, uncensored fine-tunesDeepSeek V4.1 Flash, Dolphin Mistral 24BUnknown$0.01 in, $0.07 out (DeepSeek V4.1 Flash)Own uncensored fine-tunesDecentralized serverless APIUnknownCompare

Frequently asked questions

What is Cloudflare Workers AI?

Workers AI is the serverless GPU inference service of Cloudflare, which was founded in 2009. It launched in September 2023 and reached general availability in April 2024. Models run on GPUs inside Cloudflare's own network and are called from a Worker through an AI binding or over REST, including OpenAI-compatible Chat Completions and Embeddings endpoints plus a Responses endpoint for gpt-oss. The catalog lists 50+ open models. Since Kimi K2.5 arrived in March 2026 it has carried frontier-scale LLMs: Kimi K3, K2.6 and K2.7 Code, GLM 5.2, 5.3 and 5.3 Flash, DeepSeek V4 Pro and Flash, gpt-oss 120B and 20B, Qwen 3.8 27B and Llama 4 Scout. DeepSeek V4, added August 14, 2026, was the first to offer the full 1,048,576 token context, and Kimi K3 now matches it.

What is Cloudflare Workers AI best for?

Agents and chat features built on Workers that need an LLM without a separate vendor; Low-cost classification, embeddings and summarization inside existing Cloudflare apps; Long-context agent loops on DeepSeek V4 or GLM 5.3 with prefix caching.

How much does Cloudflare Workers AI cost?

Cloudflare Workers AI pricing at a glance: $0.011 per 1K Neurons; 10K free daily. Rates change often, so check Cloudflare Workers AI's pricing page before committing.

How much context does Cloudflare Workers AI support?

Cloudflare Workers AI's long-context support: 1M on DeepSeek V4 and Kimi K3; 262K on Kimi K2.6 and K2.7 Code.

What are the downsides of Cloudflare Workers AI?

LoRA covers only smaller, older models, and there is no fine-tuning or dedicated deployment for the large LLMs; Large models like Kimi K2.6, K2.7 Code, GLM 5.2 and 5.3 and DeepSeek V4 require the Workers Paid plan or prepaid AI Gateway credits, and synchronous requests can queue for capacity.

What are the best alternatives to Cloudflare Workers AI?

Common alternatives include Subconscious, OpenAI, Anthropic, Google Vertex AI, Amazon Bedrock. Each has a head-to-head comparison with Cloudflare Workers AI on this site.

Sources: Workers AI pricing, Workers AI changelog, Workers AI now runs large models, Workers AI LoRA adapters, Kimi K3 on Workers AI. Pricing and model lineups change often; figures are a snapshot.