Cloudflare Workers AI Bring Your Own Key Guide
Connect your own Cloudflare Workers AI API key to run AI models in the Playground and Compare tool with zero accounts. Follow the official key setup steps below, review how the stateless proxy operate, and verify your credentials on the Keys page.
How to Get a Cloudflare Workers AI API Key
Follow these four steps using the official Cloudflare Workers AI console, then validate your key on /keys.
- Sign in to the Cloudflare dashboard and copy your Account ID from the Workers & Pages overview sidebar.
- Open My Profile, navigate to API Tokens, and click Create Token.
- Select the Workers AI template or create a custom token with Account > Workers AI > Read and Edit permissions.
- Copy the generated token and paste both your Account ID and API token into the Keys page.
How Bring Your Own Key Works With Cloudflare Workers AI
Cloudflare REST API endpoints at api.cloudflare.com do not send browser CORS headers for client-side fetches; calls route through the stateless /api/proxy/cloudflare endpoint.
Official API Base: https://api.cloudflare.com/client/v4
Official documentation: https://developers.cloudflare.com/workers-ai/get-started/rest-api/
Cloudflare Workers AI Supported Models
Models from our directory confirmed on Cloudflare Workers AI's official model list, loaded from data/model-availability.json with provider-specific IDs, pricing, and requirements.
| Model | Provider Model ID | Published Rate ($/1M) | Requirement |
|---|---|---|---|
| Inkling 2 Small | @cf/inkling/inkling-2-small | See docs | Workers Paid / Credits |
| Clairic Flash | @cf/clairic/clairic-flash | See docs | Standard Access |
| DeepSeek V4.1 Flash | @cf/deepseek/deepseek-v4.1-flash-1017 | See docs | Workers Paid / Credits |
| Clairic | @cf/clairic/clairic | See docs | Standard Access |
| PhoneLLM Mini Alpha 2 | @cf/phonellm/phonellm-mini-alpha-2 | See docs | Standard Access |
| Clef Omni | @cf/clef/clef-omni | See docs | Standard Access |
| Apertus v1.5 8B | @cf/apertus/apertus-v1.5-8b | See docs | Access Form Required |
| EuroLLM 9B Instruct | @cf/utter-project/eurollm-9b-it | See docs | Access Form Required |
| Clef | @cf/clef/clef | See docs | Standard Access |
| Clef Flash | @cf/clef/clef-flash | See docs | Standard Access |
| Qwen 3.8 27B | @cf/qwen/qwen3.8-27b | See docs | Standard Access |
| GLM-5.3 | @cf/zai-org/glm-5.3 | See docs | Workers Paid / Credits |
| Gemma 4 26B A4B Instruct | @cf/google/gemma-4-26b-a4b-it | See docs | Standard Access |
| GLM-4.7 Flash | @cf/zai-org/glm-4.7-flash | See docs | Standard Access |
| Granite 4.0 H Micro | @cf/ibm-granite/granite-4.0-h-micro | $0.017 / $0.112 | Standard Access |
| Gemma SEA-LION v4 27B Instruct | @cf/aisingapore/gemma-sea-lion-v4-27b-it | See docs | Standard Access |
| GPT-OSS 20B | @cf/openai/gpt-oss-20b | $0.200 / $0.300 | Standard Access |
| GPT-OSS 120B | @cf/openai/gpt-oss-120b | $0.350 / $0.750 | Standard Access |
| Llama 4 Scout 17B 16E Instruct | @cf/meta/llama-4-scout-17b-16e-instruct | $0.270 / $0.850 | Standard Access |
| Mistral Small 3.1 24B Instruct | @cf/mistralai/mistral-small-3.1-24b-instruct | $0.351 / $0.555 | Standard Access |
| Qwen2.5 Coder 32B Instruct | @cf/qwen/qwen2.5-coder-32b-instruct | $0.660 / $1.000 | Standard Access |
| Llama Guard 3 8B | @cf/meta/llama-guard-3-8b | $0.484 / $0.030 | Standard Access |
| Llama 3.3 70B Instruct FP8 Fast | @cf/meta/llama-3.3-70b-instruct-fp8-fast | $0.293 / $2.253 | Standard Access |
| Llama 3.2 11B Vision Instruct | @cf/meta/llama-3.2-11b-vision-instruct | See docs | Standard Access |
| Mistral 7B Instruct v0.2 LoRA | @cf/mistral/mistral-7b-instruct-v0.2-lora | See docs | Standard Access |
| PLaMo Embedding 1B | @cf/pfnet/plamo-embedding-1b | See docs | Standard Access |
| Qwen3 Embedding 0.6B | @cf/qwen/qwen3-embedding-0.6b | See docs | Standard Access |
| BGE-M3 | @cf/baai/bge-m3 | $0.012 in | Standard Access |
| BGE Small EN v1.5 | @cf/baai/bge-small-en-v1.5 | $0.020 in | Standard Access |
| BGE Large EN v1.5 | @cf/baai/bge-large-en-v1.5 | $0.204 in | Standard Access |
| BGE Base EN v1.5 | @cf/baai/bge-base-en-v1.5 | $0.067 in | Standard Access |
| BGE Reranker Base | @cf/baai/bge-reranker-base | $0.003 in | Standard Access |
| DistilBERT SST-2 INT8 | @cf/huggingface/distilbert-sst-2-int8 | $0.026 in | Standard Access |
| Pricing Component | Published Rate | Scope |
|---|---|---|
| Daily Free Allocation | 10,000 Neurons / day | Resets daily at 00:00 UTC on Free and Paid plans |
| Workers Paid Overage Rate | $0.011 per 1,000 Neurons | Billed only on usage above the 10,000 free daily Neurons |
Frequently Asked Questions
Does Cloudflare Workers AI Call Directly From the Browser or Through a Proxy?
Cloudflare REST API endpoints at api.cloudflare.com do not send browser CORS headers for client-side fetches; calls route through the stateless /api/proxy/cloudflare endpoint.
Are My Cloudflare Workers AI Credentials Stored on Your Server?
No. Your Cloudflare Workers AI key stays in browser local storage only and is never logged, cached, or stored server-side.
Related Tools and Key Management
Add and Test API Keys
Save and validate your Cloudflare Workers AI key locally.
AI Text Generator
Stream completions with your Cloudflare Workers AI key.
Compare Across Providers
Compare Cloudflare Workers AI side by side with other AI providers.
AI Models Finder
Explore all 33 AI models by task, maker, and provider availability.