Cloudflare Clef (Clef, Clef-flash, Clef-omni)
Cloudflare-hosted decision models on Workers AI that take a state and a schema of typed questions (noul, choice, score) and return a probability for every allowed option. Three variants: Clef (27B), Clef-flash (9B), Clef-omni (30B MoE, 3B active).1
PricingUSD, as published
| Item | Value |
|---|---|
| List price | From $0.038/1M in2 |
| Free tier | Yes |
Clef $0.240, Clef-omni $0.150, Clef-flash $0.038 per 1M input tokens; no output-token charge. Media are converted to input tokens.2 [Verified 2026-11-10 on https://developers.cloudflare.com/workers-ai/platform/pricing/ (no change; page last updated Oct 20, 2026) and model pages]
Workers AI billing: $0.011 per 1,000 Neurons; 10,000 Neurons/day free on Free and Paid plans. Clef-flash is listed at 3,455 Neurons per 1M input tokens (Clef 21,818; Clef-omni 13,636).2 [Verified 2026-11-10 on https://developers.cloudflare.com/workers-ai/platform/pricing/ (no change)]
Estimate cost at 10k to 10M requests, or set your own usage.
LimitsPer request
| Limit | Value |
|---|---|
| Context window | 24.6k–65.5k tokens |
| Rate limit | Not published |
Context: Clef 65,536 tokens; Clef-flash 24,576; Clef-omni 64,000.1 [Verified 2026-11-10 on https://developers.cloudflare.com/workers-ai/models/clef/, clef-flash/, and clef-omni/ (no change)]
Clef and Clef-flash: 1–64 questions per request; up to 4 embedded PNG/JPEG/WebP images (4 MiB and 16 megapixels each, 8 MiB total decoded; request body max 13 MiB). Remote image URLs are not accepted.1 [Verified 2026-11-10 on https://developers.cloudflare.com/workers-ai/models/clef/ (no change)]
Clef-omni: 1–64 questions; up to 4 images (4 MiB each), 4 audio clips, 2 videos. Each image capped at 1,024 tokens.5 [Verified 2026-11-10 on https://developers.cloudflare.com/workers-ai/models/clef-omni/ (no change)]
StatusBeta
- Listed on Workers AI model catalog and pricing page. No release-stage label (beta/preview/GA) on the Clef model page. The Clef and Clef-flash model pages now carry a Zero data retention badge.21 [Verified 2026-11-10 on https://developers.cloudflare.com/workers-ai/platform/pricing/ and https://developers.cloudflare.com/workers-ai/models/clef/]
Auth
| Method | API token or binding |
| Details | Cloudflare API token as Authorization: Bearer, on the account-scoped REST endpoint /accounts/{ACCOUNT_ID}/ai/run/@cf/cloudflare/clef; or a Workers AI binding inside a Worker.1 [Verified 2026-11-10 on https://developers.cloudflare.com/workers-ai/models/clef/] |
FeaturesFrom lib/apiFeatures.js
| Capability | State |
|---|---|
| Free tier10,000 Neurons/day free | Yes2 |
| Open source / self-hostApache-2.0 weights on Hugging Face | Yes6 |
| BatchNot on the Clef page | Not published134 |
| Structured JSON outputNot on the Clef page | Not published134 |
| Tool / function callingNot on the Clef page | Not published134 |
| StreamingNot on the Clef page | Not published134 |
| MCP supportNot on the Clef page | Not published134 |
| Fine-tuningNot on the Clef page | Not published134 |
| Official SDKsNot on the Clef page | Not published134 |
| SLA publishedNot on the Clef page | Not published134 |
| EU / data residencyNot on the Clef page | Not published134 |
Fit and safety
Good for
- Clef-flash is the cheapest Clef variant but has the smallest context; long text state is truncated to fit. (Correction 2026-10-16: an earlier version called it the cheapest hosted option here; Perplexity, Inception, and Liquid d1 list $0.02 per 1M.)
Watch out
- Test calibration and order sensitivity on your own labels; vendor pages publish no accuracy figure.
How it works
- Model IDs: @cf/cloudflare/clef, @cf/cloudflare/clef-flash, @cf/cloudflare/clef-omni; System One-style request body via Workers AI binding or REST.
- State can be text, JSON, images, or video; Clef-omni also accepts audio. Images are embedded (no remote URLs).
Compare
Put Cloudflare Clef (Clef, Clef-flash, Clef-omni) side by side with other APIs on price, limits and features. Open the comparison table →
Deciding between a decision model and a generative LLM? See Decision model vs LLM: when to use which.
SourcesFootnotes
- 1clef model pagedevelopers.cloudflare.com/workers-ai/models/clefVerified 2026-11-10
- 2Workers AI pricingdevelopers.cloudflare.com/workers-ai/platform/pricingVerified 2026-11-10
- 3developers.cloudflare.com/workers-ai/platform/limitsdevelopers.cloudflare.com/workers-ai/platform/limitsChecked 2026-11-06
- 4developers.cloudflare.com/workers-ai/features/batch-apidevelopers.cloudflare.com/workers-ai/features/batch-apiChecked 2026-11-06
- 5clef-omni model pagedevelopers.cloudflare.com/workers-ai/models/clef-omniVerified 2026-11-10
- 6huggingface.co/Cloudflare/clefhuggingface.co/Cloudflare/clefVerified 2026-11-06
- 7clef-flash model pagedevelopers.cloudflare.com/workers-ai/models/clef-flashCited