Free Cloudflare Workers AI API: limits, models & how to get a key
10,000 Neurons per day free on the Workers Free plan, resetting at 00:00 UTC.
- Credit card
- Card unclear
- From China
- VPN
- OpenAI
- OpenAI-compatible
- Real-name check
- No real-name check
- Free allowance type
- Resets daily
- Checked
- verified on 2026-11-24 (official)
WebsiteSign upDocsPricing page
Limits
| Free allocation | 10,000 Neurons/day |
|---|---|
| Reset | Daily 00:00 UTC |
| Beyond free | Needs Workers Paid; $0.011 per 1,000 Neurons |
| Endpoints | Chat Completions, Embeddings; Responses only for gpt-oss models (non-streaming) |
Free models
@cf/meta/llama-3.1-8b-instruct@cf/openai/gpt-oss-120b@cf/openai/gpt-oss-20b
How to get a key
- Create a Cloudflare account.
- In the dashboard open Workers AI and choose Use REST API.
- Create a Workers AI API token from the template and copy your Account ID.
- Point an OpenAI client at https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1 with the token.
Call it
OpenAI-compatible base URL from this provider’s record: https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1. Replace YOUR_API_KEY with a key from that provider. The model id is one listed as free.
curl
curl https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"@cf/meta/llama-3.1-8b-instruct","messages":[{"role":"user","content":"Hello"}]}'Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="@cf/meta/llama-3.1-8b-instruct",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Notes
- Neuron cost varies per model, so the number of requests per day depends on the model.
- Pricing page does not say whether a card is needed for the free allocation.
- Only three model IDs were confirmed from docs pages; the catalog has many more.
Sources and check date
Checked on the provider’s own page on 2026-11-24.
Similar providers
- OpenRouter — Models ending in :free cost $0, limited to 20 requests/minute and 50 requests/day (1,000/day after buying 10+ credits).
- Google Gemini — Many Gemini Flash and Flash-Lite models are free of charge on the Free tier, with per-project rate limits shown in AI Studio.
- Groq — Groq has a Free plan with daily request and token caps per model; exact free numbers are shown in your console.
- Cohere — Free trial keys can use all Cohere models, capped at 1,000 API calls per month.
Questions
- Is the Cloudflare Workers AI API free?
- 10,000 Neurons per day free on the Workers Free plan, resetting at 00:00 UTC.
- Does Cloudflare Workers AI require a credit card?
- The pages we checked did not say whether Cloudflare Workers AI requires a credit card.
- Can I reach Cloudflare Workers AI from China without a VPN?
- Our check marked Cloudflare Workers AI as needing a VPN from China.
- Is the Cloudflare Workers AI API OpenAI-compatible?
- Yes. The recorded base URL is https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/v1.
- When was the Cloudflare Workers AI free tier checked?
- We checked Cloudflare Workers AI on the provider’s own page on 2026-11-24.
Get an email when a free tier changes
Leave an address. We mail it when a free allowance on this list changes.