AI & Services

Cloudflare Releases Clef: An Apache 2.0 Decision Model, Plus Clef-Flash.

Cloudflare's Clef and Clef-Flash are open-weight decision models that return per-option probabilities. What they offer: a Jev-compatible API, local execution, and RL fine-tuning.

· Huuush

Cloudflare Releases Clef: An Apache 2.0 Decision Model, Plus Clef-Flash

Key takeaways

  1. 1Cloudflare Clef and Clef-Flash return per-option probabilities based on a state made of text, JSON, or images.
  2. 2Clef is a 27B model based on Qwen3.8-27B and Clef-Flash is a 9B model based on Qwen3.5-9B, and the weights are released under Apache 2.0.
  3. 3Workers AI hosting and Hugging Face weights are available, and RL fine-tuning is currently offered as a custom service from the FDE team.
Image representing a decision model choosing one of several options

Cloudflare has released Clef and Clef-Flash, open-weight decision models. Both models take a state, such as text, JSON, or images, plus a question, and return probabilities for a fixed set of options. Cloudflare hosts the models on Workers AI and has released the weights on Hugging Face under the Apache 2.0 license.

Clef returns probabilities for fixed options

Instead of continuing a free-form answer like an ordinary language model, Clef returns a structured judgment an agent needs to pick its next action. A request carries the current state and one or more questions, and each question is expressed as one of these three types.

  • noul: Judges true or false, like yes or no.
  • choice: Judges which of the given options to pick.
  • score: Produces a score for an ordered value.

The response includes a probability for each answer. You can put several questions in one request, which suits agent steps where options can be defined ahead of time, like classification, routing, and policy decisions. Cloudflare's Clef announcement presents it as a model for making fast, repeatable decisions in agent workflows.

Clef and Clef-Flash: a choice between accuracy and latency

The two models have different sizes and latency profiles. Cloudflare's model cards describe Clef as a 27B model based on Qwen3.8-27B and Clef-Flash as a 9B model based on Qwen3.5-9B.

ModelBase model and sizeRecommended use per CloudflareMedian latencyp95 latency
ClefQwen3.8-27B · 27BAccuracy-first judgments209.3ms238.6ms
Clef-FlashQwen3.5-9B · 9BLatency-sensitive hot paths38.8ms122.4ms
JevSystem One decision modelComparison baseline524.1ms536.0ms

These figures are latencies from 43 evaluation runs reported by Cloudflare. The announcement's "13x faster than Jev" comparison corresponds to Clef-Flash's median of 38.8ms versus Jev's 524.1ms. At p95, they are 122.4ms and 536.0ms respectively. The median and p95 are different measures, so it pays to keep them apart. The comparison describes that Cloudflare evaluation's results and is not presented as a universal speed figure for every input or runtime environment. You can see the details in the Workers AI changelog and the Clef model card.

Workers AI hosting and open weights

Cloudflare has made both models available on Workers AI, and it provides the weights under Apache 2.0 in its Hugging Face repositories. Hosting works by sending the state and questions as a Workers AI request. In Cloudflare's example, you call it from a Workers environment in the form env.AI.run("@cf/cloudflare/clef", { model: "clef", state, questions }).

The model card also describes a way to run the downloaded weights yourself. The Clef-Flash card has a Python example that downloads the model files and handles requests with load_release_model and the systemone helper. The verification environment the card lists is PyTorch 2.11, Transformers 5.10.2, and a single NVIDIA H200. That is the environment the example was verified in and doesn't indicate the minimum memory spec for ordinary local runs. The model card gives no minimum VRAM or RAM figure.

The model card also describes an interface that includes arrays of images and video frames in the input. In the local Python example, the images or frames are passed to local preprocessing code. The M5 Max webcam demo shown in the announcement is also a local inference demonstration. If you choose Workers AI hosting, by contrast, your input requests are sent to Cloudflare's hosted service. Data handling differs between the two deployment paths.

Request and response formats compatible with Jev

The systemone helper in the Clef model card is compatible with the request body format and response structure of Jev/System One's POST /v1/systemone. The response includes model, answers, usage, and more, and expresses noul, choice, and score results. Compatible here means within the scope of that API's request and response schema. It doesn't mean it is the same model or service as the whole Jev product.

To explore decision models and the Jev ecosystem further, read the introduction to CLM-8B and the System One decision model Jev, Unsloth Laya's Jev-compatible local run, and OpenAI Decisions API.

RL fine-tuning is currently offered as a custom service

Along with the Clef announcement, Cloudflare also revealed plans for a reinforcement learning (RL) fine-tuning platform for decision models. What it offers now is a service in which Cloudflare's FDE (forward-deployed engineering) team works with you to tune the model to your workload, and it is accepting design partner applications. A self-service platform where customers collect their own data, fine-tune, and redeploy is a future plan. So you should distinguish between what customers can use self-service today and the platform to be built later.

Official resources

Frequently asked questions

What is the difference between Cloudflare Clef and Clef-Flash?
Clef is a 27B model based on Qwen3.8-27B, and Clef-Flash is a 9B model based on Qwen3.5-9B. Cloudflare recommends Clef for accuracy-first judgments and Clef-Flash for latency-sensitive work.
What does Clef return?
For noul (yes/no), choice (selection), and score (ordinal score) questions, it returns probabilities for each fixed answer.
Is Clef the same service as Jev?
No. It means the systemone helper in the model card is compatible with the request and response schema of the Jev/System One API.
Can I use the RL fine-tuning platform myself right now?
At the time of the announcement, it is offered as a custom fine-tuning service in partnership with Cloudflare's FDE team. A self-service platform is a future plan.

Related articles