Cloudflare (Workers AI)BetaVerified 2026-11-10

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

ItemValue
List priceFrom $0.038/1M in2
Free tierYes

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

LimitValue
Context window24.6k–65.5k tokens
Rate limitNot 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

MethodAPI token or binding
DetailsCloudflare 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

YesNoN/ANot published
CapabilityStateNote
Free tier10,000 Neurons/day freeYes210,000 Neurons/day free
Open source / self-hostApache-2.0 weights on Hugging FaceYes6Apache-2.0 weights on Hugging Face
BatchNot on the Clef pageNot published134Not on the Clef page
Structured JSON outputNot on the Clef pageNot published134Not on the Clef page
Tool / function callingNot on the Clef pageNot published134Not on the Clef page
StreamingNot on the Clef pageNot published134Not on the Clef page
MCP supportNot on the Clef pageNot published134Not on the Clef page
Fine-tuningNot on the Clef pageNot published134Not on the Clef page
Official SDKsNot on the Clef pageNot published134Not on the Clef page
SLA publishedNot on the Clef pageNot published134Not on the Clef page
EU / data residencyNot on the Clef pageNot published134Not on the Clef page

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

  1. Model IDs: @cf/cloudflare/clef, @cf/cloudflare/clef-flash, @cf/cloudflare/clef-omni; System One-style request body via Workers AI binding or REST.
  2. 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

  1. 1clef model pagedevelopers.cloudflare.com/workers-ai/models/clefVerified 2026-11-10
  2. 2Workers AI pricingdevelopers.cloudflare.com/workers-ai/platform/pricingVerified 2026-11-10
  3. 3developers.cloudflare.com/workers-ai/platform/limitsdevelopers.cloudflare.com/workers-ai/platform/limitsChecked 2026-11-06
  4. 4developers.cloudflare.com/workers-ai/features/batch-apidevelopers.cloudflare.com/workers-ai/features/batch-apiChecked 2026-11-06
  5. 5clef-omni model pagedevelopers.cloudflare.com/workers-ai/models/clef-omniVerified 2026-11-10
  6. 6huggingface.co/Cloudflare/clefhuggingface.co/Cloudflare/clefVerified 2026-11-06
  7. 7clef-flash model pagedevelopers.cloudflare.com/workers-ai/models/clef-flashCited