Skip to content
trending

Benchmarks

Cloudflare Clef: Open Decision Model Tested on RTX 4090

Cloudflare released Clef and Clef-flash: open decision models starting at $0.038 per million tokens. Here is how they work, cost, and perform on local hardware.

By 6 min read
Cloudflare Clef: Open Decision Model Tested on RTX 4090

👁 114 reads

On October 1, 2026, Cloudflare released two open decision models: Clef (27B) and Clef-flash (9B). They do not generate running text - they take a context state and a list of questions with permissible options, returning the calibrated probability distribution for each option. Weights are available on Hugging Face under the Apache-2.0 license, and the hosted service on Workers AI starts at $0.038 per million tokens (Clef-Flash, following a price cut on October 9). I ran Clef-flash locally on an RTX 4090 - on 30 customer tickets tested in Polish, it routed to the correct department in 30 out of 30 cases with a median latency of 112 ms. I cover the broader model category and comparisons in my guide to AI decision models.

Update: October 13, 2026

  • Artificial Analysis ranking: In the Decision Index, Clef scored 48.6 points (8th place out of 11), Clef-Flash scored 45.8, and the newer Clef-Omni scored 44.3 - putting the whole family near the bottom of the table. The leader, Jev 1.13, scored 57.5.
  • Cost according to AA: Clef sits at $199.40 per million tasks (the most expensive on the index), Clef-Flash at $31.60, and Clef-Omni at $123.10.
  • New Clef-Flash pricing: On October 9, Cloudflare dropped its Workers AI price from $0.09 to $0.038 per million input tokens and reduced the context window from 64k to 24k tokens. Clef remains at $0.24.
  • Clef-Omni (October 9, 2026) - MoE architecture built on Qwen3-Omni-30B-A3B (30 billion parameters, 3 billion active), adding audio and video support at $0.15 per million tokens under Apache-2.0.
  • OpenRouter: All three are listed, with Clef and Clef-Flash also available via lower-cost providers (from $0.042 and $0.021 respectively).
  • My benchmark tested in Polish (Oct 13, via OpenRouter): Department routing was 44/47 for Clef and Clef-Flash, and 42/47 for Clef-Omni. Tool selection hit 10/10 for Clef, but only 6/10 for Clef-Flash and Clef-Omni. Details are in the guide to AI decision models.

What Cloudflare Actually Released

  • Clef - 27B parameters, built on top of a frozen Qwen3.8-27B. Weights take up 55 GB in bf16.
  • Clef-flash - 9B parameters, built on Qwen3.5-9B, with 19 GB of weights. Designed for low-latency decision routing.
  • Apache-2.0 license for both, matching the base Qwen models. Free for commercial deployment.
  • Hosting on Workers AI under model IDs @cf/cloudflare/clef and @cf/cloudflare/clef-flash.
  • Fine-tuning service (RL fine-tuning) - initially as an engagement with Cloudflare’s engineering team, later shifting to a self-serve platform.

The Cloudflare announcement was authored by Michelle Chen, Alex Reneau, and Kevin Flansburg. The name refers to the musical clef that defines note pitches on a stave - with “CF” doubles as Cloudflare’s initials.

How the Joint Schema Head Works

A standard language model, even when constrained to JSON outputs, decodes token by token. Clef avoids that overhead completely:

  1. It processes the input context (text, JSON, images, or video) through the base Qwen model only once during the prefill phase.
  2. Hidden representations are fed into a compact head that Cloudflare calls the joint schema head. In Clef-flash, this module features 4 layers with a width of 1024.
  3. For each candidate option, the head extracts matching elements from the input, allows questions to attend across one another, and only then scores the candidates.
  4. The final output is a single logit per choice. Softmax within each question produces the probability distribution.

Cloudflare trained the head along with rank-256 LoRA adapters while keeping the core Qwen base frozen. Training incorporated Brier scores into the loss function to penalize uncalibrated confidence, paired with an RLCD (Reinforcement Learning for Calibrated Decisions) second phase that awards partial credit for near-miss scale selections. Training datasets were Cloudflare’s internal synthetic corpora.

Request Format: Compatible with Jev

Clef uses the exact same API format introduced by TypeSafe’s Jev on September 15, which established the decision-model category (covered in my analysis of TypeSafe and the Jev model). The payload requires a state field and a questions dictionary supporting three types: choice (categorical pick), noul (yes/no boolean), and score (numerical scale). Cloudflare designed it as a drop-in replacement, allowing software written for System One to migrate by changing the endpoint URL. Jared Palmer’s Kev and AWS’s Strands Decider - launched on the same day as Clef - follow this exact specification.

Cloudflare brings two proprietary extensions: an image encoder (enabling Clef to verify if an uploaded receipt is readable, for instance) and a 64k token context window. Workers AI imposes specific limits: 1 to 64 questions per call, up to 4 images at 4 MiB each, and an overall request ceiling of 13 MiB.

Official Cloudflare Benchmark Numbers

Benchmark Clef Clef-flash
BFCL (function selection, exact match) 98.47 98.76
API-Bank (accuracy) 91.93 93.11
BANKING77 (customer intent classification, macro-F1) 94.20 90.93
CLINC150+OOS (intent classification, macro-F1) 97.43 66.77
Workers AI median latency 209.3 ms 38.8 ms
Workers AI p95 latency 238.6 ms 122.4 ms

Cloudflare published comprehensive tables covering 43 evaluation suites alongside comparisons against competing decision models on their model card and Decision Index pages. CLINC150 deserves special attention: the smaller Clef-flash exhibits a severe drop compared to the 27B model, showing that “flash” is not simply an identical drop-in substitute at lower cost.

In production, Cloudflare’s Threat Intelligence group uses the model for domain classification. Clef completed page retrieval, rendering, and classification in 2.2 seconds, whereas gpt-oss-120b took 4.7 seconds on the identical workload - and only returned two top categories instead of a complete probability spread.

Pricing Breakdown

Model Input Price / 1M Tokens Neurons / 1M Tokens Daily Free Allowance (10,000 Neurons)
Clef $0.24 21,818 ~458k tokens
Clef-flash $0.038 (as of Oct 9, was $0.09) ~3,455 ~2.9M tokens
Clef-Omni (as of Oct 9) $0.15 ~13,636 ~0.73M tokens

You pay solely for input tokens because the model produces no generated text output. The daily grant of 10,000 Neurons applies across both Workers Free and Paid plans; usage past the quota costs $0.011 per 1,000 Neurons. Workers AI requires an active Cloudflare account - for this evaluation I ran the model locally, so hosted observations rely on documentation. You can read more about the platform’s infrastructure in my guide to Cloudflare.

Local Testing: Clef-flash on an RTX 4090

  • Download: 19 GB from the official Cloudflare/clef-flash repository. Loading from a slow external USB drive took approximately 7.5 minutes.
  • Memory consumption: Peaked at 18.3 GB VRAM, fitting comfortably inside the 24 GB card limit.
  • Evaluation results: Tested across 30 customer support tickets in Polish covering billing, shipping, returns, account access, outages, and sales inquiries. Department categorization scored 30 out of 30, with a median turnaround of 112 ms for a two-question evaluation.
  • Local comparison: Gemma 4 12B in Ollama using constrained JSON outputs also scored 30/30, but took 413 ms, while Qwen3.8 27B clocked in at 762 ms.
  • Threshold sensitivity: On an “is this urgent?” classification, Clef-flash generated false positives at a default 0.5 decision threshold. Raising the cutoff to 0.95 dropped the error rate to 2 mistakes out of 30. You will need to calibrate this threshold on your own dataset.

I did not run the full 27B Clef locally: 55 GB in bf16 cannot fit into a 24 GB GPU, there is no official quantized release, and the custom joint schema head rules out standard Ollama and GGUF runtimes. Full benchmarks spanning eight models, performance graphs, and architectural conclusions are compiled in my guide to AI decision models. To inspect techniques for extracting constrained outputs from standard LLMs, refer to my walkthrough on structured output.

Why Decision Models Matter

Within three weeks, decision models moved from a proprietary API novelty to multiple open weights running on shared schemas: Kev, Clef, Strands Decider, and OpenAI’s own Decisions API previewed at DevDay (covered in my writeup on the Agents API). If you build AI agents or automate support ticket triage, offloading small branching decisions - routing to departments, escalation flags, tool dispatching - away from massive generative LLMs makes workflows dramatically faster, cheaper, and statistically calibrated. Cloudflare complements this with edge deployment and custom fine-tuning, pitching a unified stack for enterprise routing pipelines.

Google · Your sourcesQuantslant higher in your Google - one clickAdd to preferred sources →

Sources

Kinetyra

// read next

More on this from QUANTSLANT

Piotr Olszewski

Editor and publisher · Quantslant

I edit and publish Quantslant. AI tools help with research, drafts and translation; choosing topics, running the tests, checking facts and the decision to publish are mine, and so is the responsibility for what appears here.

read nextAI Decision Models: Decision Index BenchmarkbenchmarksAI Decision Models: Decision Index BenchmarkDecision models choose from a list instead of generating text. We tested Cloudflare Clef-flash and AWS Strands Decider 2B on 30 customer tickets in Polish.

Most read

  1. 1Best AI Video Generator Apps for Your Phone (2026)
  2. 2Claude Opus 5.5 Motion Graphics: 60s Showreel from One Prompt
  3. 3Wan 2.2 on RTX 4090: timings, VRAM and four test clips
// site map

This page in other languages1

Quantslant in numbers 1,423posts in archive22news from the last 7 days18video models in the observatory
🎬 AI Video Benchmarks: Higgsfield DoP vs OpenAI Sora • Higgsfield vs Runway Gen-3 • AI Video Credit Calculator
× ‹ enlarge ›