Cloudflare Workers AI

● 24h Uptime 99.9% (Global Anycast Edge)

10,000 neurons permanently free every day · Zero credit card required

💡 HIGHLIGHT

Global Anycast edge deployment across 300+ cities: 10,000 Neurons free compute refreshed daily at midnight UTC, covering ~80 multimodal models with zero credit card.

⚡ Speed & Latency
80ms ~ 260ms
Nearest connection via 300+ edge data centers worldwide, ultra-low latency
🎁 Free Quota & Policy
10,000 Neurons free compute refreshed daily
Permanent free tier · Resets at midnight UTC · Equivalent to 35-550 requests/day
🛡️ Auth & Access Requirements
Cloudflare dashboard generates API Token
REST routing via /client/v4/accounts/{account_id}/ai/v1 or native env.AI in Workers
📊 Concurrency & Context
300 RPM default · Global Anycast distributed concurrency
Optimal for serverless edge workers, Telegram bots & automated pipelines

🔌 OpenAI-Compatible Base URL

https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1

💡 Directly paste the address above as Base URL into any OpenAI-compatible client (NextChat, Cherry Studio, Immersive Translate, etc.).

📋 Featured Models:

Click Model ID to copy
Edge 70B @cf/meta/llama-3.3-70b-instruct-fp8-fast
Edge-optimized accelerated Llama 3.3 70B flagship model, ultra-low latency
Reasoning Distill @cf/deepseek-ai/deepseek-r1-distill-qwen-32b
DeepSeek R1 distilled 32B, balancing deep reasoning logic with rapid responses
Qwen Edge @cf/qwen/qwen2.5-7b-instruct
High-efficiency multilingual edge chat model
FLUX Text2Image @cf/black-forest-labs/flux-1-schnell
Black Forest Labs FLUX.1 ultra-fast text-to-image, 4-step generation
Whisper Audio @cf/openai/whisper
Multilingual open-source speech-to-text (STT) edge microservice

🎁 Free Tier Reality & Limits

10,000 Neurons/day free compute (shared across 80+ models, resets daily UTC), no credit card required
🔄 Reset Cycle Automatic daily reset at 00:00 UTC (permanent free tier)
🛡️ Overage Behavior Stops cleanly with HTTP 429 / 3040 / 1027 when depleted; zero risk of surprise bills (no card attached to Workers Free)
📋 Access Requirements
✓ No Credit Card ✓ Email Only (No Card)

Cloudflare Workers AI deploys open-source AI models directly across serverless GPUs in over 300 data centers worldwide. Anycast routing directs inference calls to the closest geographical point of presence, slashing network transit latency.

Cloudflare grants every free plan (Workers Free) user 10,000 Neurons (GPU compute units) daily, resetting at 00:00 UTC. It spans ~80 models including Llama 3.3 70B, DeepSeek R1 Distill, FLUX.1 schnell, and Whisper, accessible via REST API or native Workers env.AI bindings.

⚠️ Worth Knowing & Gotchas

⚠️ Base URL Requires Your Actual Account ID

The REST API endpoint format is https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1. You MUST replace {account_id} with your actual Account ID from the Cloudflare dashboard sidebar, otherwise requests return HTTP 404!

⚠️ Unique Neurons-Based Billing (Not Tokens)

Cloudflare measures GPU computational effort in Neurons rather than raw tokens. 10,000 Neurons yields approximately 35 agent multi-step calls or up to ~550 short conversational turns daily. All models draw from this single 10,000 Neurons pool.

⚠️ CORS Headers Not Enabled on REST Gateway

Cloudflare REST API endpoints do not emit Access-Control-Allow-Origin headers. Direct browser fetch calls will be blocked by browser CORS security. Use desktop clients (e.g. NextChat, ChatBox), backend proxies, or lightweight Cloudflare Worker scripts.

⚠️ Frontier Models Require Workers Paid

Certain proprietary/frontier models such as Kimi-K2.6, Kimi-K2.7-Code, and GLM-5.2 are not accessible under Workers Free and require upgrading to Workers Paid ($5/mo) or prepaid AI Gateway credits.

⚠️ Zero Overdraft & Wallet Risk

Workers Free accounts do not require a credit card. When your daily 10,000 Neurons are exhausted, calls fail with HTTP 429 / Error 3040 without any automatic debit.

🚀 30-Second Quick Setup Guide

01

Sign Up & Copy Your Account ID

Register at dash.cloudflare.com with an email address. On your dashboard sidebar, copy your Account ID.

Go to Console ↗
02

Create a Workers AI API Token

Go to Profile -> API Tokens -> Create Token, choose the 'Workers AI (Read/Write)' template, and generate your bearer token.

Go to Console ↗
03

Configure Endpoint & Run

Set Base URL to https://api.cloudflare.com/client/v4/accounts/{YOUR_ACCOUNT_ID}/ai/v1, provide your token, and select models like @cf/meta/llama-3.3-70b-instruct-fp8-fast to enjoy 10,000 daily free Neurons!

💻 Quick Python OpenAI SDK Example

from openai import OpenAI

client = OpenAI(
    api_key="your_api_key_here",  # 填入申请的 Key
    base_url="https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1"
)

response = client.chat.completions.create(
    model="@cf/meta/llama-3.3-70b-instruct-fp8-fast",
    messages=[
        [object Object]
    ]
)

print(response.choices[0].message.content)

📖 Related In-Depth Tutorials & Strategies

Guides →
← Radar 🚀 Toolbox