Skip to main content
Stateless Proxy · Bring Your Own Key

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.


Onboarding

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.

  1. Sign in to the Cloudflare dashboard and copy your Account ID from the Workers & Pages overview sidebar.
  2. Open My Profile, navigate to API Tokens, and click Create Token.
  3. Select the Workers AI template or create a custom token with Account > Workers AI > Read and Edit permissions.
  4. Copy the generated token and paste both your Account ID and API token into the Keys page.

Transport & Security

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.

Transport Path:Stateless Proxy (/api/proxy/cloudflare)

Official API Base: https://api.cloudflare.com/client/v4

Official documentation: https://developers.cloudflare.com/workers-ai/get-started/rest-api/


Confirmed Availability

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.

Cloudflare Workers AI confirmed models
ModelProvider Model IDPublished Rate ($/1M)Requirement
Inkling 2 Small@cf/inkling/inkling-2-smallSee docsWorkers Paid / Credits
Clairic Flash@cf/clairic/clairic-flashSee docsStandard Access
DeepSeek V4.1 Flash@cf/deepseek/deepseek-v4.1-flash-1017See docsWorkers Paid / Credits
Clairic@cf/clairic/clairicSee docsStandard Access
PhoneLLM Mini Alpha 2@cf/phonellm/phonellm-mini-alpha-2See docsStandard Access
Clef Omni@cf/clef/clef-omniSee docsStandard Access
Apertus v1.5 8B@cf/apertus/apertus-v1.5-8bSee docsAccess Form Required
EuroLLM 9B Instruct@cf/utter-project/eurollm-9b-itSee docsAccess Form Required
Clef@cf/clef/clefSee docsStandard Access
Clef Flash@cf/clef/clef-flashSee docsStandard Access
Qwen 3.8 27B@cf/qwen/qwen3.8-27bSee docsStandard Access
GLM-5.3@cf/zai-org/glm-5.3See docsWorkers Paid / Credits
Gemma 4 26B A4B Instruct@cf/google/gemma-4-26b-a4b-itSee docsStandard Access
GLM-4.7 Flash@cf/zai-org/glm-4.7-flashSee docsStandard Access
Granite 4.0 H Micro@cf/ibm-granite/granite-4.0-h-micro$0.017 / $0.112Standard Access
Gemma SEA-LION v4 27B Instruct@cf/aisingapore/gemma-sea-lion-v4-27b-itSee docsStandard Access
GPT-OSS 20B@cf/openai/gpt-oss-20b$0.200 / $0.300Standard Access
GPT-OSS 120B@cf/openai/gpt-oss-120b$0.350 / $0.750Standard Access
Llama 4 Scout 17B 16E Instruct@cf/meta/llama-4-scout-17b-16e-instruct$0.270 / $0.850Standard Access
Mistral Small 3.1 24B Instruct@cf/mistralai/mistral-small-3.1-24b-instruct$0.351 / $0.555Standard Access
Qwen2.5 Coder 32B Instruct@cf/qwen/qwen2.5-coder-32b-instruct$0.660 / $1.000Standard Access
Llama Guard 3 8B@cf/meta/llama-guard-3-8b$0.484 / $0.030Standard Access
Llama 3.3 70B Instruct FP8 Fast@cf/meta/llama-3.3-70b-instruct-fp8-fast$0.293 / $2.253Standard Access
Llama 3.2 11B Vision Instruct@cf/meta/llama-3.2-11b-vision-instructSee docsStandard Access
Mistral 7B Instruct v0.2 LoRA@cf/mistral/mistral-7b-instruct-v0.2-loraSee docsStandard Access
PLaMo Embedding 1B@cf/pfnet/plamo-embedding-1bSee docsStandard Access
Qwen3 Embedding 0.6B@cf/qwen/qwen3-embedding-0.6bSee docsStandard Access
BGE-M3@cf/baai/bge-m3$0.012 inStandard Access
BGE Small EN v1.5@cf/baai/bge-small-en-v1.5$0.020 inStandard Access
BGE Large EN v1.5@cf/baai/bge-large-en-v1.5$0.204 inStandard Access
BGE Base EN v1.5@cf/baai/bge-base-en-v1.5$0.067 inStandard Access
BGE Reranker Base@cf/baai/bge-reranker-base$0.003 inStandard Access
DistilBERT SST-2 INT8@cf/huggingface/distilbert-sst-2-int8$0.026 inStandard Access
Cloudflare Workers AI published pricing
Pricing ComponentPublished RateScope
Daily Free Allocation10,000 Neurons / dayResets daily at 00:00 UTC on Free and Paid plans
Workers Paid Overage Rate$0.011 per 1,000 NeuronsBilled 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