10,000 neurons permanently free every day · Zero credit card required
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.).
@cf/meta/llama-3.3-70b-instruct-fp8-fast @cf/deepseek-ai/deepseek-r1-distill-qwen-32b @cf/qwen/qwen2.5-7b-instruct @cf/black-forest-labs/flux-1-schnell @cf/openai/whisper 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.
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!
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.
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.
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.
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.
Register at dash.cloudflare.com with an email address. On your dashboard sidebar, copy your Account ID.
Go to Console ↗Go to Profile -> API Tokens -> Create Token, choose the 'Workers AI (Read/Write)' template, and generate your bearer token.
Go to Console ↗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!
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)