
Our article on Jev explained what a decision model is: instead of writing text, it answers typed questions about your data with a probability for every allowed answer. This one is about its open counterpart. Cloudflare's Clef-flash speaks the same API, publishes its weights and can run on your own server. Below: how it is built, how it compares with Jev, where Cloudflare's own benchmarks put Jev ahead, and how we are adding it as a decision layer for support email in our project portal, where rule-based routing already runs.
What is Cloudflare Clef?
On 1 October 2026 Cloudflare released two decision models, Clef and Clef-flash. They are the first models the Workers AI team trained in-house. Both are licensed under Apache 2.0, and the weights are on Hugging Face as Cloudflare/clef and Cloudflare/clef-flash.
- Clef has 27 billion parameters and is built on Qwen3.8-27B. It aims for accuracy.
- Clef-flash has 9 billion parameters and is built on Qwen3.5-9B. It aims for speed.
Cloudflare describes the structure like this: the Qwen backbone stays frozen during training, and what is trained on top is a set of rank-256 LoRA adapters plus a small head that scores the options. The model reads the input once and scores every allowed answer in parallel; no text is generated along the way. Both models keep the backbone's vision encoder, so a request can carry up to four images next to the text.
The request format is Jev's: a state to judge and typed questions (choice, score, noul), answered with a probability per option and a confidence value. On Workers AI one request can ask up to 64 questions. Moving a Jev integration over is mostly a matter of changing the model name.
On 9 October Cloudflare cut the hosted Clef-flash price from $0.09 to $0.038 per million input tokens and its context window from 64K to 24K tokens; it says only 0.24% of requests were longer. The Hugging Face weights did not change and handle up to 256K tokens when self-hosted. Clef kept its 64K window at $0.24 and became up to twice as fast. Output tokens are free on both.
Running Clef-flash on your own server
Open weights matter above all because the data does not have to leave your infrastructure. Cloudflare's model card says the models were tested on a single H200 GPU and can be served with SGLang, vLLM, Hugging Face Transformers or Docker Model Runner. Quantized builds for llama.cpp and Ollama also exist, made by the community rather than Cloudflare.
When served with SGLang, the model answers Jev-format requests at /v1/systemone. This is the example from Cloudflare's model card:
curl http://localhost:30000/v1/systemone \
-H 'Content-Type: application/json' \
-d '{"model":"Cloudflare/clef-flash","state":"My Stripe integration keeps failing. Please help ASAP.","questions":{"urgency":{"type":"noul","instructions":"Does this message express urgency?"}}}'The request body is the one you would send to Jev or to Workers AI, so the same code can move between the hosted model and your own server. A self-hosted model has no per-token bill, but it needs a GPU and someone to run it. On Workers AI, Cloudflare lists zero data retention for both Clef models; Jev's Workers AI page lists it too. So on Cloudflare this is no difference between the two. The real difference is that only Clef can move off Cloudflare onto your own servers.
Clef-flash vs Jev at a glance
| Jev (TypeSafe AI) | Clef-flash (Cloudflare) | |
|---|---|---|
| Licence | Closed, weights not published | Open source, Apache 2.0 |
| Access | API only (TypeSafe, Cloudflare, Eden AI) | Workers AI or your own server |
| Price per 1M input tokens | $0.042 | $0.038 |
| Output tokens | Free | Free |
| Context window | 32K on Cloudflare; 64K per request on TypeSafe's API | 24K hosted; up to 256K self-hosted |
| Image input | Beta in Jev 1.14 | Up to 4 images per request |
| Median latency (Cloudflare's measurement) | 524 ms | 39 ms |
| Turkish | No official language list; we have not tested it | No official language list; good in our first trial |
One practical note: on Cloudflare, Jev is listed as a third-party model, and on our account calling it required a prepaid balance. Clef-flash ran on the standard Workers AI billing.
What Cloudflare's benchmarks say, and where Jev leads
All the numbers in this section are Cloudflare's own measurements of its own model, published with the launch. They are a useful starting point, not an independent verdict.
- Latency: median 38.8 ms for Clef-flash, 209 ms for Clef and 524 ms for Jev, measured inside the model. Calls from your own code add the network; OpenRouter's independent test put Jev's median at 175 ms, and small independent tests have shown a different order. Measure in your own setup.
- Where Clef-flash leads Jev: seven of ten tasks, including the PhishNChips phishing test (75.05 against 62.55; Clef 79.60) and BANKING77 (90.93 against 79.74). On BFCL all three were close.
- Where Jev leads Clef-flash: When2Call (80.97 against 65.58), the BRIGHT retrieval test (47.52 against 39.26) and CLINC150+OOS (89.27 against 66.77). The last one also measures whether a model can tell that a message fits none of the categories. That matters for email triage, because "belongs to no project" is exactly that case. The larger Clef scored 97.43 there.
- TypeSafe's workflow tests, in the same post: Jev was ahead of Clef-flash on invoice processing and agent trace review; Clef-flash was slightly ahead on customer service.
Our first trial in Turkish
Most of our email is in Turkish, and neither vendor names supported languages. So on 13 November 2026 we ran a small trial on Workers AI with 15 made-up Turkish support emails: bug reports, feature and quote requests, billing questions, an English SEO tool report, spam and phishing. We asked four questions about each: project (11 options), request type (6 options), spam (yes/no) and urgency (low, medium, high).
- On project, type and spam, Clef and Clef-flash both got all 15 right.
- On urgency they matched our labels on 8 of 15. Urgency is subjective, and we set the expected labels ourselves.
- On general correspondence that belongs to no project, confidence fell to 0.3–0.7. That is a good sign: the model tells you when it is not sure.
Each email used about 940 input tokens, most of them question definitions. At list price, 1,000 emails would cost about 3.6 cents with Clef-flash, and the whole trial cost less than half a cent. Fifteen emails are too few for an accuracy claim; what the trial showed us is that the approach deserves a larger test on real traffic. We have not tested Jev itself in Turkish yet.
How we route support email today, and the decision layer we are adding
Live today: rule-based routing. A shared Gmail inbox is connected to our project portal. Every incoming email goes through rules first:
- An address such as
support+project@sends the email to that project. - A product's domain sends it to that product's workspace.
- An English SEO tool report becomes a task in the project of the site it covers.
- A sender who is a customer in the CRM goes to that customer's project.
- Anything the rules cannot place lands in a triage inbox that a person reviews.
Next step, not live yet: a Clef-flash decision layer. When the rules cannot decide, Clef-flash will choose the project, request type, spam and urgency in one call. If its confidence is high, the email is assigned automatically; if it is low, the email stays with a person. The decisions people make in the triage inbox become the data we use to set the model's threshold. The same call will also answer "is this a meeting request?" for our calendar integration.
Why this structure:
- Rules are exact and free, so they go first.
- The model is cheap and fast, so it handles only the unclear cases.
- A person has the last word wherever the model is unsure.
- The model writes no text. Its only output is one of the options we defined, so a sentence in an email that says "do this" cannot turn into an action. Every external action still goes through an approval card.
The model also runs on Cloudflare, so it adds no load to our servers, and since it shares Jev's API, switching models is a setting. If you are planning a similar step, our AI integration and automation team can help you design and test it, inside a product or as part of a process automation project.
Frequently asked questions
How much does Cloudflare Clef cost?
On Workers AI, Clef-flash costs $0.038 and Clef $0.24 per million input tokens; output is free and images count as input tokens. Self-hosting has no licence fee, but you pay for the GPU.
Is Clef better than Jev?
In Cloudflare's own benchmarks, Clef-flash is faster and ahead on seven of ten tasks, while Jev leads on When2Call, BRIGHT and CLINC150+OOS. No independent comparison of the two has been published yet, so test both on your own data.
Where can I download Clef, and can I run it locally?
The weights are on Hugging Face as Cloudflare/clef and Cloudflare/clef-flash. Cloudflare's model card covers SGLang, vLLM and Transformers; community quantized builds also run in Ollama.
What is the difference between Clef and Clef-flash?
Clef (27B) has a 64K hosted context window and scores higher on most of Cloudflare's tests. Clef-flash (9B) has a 24K hosted window, lower latency and a price about six times lower.
Does Clef-flash work in Turkish?
Cloudflare lists no supported languages. In our first trial with 15 Turkish support emails it got project, type and spam right every time: a promising start, not an accuracy claim.
Related services
Where this topic becomes an engagement.
Keep reading
The articles that follow this one.



