Cloudflare Workers AI free allowance and compatible API
Cloudflare Workers AI is an official, OpenAI-compatible API. Its published free cap is in Neurons per day, not tokens, and the base URL includes your account id.
Last updated 12 Nov 2026. The provider figures on this page follow the tracker snapshot of 12 Nov 2026, 08:59 IST.
What is Cloudflare Workers AI on this tracker?
Cloudflare Workers AI is listed as an official provider, with OpenAI compatibility Yes. The recorded free allowance is “10,000 Neurons/day (not tokens)”. Tokens per day are Not published, because the cap is not published as tokens. Limits are Not published. Card required is No. Relay warning: no. Our notes say: Allowance is in Neurons; token equivalent depends on model.
The official URL we store is https://developers.cloudflare.com/workers-ai/platform/pricing/. The entry was first listed on 3 Oct 2026 and last updated on 3 Oct 2026. The list snapshot is 12 Nov 2026, 08:59 IST.
| Official site | Visit Cloudflare Workers AI |
|---|---|
| Category | Official provider |
| OpenAI compatible | Yes |
| Free allowance | 10,000 Neurons/day (not tokens) |
| Tokens per day | Not published |
| Rate limits | Not published |
| Card required | No |
| Base URL | https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1 |
| Relay warning | No |
| First listed | 3 Oct 2026 |
| Entry updated | 3 Oct 2026 |
| Notes | Allowance is in Neurons; token equivalent depends on model. |
Why does this page refuse to convert Neurons into tokens?
Because our notes say the token equivalent depends on the model, and the official unit is Neurons. A homemade conversion would be an invented quota, which this site does not publish. If you need to know how a specific model spends Neurons, use Cloudflare’s official pricing documentation. For the wider idea that not every cap is a token cap, see Rate limits explained.
When you compare this row with providers that publish tokens per day, do not sort them as if the units were the same. The current snapshot will show Cloudflare in the official table with its Neuron wording, and it will be absent from the tokens-per-day table — that is expected.
How do I use the published base URL?
The base URL in our list is https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1. The {ACCOUNT_ID} portion is a placeholder, not the literal text you should send. Replace it with the Cloudflare account id from your official dashboard. If you leave the braces in place, the request will not reach the API.
Once the URL is complete, the OpenAI SDK pattern is the same as for other compatible official providers. Copy the model id from Cloudflare’s official Workers AI model list.
Python
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["API_KEY"],
base_url="https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1",
)
resp = client.chat.completions.create(
model="MODEL_ID", # copy the model id from the provider's docs
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
JavaScript
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.API_KEY,
baseURL: "https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1",
});
const resp = await client.chat.completions.create({
model: "MODEL_ID", // copy the model id from the provider's docs
messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);
curl
# Replace the URL with the provider's published base URL, then append /chat/completions
# Base URL in our list: https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1
curl "$BASE_URL/chat/completions" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"MODEL_ID","messages":[{"role":"user","content":"Hello"}]}'
The MODEL_ID string is not guessed here. Copy it from the provider’s dashboard or official model list, because catalogues change.
Some official Cloudflare examples use their own Workers or bindings instead of an external SDK. Those are valid ways to call the same product. This page shows the compatible HTTP interface we recorded, because it is the one you need to point an existing OpenAI client at the published URL.
What else should I check in the official docs?
Look for the current Neuron allowance, whether it still applies to the models you want, any request-rate limits that are not in our limits field (ours is Not published), and how authentication is expressed. Cloudflare APIs often use account-scoped credentials; follow their current quickstart for the compatible endpoint rather than assuming that a generic bearer token setup is complete.
We will not invent extra headers or token-exchange steps that are not in our notes. If the official quickstart requires a different auth header than Authorization: Bearer, use the official quickstart.
Is this an official provider or a gateway?
It is an official provider in our category field, with no relay warning. You still need to read Cloudflare’s terms for how inputs are handled. Official hosting is a reason to prefer it over an unofficial relay for private text, not a waiver of the provider’s own policy. See Official providers vs gateways and How to keep API keys safe.
Card required is recorded as No. Confirm on the official signup and billing pages, especially if you already have a Cloudflare account with a card on file for other products.
How might I try it safely?
Create or use a Cloudflare account, copy the account id, create the official API credential the docs require, and put that credential in an environment variable. Substitute the account id into the base URL. Send a one-line prompt with a model id from the official list. Then check the official usage or Neuron display, if one is shown, before connecting an agent that might loop.
If you are choosing among official compatible APIs, compare this Neuron-based allowance with Groq’s published daily token and request caps and Gemini’s selected-model free tier. They are different shapes of “free,” not three sizes of the same cap.
How do I report a change?
If Cloudflare’s official pricing page no longer matches the fact box, send the public URL. We review the list on weekdays and will not update a Neuron figure from a forum post or from a conversion formula.
How is this different from other Cloudflare products on a free plan?
Cloudflare offers many products, and a free plan on one product is not automatically a free LLM allowance on Workers AI. Our row is only about the Workers AI allowance we recorded — “10,000 Neurons/day (not tokens)” — and the compatible API URL. Do not treat this page as a guide to Workers, Pages, DNS or billing for the rest of the account.
If you already use Cloudflare for hosting, you may still need to enable Workers AI and create the credential the official AI docs describe. Follow those docs rather than reusing an unrelated API token that does not have the right permission. This site cannot see your account and cannot tell you which token permission checkbox to tick if official docs change.
What should I do after a first successful call?
Check any official usage or Neuron display. If you plan to call the API from a Worker as well as from an external SDK, confirm in the official docs whether those paths share the same daily Neuron allowance. We do not invent a split or a combined cap. Keep the credential in the environment, and do not put {ACCOUNT_ID} or the token into a public repository.