Cloudflare released Clef and Clef-Flash, two models built to make bounded decisions for AI agents. Rather than write a response, they take input such as a support request and answer typed questions—for example, whether it is urgent or which team should handle it—with a probability for each allowed answer. Software can use those results to route a ticket, block a request or send it to a person.
The larger Clef model has 27 billion parameters; Clef-Flash has 9 billion and is intended for quicker decisions. Both are available through Cloudflare’s Workers AI service and as downloadable model weights on Hugging Face under the Apache 2.0 license. Cloudflare says the models can process text, structured data, images and video. Its developer documentation specifies a 64,000-token context window and support for up to 64 questions in a request.
How would an agent use Clef?
A developer defines the questions and permitted answers in advance. Clef returns structured results, including probabilities, so the agent’s code can act without parsing free-form text. The API follows the format used by Typesafe AI’s Jev System One, which Cloudflare says makes it possible to switch an existing Jev integration by changing the endpoint and model.
Cloudflare positions Clef as a decision step that can sit in an agent’s request path, while a separate language model handles open-ended tasks or takes action. It also announced a reinforcement-learning fine-tuning service for adapting Clef to a customer’s workload. At launch, customers can work with Cloudflare engineers; a self-service option is planned, but the company gave no release date.
What do the reported results show?
Cloudflare reports median latency of 209.3 milliseconds for Clef and 38.8 milliseconds for Clef-Flash across 43 benchmark runs; Jev’s median was 524.1 milliseconds. In the company’s results for BFCL case exact, Clef scored 98.47 and Clef-Flash 98.76, compared with Jev’s 95.75. On BANKING77 macro-F1, the scores were 94.20, 90.93 and 79.74, respectively. These are vendor-reported evaluations, not independent validation.
Results vary by task: on Cloudflare’s CLINC150+OOS macro-F1 test, Clef scored 97.43, while Clef-Flash scored 66.77 and Jev 89.27. Cloudflare says its models scored highest on seven of ten decision benchmarks and beat Jev in three of four workflow evaluations. These figures do not establish how well the models will perform on a customer’s own data.
Why it matters
For teams building support or safety agents, Clef offers a way to get structured choices and probabilities that software can route or escalate without interpreting generated text. The published speed and quality figures come from Cloudflare’s evaluations; how reliably Clef handles a particular team’s cases, especially costly mistakes, remains to be tested on that team’s data.