Free credits / metered
cf/Cloudflare
Cloudflare Workers AI — free tier on edge.
developers.cloudflare.comQuick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click Cloudflare
Paste your API key, click Save
Test the connection
Use in your IDE
Point any OpenAI-compatible client at kRouter using your local API key.
# Endpoint
http://localhost:20128/v1
# API key (from Dashboard → API Keys)
sk-krouter-XXXX
# Model
cf/@cf/meta/llama-3.3-70bHow Cloudflare billing works with kRouter
Cloudflare gives you free starting credits, then bills per token. kRouter tracks the remaining quota and fails over to another provider before you hit a wall. kRouter authenticates it via apikey. 2 models are routable as cloudflare-ai/<model>.
Through kRouter, Cloudflare serves chat and code completion and image generation, exposed on /v1/images/generations. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from Cloudflare is a one-line model change in your client rather than a rewrite.
Workers AI free tier. Requires a Cloudflare API token and Account ID.
Cloudflare models & pricing
These are the model ids kRouter routes to. This provider does not publish per-token rates.
| Model | Route as |
|---|---|
| Stable Diffusion v1.5 Inpainting | cloudflare-ai/@cf/runwayml/stable-diffusion-v1-5-inpainting |
| SDXL Base 1.0 | cloudflare-ai/@cf/stabilityai/stable-diffusion-xl-base-1.0 |
Cloudflare links
Cloudflare FAQ
Is Cloudflare free through kRouter?
Cloudflare is pay-per-token: you bring your own API key and are billed by Cloudflare at their rates. kRouter adds nothing on top and is free and MIT-licensed.
How do I use Cloudflare with Claude Code or Cursor?
Connect Cloudflare in the kRouter dashboard, then point your tool at kRouter's local endpoint (http://localhost:20128/v1) with a kRouter API key. Any OpenAI-compatible client works, and models are addressed as cloudflare-ai/<model>.
Which Cloudflare models can kRouter route to?
2 models, including Stable Diffusion v1.5 Inpainting, SDXL Base 1.0. Every one is addressed as cloudflare-ai/<model> from any client.
What happens when Cloudflare is rate limited?
kRouter detects the limit, parks that account until its real reset time, and fails over to your next connected account or provider — so the request still completes instead of erroring.