Metronome.fm uses Jev, a model that only makes decisions, to moderate forum posts and to turn voice requests into actions. In early October, Cloudflare released Clef, which takes the same kind of API. Its official numbers say it is more accurate and faster than Jev, and it handles images.
The app already routes its AI calls through Cloudflare AI Gateway. If the decision model were also made by Cloudflare, I would depend on one fewer company. I wanted to switch if accuracy improved too, so I compared the two on the app's four evaluations (tests that check decisions against example inputs with known correct answers). In short, I'm staying with Jev for now.
What Jev is
Jev is a model from TypeSafe AI that makes decisions without writing text. You pass an input (state) and questions, and it returns a probability for each option of each question.
{
"state": "A user typed this request into the \"edit settings with AI\" box of a metronome app:\nうんこ",
"questions": {
"kind": {
"type": "choice",
"instructions": "What kind of input is this?",
"criteria": { "edit": "…", "create": "…", "song": "…", "unrelated": "…" }
}
}
}The state above is a real test input: the Japanese word for "poop". All that comes back is probabilities like { "edit": 0.01, "unrelated": 0.99 }, so there is no text to parse. The app accepts or rejects based on whether a probability reaches a preset value, which I'll call the threshold in this post. It costs $0.042 per million input tokens, about $0.00002 per decision when classifying a settings request.
Metronome.fm uses it in four places, all called through Cloudflare AI Gateway.
Where | What it decides |
|---|---|
Editing settings with AI | Whether the request is about metronome settings |
Voice commands | Which action was asked for, and whether it was just talking to oneself |
Forum posts | Whether the post is spam, abuse, or off topic |
Forum images | Whether the image is sexual, violent, hateful, or an ad |
What Clef is
Clef is a decision model that Cloudflare released on October 1, 2026. It is based on a 27B Qwen model whose weights stay frozen; only a part that outputs decisions plus a small set of added weights are trained. There is also a lighter Clef-flash (9B). The weights are published under Apache 2.0, and on Workers AI you call it as @cf/cloudflare/clef.
Like Jev, you pass state and questions and get probabilities back. Cloudflare says it is compatible with the Jev API. Here are the differences.
Jev | Clef | |
|---|---|---|
Made by | TypeSafe AI | Cloudflare |
Input price (per million tokens) | $0.042 | $0.24 (output is free) |
Images | Experimental | Up to 4 per request |
Context length | 32k | 64k |
Latency (official median) | 524ms | 209ms |
In the official benchmarks, Clef wins by a wide margin on classification with many options. On BANKING77, which sorts bank inquiries into 77 types, Clef scores 94.2 and Jev 79.7. On deciding whether a tool should be called (When2Call), Jev wins with 81.0 against Clef's 72.4. All of these numbers were measured by Cloudflare.
Clef costs 5.7 times more per token, but it counts fewer tokens for the same text. A short settings request came to 333 tokens on Jev and 148 on Clef.
Switching in one place
The four decision points each called Jev directly. Before comparing, I moved the calls into one file so that a single constant picks the model.
type DecisionModelKey = "jev" | "clef" | "clef-flash";
export const DECISION_MODEL: DecisionModelKey = "jev";
export const DECISION_MODEL_IDS: Record<DecisionModelKey, string> = {
jev: "typesafe/jev",
clef: "@cf/cloudflare/clef",
"clef-flash": "@cf/cloudflare/clef-flash",
};Even with a compatible API, it wasn't a drop-in swap. Two things differed, and the file handles both.
- Response nesting: Jev puts the answers in
result.result.answers, Clef inresult.answers - Images: Jev takes a marker like
{{forum_image}}inside the state plusassets. Clef takes animagesarray, and the images are placed before the state
Comparing on four evaluations
I ran the evaluations I use to set the thresholds once each, changing only DECISION_MODEL. The questions and thresholds were left as tuned for Jev. The numbers in the table are the cases judged as expected.
Evaluation | Jev | Clef |
|---|---|---|
Settings requests (53) | 53 | 50 |
Voice commands (203) | 189 | 135 |
Forum posts (21) | 21 | 20 |
Forum images (10) | 10 | 10 |
Images were a tie, and on the other three Clef fell short of Jev. The way it fell short differed by evaluation.
Settings requests and forum posts match Jev with new thresholds
Clef doesn't push probabilities toward 0 or 1 as much as Jev does. For settings, "poop" got 0.88 for "unrelated", just under the rejection threshold of 0.9. For posts, "What should I have for dinner tonight?" got 0.93 for "off topic", under the threshold of 0.95.
The ordering of the probabilities is right. For settings, the highest score among requests to pass was 0.07, and the lowest among requests to reject was 0.88, so a threshold of 0.5 separates them all. With per-model thresholds, these two evaluations would likely match Jev's results.
Voice commands mistake short requests for talking to oneself
Thresholds didn't fix voice commands. Besides whether the speech is a request to the app or talking to oneself, the voice check also asks which action and which value. Of the 203 cases in the evaluation, 176 are requests; Jev carried out 162 of them correctly and Clef 108. Neither acted on any of the 27 cases of talking to oneself (such as "five more minutes"). The 189 and 135 in the table above are these numbers plus those 27.
Most misses came from the question "is this a request to the app, or talking to oneself?" Clef answered 始めて ("begin") as talking to oneself (0.73 for talking to oneself). It judged スタート ("start") and 止めて ("stop") as requests, but only at 0.60 and 0.56 for a request, below the 0.7 threshold. For the same three, Jev gave a request probability of 0.97 for スタート, 1.00 for 止めて, and 0.73 for 始めて, and carried out all three.
So I counted how many requests a lower threshold would rescue.
Threshold | Jev | Clef |
|---|---|---|
0.7 (current) | 171 | 115 |
0.5 | 174 | 151 |
The numbers are how many of the 176 requests were judged as requests (not how many were carried out correctly). Even at 0.5, Clef still mistook none of the self-talk for a request. But 25 requests were still judged as self-talk, against 2 for Jev. The other questions (which action, which value) also had lower probabilities overall, and Clef carried out the wrong action 3 times (Jev: 0).
Both got every image right
Both judged all 10 images correctly. Jev's probabilities were nearly 1.00, Clef's 0.87 to 0.97. For an image with text insulting a group of people, Jev gave "hateful" 0.99 and Clef 0.87. Proper image support is Clef's strength, but it made no difference on these 10.
Speed and cost
I compared using the development gateway's logs from the day I ran the evaluations. The call counts are all calls that went through the gateway that day.
Jev | Clef | |
|---|---|---|
Latency (median) | 158ms | 508ms |
Calls | 343 | 290 |
Cost | $0.032 | $0.188 |
Per call | about $0.00009 | about $0.00065 |
Contrary to the official numbers, Clef was about 3 times slower. Per call it cost about 7 times more. The per-call figure is the day's average, including voice commands and images, so it is counted differently from the cost of one settings request mentioned earlier. Jev's side included more short questions (settings requests), so it isn't an exact ratio, but even allowing for Clef counting fewer tokens, the cost gap remained.
Staying with Jev for now
For how this app uses it, images were a tie, but Jev came out ahead on the rest of accuracy, and on speed and cost. Voice commands in particular would do nothing for nearly 40% of requests (65 of 176) if I switched with the current thresholds, so I can't switch.
Because the calls now live in one place, when Clef is updated I can compare again by changing the constant and running the evaluations. I plan to add per-model thresholds at that point.
Try voice commands with "Hey Friko"
Voice commands, where the gap was largest, still use Jev behind the scenes to judge requests. You can keep your instrument in hand and ask things like "Start", "Tempo 120", or "Switch to 3/4 and play".
Friko is the app's mascot. Turn on "Voice command with “Hey Friko”" in the app menu, and you can start listening by saying "Hey Friko" without pressing a button (an experimental feature). The wake word is recognized on your device. "Hey Friko" works in desktop browsers only, but the VOICE button (which you can show in the bar of buttons at the bottom of the screen) and ⇧Space let you use voice commands on phones too.

- The chapter title and description. Below them are how to start listening and the list of actions you can ask for
How to start, and the list of actions and phrasings you can use, are in the "Voice commands" chapter of the manual.
Forum posts and images are checked by Jev too
The forum also uses Jev to check the text of posts and the images attached to them. Spam, abuse, and off-topic posts are rejected before they are saved, and images aren't published until they pass. Image checking started recently, and it stays on Jev as well. I wrote about how they work in "Catching spam and trolling in forum posts with Jev before they go up" and "Checking forum images with Jev before deciding to publish them".

- The category for feature requests and problems with the app
- Start a new thread here
If you find a bug or want a feature, I'd appreciate a post in the Feedback category of the forum. If a voice command didn't work the way you said it, tell me the phrasing, and I'll add it to the evaluation's examples and fix the decision.