Clef / Clef-flash

Last updated:

Open39–239ms$0.24/M input

Quadrant scores

See the full quadrant

Scored with the public quadrant rubric (maturity × capability; bubble = adoption). Revise as evidence lands.

  • Maturity7.2/10

    Apache-2.0 weights (27B, 9B) plus a priced, self-serve Workers AI endpoint with full schema docs. Within a day: official Ollama library entries on /v1/systemone, an Ollaya package and llama.cpp support (PR merged 2 Oct). No GA or model-specific SLA.

  • Capability7.7/10

    Official boards (17 Oct): Decision Index 0.3.2 Full 53.08 (#51); JevBench Intelligence 59.1, calibration 91.6, p50 0.213 s. Noul / Choice / Score plus up to 4 images in one pass. Calibration method published (Brier, label smoothing), no ECE. Cloudflare's GPU run: 209 ms median.

  • Adoption37/100

    610 points on Hacker News, a 1,245-like launch post from @CloudflareDev, 706 + 237 Hugging Face likes, 33 quantizations (ggml-org among them), Ollama and Ollaya packages and about 15 community repos in 36 hours. No external production case published yet.

Vendor claims

News covering this model

publicado (OK do Fabricio 17/10 BRT). Board audit of 17 Oct 2026: see the “Board audit” section below; where it conflicts with older board statements on this page, it wins.

Read this first

  1. “Leader on the Decision Index” is Cloudflare’s own run. The official Decision Index still carries data from 28/09 and does not list Clef. On the same day Fastino claimed 64.81 for GLiDE, also self-run.
  2. The “13× faster than Jev” line (in Cloudflare’s changelog and from @lucataco, who works on models at Cloudflare) mixes two setups. Clef-flash’s 38.8 ms is single-process GPU time; Jev’s 524 ms is a hosted-API round trip, and Cloudflare’s own leaderboard says the two are “not comparable”. The first independent test of the hosted endpoints (below) found the opposite order: Jev about 100–170 ms, Clef about 640–720 ms.
  3. Price is per input token only; no output price is listed (decisions generate no text). Per input token, Clef costs about 5.7× Jev ($0.24 vs $0.042 per M) and Clef-flash, since 9 Oct, about 0.9× ($0.038, down from $0.09). Clef’s 65,536-token window is double the 32K that OpenRouter lists for Jev.

Clef is a family of decision models from Cloudflare, announced on the Cloudflare blog on 1 October 2026. The weights went up on Hugging Face the evening before (30/09, 18:15 BRT) under Apache-2.0: Clef (27B, from Qwen3.8-27B) and Clef-flash (9B, from Qwen3.5-9B). Both are also served on Workers AI as @cf/cloudflare/clef and @cf/cloudflare/clef-flash, and since 2 October they are in the official Ollama library.

The model reads a state (text, JSON, images or video) and a schema of typed questions, and returns a probability for every allowed option in a single forward pass, with no text generation. Cloudflare says the API is “fully compatible with Jev and SystemOne”.

Specs

Attribute Clef Clef-flash
Base Qwen/Qwen3.8-27B (vision encoder kept) Qwen/Qwen3.5-9B
Training Frozen backbone + rank-256 LoRA (stored merged), separate joint schema head; label-smoothed cross-entropy + Brier loss, RLCD as a secondary objective; internal synthetic data same recipe
Workers AI price $0.24 / M input tokens $0.038 / M input tokens (was $0.09 until 9 Oct)
Context 65,536 tokens Hosted: 24,576 tokens since 9 Oct (was 64K); weights trained for 256K when self-hosted
Questions per call 1–64 (Noul, Choice, Score) 1–64
Images up to 4 per request (PNG/JPEG/WebP, embedded) up to 4
Run locally Ollama clef (18 GB); Ollaya; llama.cpp (text only) Ollama clef-flash (11 GB); Ollaya clef:flash; llama.cpp (text only)
License Apache-2.0 Apache-2.0
Launch same

The Hugging Face release ships the backbone as sharded safetensors plus joint_head.safetensors and a joint_schema_model.py loader with a systemone() helper. On Workers AI the call goes to /ai/run/@cf/cloudflare/clef, not to a /v1/systemone path; Ollama serves the same models at /v1/systemone.

Clef-omni and the 9 October update

On 9 October 2026 Cloudflare added a third model and changed the other two (post, 20:11 BRT).

Clef-omni (Hugging Face, Apache-2.0, about 35B parameters stored; Workers AI @cf/cloudflare/clef-omni, docs) is built on Qwen3-Omni-30B-A3B-Instruct, a mixture-of-experts model, with the speech-output parts removed. It takes text, images, audio (wav, mp3) and video with sound (mp4, webm) in one request. Training is the same recipe: frozen backbone, LoRA, label-smoothed cross-entropy plus Brier loss. Hosted price $0.15 per M input tokens, 64K context. Audio counts as about 780 tokens per minute; video up to about 15,400 tokens per minute at full resolution. MLX 4-bit and 8-bit conversions appeared the same day.

Clef-flash is cheaper but has a smaller hosted window: $0.09 → $0.038 per M input tokens, now below Jev’s $0.042. The hosted context drops from 64K to 24,576 tokens; Cloudflare says only 0.24% of requests were longer. The weights did not change.

Hosted Clef is faster. Same weights, new serving on SGLang (Clef support in SGLang PR #42721, due in 0.5.22). Cloudflare’s numbers, median / p95: ~800 tokens 262/438 → 152/351 ms; ~3,400 tokens 616/777 → 305/531 ms; ~16,000 tokens 2,721/3,250 → 1,635/1,805 ms (1.7–2.0×).

Cloudflare’s numbers (UnverifiedClaim): Clef-omni about 130 ms median for text, 150 ms for images, a few hundred ms for audio, about 1.5 s for a 21-second video. On its ten-benchmark table it trails Clef on most rows (for example Home appliances 69.3 vs 82.95, When2Call 63.3 vs 72.37) and edges it on a few (BANKING77 94.8 vs 94.20). The omni card’s Decision Index figures are an internal run of the old 0.2.1 suite. Clef-omni is not on JevBench v1.6.1 or Decision Index 0.3. Internal users named: GitHub docs spam triage, EmDash plugin phishing checks, DLP PII scanning, threat-intel domain detection.

Scores on this page are unchanged. The hosted speed-up and lower price are Cloudflare’s own figures. The independent 638–717 ms result below predates the SGLang move and should be re-run.

Running it yourself

  • Ollama. clef and clef-flash are in the official library, with native support merged in ollama#18741 on 1 October (19:52 BRT). Requests go to /v1/systemone and may carry base64 images. Two details on that page do not line up yet: it says “requires Ollama 0.35.1 or later”, but the support was merged after the 0.35.1 tag, and the tag list shows a 256K context while the readme says 64K.
  • llama.cpp. Support was merged in #29831 on 2 October (21:50 BRT): text only, one sequence per batch, on top of the /v1/systemone endpoint. The ggml-org/Clef-GGUF files need a build that includes it. Image input is not supported there yet.
  • Ollaya. ollaya-dev/clef packages Clef-flash as ONNX graphs that reference Cloudflare’s own weight files. The packager reports identical decisions to Cloudflare’s code on 571 questions (logits within 4.3e-5; UnverifiedClaim).
  • Core ML on Apple silicon. FluidInference/clef-flash-coreml is an 8-bit conversion of Cloudflare’s 9B checkpoint, not a separately trained model. Its card reports GPU execution on M5 Pro: 0.49 s median / 0.57 s p95 for 370-token records with three questions. The package is about 11.6 GB; the converter reports 1 answer difference in 611, a near-tie. This is the converter’s own test. Core ML places no operations on ANE; an under-1B ANE version is a future plan, with no checkpoint linked yet. See FluidUse.
  • Plain GGUF in a chat runtime is not the same model. A GGUF holds only the backbone. Run as a chat model in Ollama 0.35.0, a third-party test got constrained JSON, not the joint schema head’s probabilities.

Evidence (UnverifiedClaim)

From Cloudflare’s Decision Index 0.2.1 mirror (38 benchmarks, upstream board of 28/09, Clef rows added on 01/10):

Model Index Knowledge Language Retrieval Tools Arts Median / p95
Clef 61.21 51.2 61.2 62.5 81.2 47.8 209 / 239 ms
Jev 1.13 (official row) 57.91 51.4 62.0 55.4 75.1 37.7 524 / 536 ms (hosted API)
Clef-flash 57.07 50.4 52.6 52.3 82.0 49.9 39 / 122 ms

ECE and Brier are blank on that board. The blog also reports TypeSafe workflow evals in which Clef beats Jev on 3 of 4 tasks.

Independent results

The first outside measurements came in within a day. Both are small and task-specific, so they are evidence about those tasks, not a general ranking.

  • Nicia, knowledge-base write admission (repo; 85 synthetic cases, hosted APIs, runs 1–2 October). Clef was close to Jev on quality (recall 0.98 / 1.00, routine admits 0.97) but two of its decisions changed when the records were reordered. Clef-flash admitted only about two thirds of harmless writes. Round-trip latency, one request at a time: Jev 98–167 ms median, Clef-flash 429–533 ms, Clef 638–717 ms (p95 0.9–1.1 s), with a slow tail of 9–26 s. A few hours after launch about a fifth of Clef calls at six in flight returned HTTP 429; by the later runs there were none. Clef returned identical probabilities for identical requests; Jev moved by up to 0.12.
  • Reid Marlow, coding-agent decisions (DEV; 42 real cases from one agent). Jev 71.4%, Clef-flash 66.7%; the two agreed on 35 of 42.

Fit / anti-fit

Fit: teams already on Cloudflare Workers who want a hosted decision call close to their app; multimodal checks (screenshots, documents with images); anyone who wants the same weights hosted, in Ollama and self-hosted.

Anti-fit: workloads that need an SLA today or a verified score; latency-critical hosted calls (independent round trips are several hundred ms); drop-in use of the TypeSafe SDK against the Workers AI endpoint without an adapter.

Limits

  • No ECE or reliability figure published.
  • Answers can depend on the order of the records in the state (Nicia’s test).
  • “Still early”: the fine-tuning and RL service runs through Cloudflare’s forward-deployed team for now; self-serve comes later.
  • Training data is internal and synthetic, so it cannot be audited.

Why it is in the catalog

Clef trains its own decision components (LoRA plus a new joint schema head), publishes the weights and serves them through a documented typed API that returns probabilities. Clef-flash shares the page: same recipe and API, smaller backbone. On the quadrant the point is the 27B Clef.

JevBench v1.6.1 (Benchmark Heaven, checked 7 Oct 2026)

On the v1.6.1 open-weights board (not comparable with v1.5.7), Clef-Flash is #23 at 36.6, capability 63.8 (#15); Intelligence 42.2 is under the soft gate. Clef is #52 at 16.8: capability 75.3, but outside the Jev-class caps because self-hosting costs $0.25 per 1,000 decisions (7.7× Jev). Both are measured on text only. On Decision Index 0.3: clef 53.08 (rank 22), clef-flash 47.61 (rank 34 group). See news. No catalog score change.

JevBench v1.5.7 (earlier edition, checked 5 Oct 2026; not comparable with v1.6)

On v1.5.7, Clef-Flash is #26 at official 55.1 and Clef is #63 at 17.0 (text-only measurement of multimodal models). See news. No catalog score change.

Artificial Analysis Decision Index v1.0 (13 Oct 2026)

Clef is among the decision models in the AA launch article charts, but the text gives no Clef figures, so we quote none. Scores unchanged. AA is a separate, independent board (four evaluations: AA-Omniscience-Decision, HLE-MultiChoice, When2Call, WildGuardTest). Its scores and ranks are not comparable with Decision Index 0.3 or JevBench. AA finds every decision model overconfident overall, mainly on the knowledge and reasoning tasks; most are fairly well calibrated on When2Call and WildGuardTest.

Board audit (17 Oct 2026)

publicado (OK do Fabricio 17/10 BRT). Checked against the official boards on 17 Oct 2026: Decision Index 0.3.2 (data of 16 Oct, 19:00 UTC), JevBench and ImageJevBench live. The boards are separate sources and are never averaged. Older board statements and rankings further down this page are superseded where they conflict with this section.

Board Row Result
Decision Index 0.3.2 (16 Oct 19:00 UTC) Cloudflare clef Full 53.08 (#51, tie group 12); public 61.71 (#17); same-skills 53.11; new-domains 41.88
Decision Index 0.3.2 (16 Oct 19:00 UTC) Cloudflare clef-flash Full 47.61 (#69, tie group 17); public 56.15 (#52); same-skills 44.01; new-domains 42.5
Decision Index 0.3.2 (16 Oct 19:00 UTC) Cloudflare clef-omni (30B-A3B) Full 48.28 (#66, tie group 16); public 56.54 (#51); same-skills 46.51; new-domains 40.84
JevBench open weights (live 17 Oct) Clef Capability 75.3; Intelligence 59.1; calibration 91.6; p50 0.213 s; $0.25/1k
JevBench open weights (live 17 Oct) Clef-Flash Capability 63.8; Intelligence 42.2; calibration 85.5; p50 0.103 s; $0.059/1k
JevBench open weights (live 17 Oct) Clef-omni Capability 58.3; Intelligence 34.5; calibration 82.2; p50 0.143 s; $0.28/1k
ImageJevBench v0.3.0 Clef Capability 58.1; Intelligence 47.4; calibration 68.8; p50 1.18 s; $0.18/1k
ImageJevBench v0.3.0 Clef-Flash Capability 52.2; Intelligence 37.3; calibration 67.2; p50 0.62 s; $0.084/1k

Board-status statements on this page to recheck against the table (may be superseded):

  • “From Cloudflare’s Decision Index 0.2.1 mirror (38 benchmarks, upstream board of 28/09, Clef rows added on 01/10):”

Score update (audit, 17 Oct 2026). Capability 7.5 → 7.7 = types × 0.30 + calibration × 0.25 + latency × 0.25 + accuracy × 0.20 = 10 × 0.30 + 7 × 0.25 + 6 × 0.25 + 7 × 0.20 = 7.65 → 7.7. Types, calibration and latency come from the earlier working (10 / 7 / 6); only accuracy is re-derived from the board (7; was 6): Decision Index Full 53.08 ÷ 60.11 × 8 = 7.1, half-up. Maturity and adoption unchanged.

Hugging Face on 17 Oct (FluidInference/clef-flash-coreml): 157 downloads, 2 likes, licence tag apache-2.0, last modified 2026-10-10.

Third-party guardrail benchmark (raxIT Labs, 15 Oct 2026)

publicado (OK do Fabricio 18/10 BRT).

In raxIT’s Decision Models as Guardrails v1.0.0, Clef scores 89.5 of 100 across 9,975 checks (third among 19 systems, behind Perplexity Decisions 90.4 and OpenAI Decisions 90.0), and has the best chat jailbreak and injection score at 74.4. It costs $0.202 per 1,000 checks, above Jev ($0.039), Perplexity ($0.056) and OpenAI ($0.110) (list prices of 7 Oct). These are raxIT’s numbers as reported; part of the test is private, and they do not enter our scores. See news.