FREE PRACTICAL AI LEARNING · LEARN BY DOINGNO SIGNUP NEEDED · YOUR WORK STAYS YOURS
Open PracticePRACTICAL AI ENGINEERING
API KEYS · GUIDE 6 OF 7

How to get a free Cloudflare Workers AI API key

Free daily AI allowance inside the same account that hosts your Workers and bots.

Checked 29 October 2026. Free tiers change — confirm the live numbers in the console.

You need
A free Cloudflare account (email). No card for the free plan.
Free allowance
A free daily allocation measured in “Neurons” (10,000 per day at the time of writing) across text, image and speech models.
Best for
Your own projects: Telegram/Discord bots and chat widgets built in our Build-apps workshops, image generation, speech-to-text.
Region notes
Cloudflare is available almost everywhere. Workers AI is called from your Worker or with an account API token; it does not accept calls straight from web pages, so it is not offered in Key settings here.

Step by step

  1. Create a free account at dash.cloudflare.com.
  2. Note your Account ID (Workers & Pages → Overview, right side).
  3. For use inside a Worker: add an AI binding in wrangler.toml ([ai] binding = "AI") — no key needed.
  4. For REST use: My Profile → API Tokens → Create Token → template “Workers AI” → Create. Copy the token.
  5. Test with curl: curl https://api.cloudflare.com/client/v4/accounts/ACCOUNT_ID/ai/run/@cf/meta/llama-3.1-8b-instruct -H "Authorization: Bearer TOKEN" -d '{"prompt":"Say hello"}'

Where you will use it

This provider is for your own projects — for example the Telegram, Discord and chat-widget projects in Build apps. It is not used inside Open Practice tools.

If something goes wrong

10000 authentication errorToken lacks the Workers AI permission. Recreate it from the template.
Daily limit reachedThe free Neuron allocation resets daily (UTC).

Keep your key safe

Other free keys

Questions people ask

Is Cloudflare Workers AI free?

A free daily allocation measured in “Neurons” (10,000 per day at the time of writing) across text, image and speech models.

Do I need a credit card for Cloudflare Workers AI?

A free Cloudflare account (email). No card for the free plan.

Is Cloudflare Workers AI available in my country?

Cloudflare is available almost everywhere. Workers AI is called from your Worker or with an account API token; it does not accept calls straight from web pages, so it is not offered in Key settings here.