Cloudflare Workers AI Free Tier: 10,000 Neurons a Day
Cloudflare Workers AI gives every Workers Free and Paid account 10,000 free Neurons per day at zero cost, with no credit card needed on the Free plan. Verified on 28 Nov 2026, you can run open models like @cf/meta/llama-3.1-8b-instruct-fast over REST or directly from a Worker binding.
Daily Neuron Allowance
- Free daily cap
- 10,000 Neurons / day
- Reset schedule
- 00:00 UTC daily
- Paid overage rate
- $0.011 / 1,000 Neurons
- Active Llama 8B ID
- @cf/meta/llama-3.1-8b-instruct-fast
- Official pricing
- developers.cloudflare.com/workers-ai/…
What 10,000 Free Neurons a Day Covers
Instead of a flat requests-per-day counter, Cloudflare meters Workers AI in Neurons — a compute unit proportional to model size and input/output tokens. Compact 8B chat models, text embeddings and speech transcription stretch 10,000 Neurons across hundreds of short daily calls, while heavy 70B models consume the pool much faster.
| Behavior | Workers Free Plan | Workers Paid Plan |
|---|---|---|
| Daily Free Neurons | 10,000 / day | 10,000 / day |
| After 10,000 Neurons | Hard stop until 00:00 UTC (zero surprise bills) | Pay-as-you-go at $0.011 per 1,000 Neurons |
| Supported Modalities | Chat, Embeddings, Speech (Whisper), Image | Chat, Embeddings, Speech (Whisper), Image |
| Credit Card Needed | No | Yes |
- 2026-11-27 (Model Replaced): Cloudflare Workers AI deprecated @cf/meta/llama-3.1-8b-instruct (error 5028); the active free model ID is now @cf/meta/llama-3.1-8b-instruct-fast. View change log.
Two Ways to Call Workers AI: REST API vs Worker Binding
If your code runs outside Cloudflare (Python, Node.js, curl), substitute your Cloudflare Account ID into https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/ai/v1 and pass CLOUDFLARE_API_TOKEN. If your app already deploys on Cloudflare Workers, switch to the Worker Binding (TS) tab to call env.AI.run() directly with no external HTTP hop.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/ai/v1",
api_key=os.environ["CLOUDFLARE_API_TOKEN"],
)
r = client.chat.completions.create(
model="@cf/meta/llama-3.1-8b-instruct-fast",
messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
baseURL: "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/ai/v1",
apiKey: process.env.CLOUDFLARE_API_TOKEN,
maxRetries: 0,
});
const r = await client.chat.completions.create({
model: "@cf/meta/llama-3.1-8b-instruct-fast",
messages: [{ role: 'user', content: "Hello" }],
});
console.log(r.choices[0].message.content);curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-d '{"model":"@cf/meta/llama-3.1-8b-instruct-fast","messages":[{"role":"user","content":"Hello"}]}'// Inside a Cloudflare Worker (wrangler.jsonc: "ai": { "binding": "AI" })
export default {
async fetch(request, env) {
const result = await env.AI.run("@cf/meta/llama-3.1-8b-instruct-fast", {
messages: [{ role: "user", content: "Hello from the edge!" }],
});
return Response.json(result);
},
};Creating a Scoped Workers AI Token
Avoid using your Global API Key. Mint a dedicated API Token limited strictly to Workers AI permissions and store both the token and your Account ID in environment variables.
Create a Cloudflare Account
Sign up at dash.cloudflare.com on the Workers Free plan with no payment card required.
Create a Workers AI API Token
Open Profile > API Tokens, create a token with Workers AI Read/Edit permission, and note your Account ID.
Call the OpenAI-Compatible Endpoint
Save the token as CLOUDFLARE_API_TOKEN and substitute your Account ID into the base URL.
Cloudflare Workers AI Questions
Is Cloudflare Workers AI Free Without a Credit Card?
Yes. The Workers Free plan requires no payment card and includes 10,000 free Neurons every day, resetting at 00:00 UTC.
How Many Chat Requests Does 10,000 Neurons Buy?
It depends on the model and prompt length. With a compact 8B model like @cf/meta/llama-3.1-8b-instruct-fast, 10,000 Neurons typically covers roughly 150 to 400 short chat or classification requests per day.
Why Did @cf/meta/llama-3.1-8b-instruct Return Error 5028?
Cloudflare deprecated the original @cf/meta/llama-3.1-8b-instruct slug. Switch your model parameter to @cf/meta/llama-3.1-8b-instruct-fast.
Can I Use the OpenAI SDK With Cloudflare Workers AI?
Yes. Set base_url to https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/ai/v1 with your CLOUDFLARE_API_TOKEN as api_key.