Loading the catalogue…
Loading the catalogue…
Cloudflare's open-weight 27B decision model that returns calibrated, structured probabilities over text, JSON, and image inputs instead of generated text.
Overview. Clef is a 27-billion-parameter decision model built by Cloudflare on a Qwen3.8-27B backbone paired with a custom joint schema head, released as open weights under Apache-2.0 on October 1, 2026. Instead of generating free-form text, Clef performs a single non-autoregressive pass over a defined set of options and returns calibrated, structured probabilities. It accepts text, JSON, and image inputs, with the open-weight repository also supporting video frames. Developers reach for it when an application needs a fast, schema-constrained decision rather than a conversational response.
Key strengths. Cloudflare trained Clef's routing head and low-rank adapters specifically for calibration, combining label-smoothed cross-entropy and Brier loss with a reinforcement-learning objective aimed at producing well-calibrated decisions rather than fluent prose. That focus is also its boundary: Clef has no free-form generative capability, making it unsuitable for code generation, writing, math, or agentic tool-loop tasks that depend on generated text. Its strength is narrow and deliberate — turning text, JSON, and image inputs into structured, probability-scored answers over a fixed option set.
When to use it. Use Clef when you need a calibrated classification or routing decision embedded directly in an application — for example scoring a fixed set of labeled outcomes from text, JSON, or an attached image — rather than a generated response. It's served through Workers AI, Cloudflare's edge Inference platform, making it a fit for latency-sensitive decision steps inside a larger pipeline. It is not the right choice for chat, content generation, or any task expecting free-form output.
Limitations. Clef produces no free-form text, streaming output, or reasoning traces, so it cannot substitute for a generative chat model. Cloudflare's own documentation specifies a 65,536-token context window for the hosted endpoint; the underlying backbone configuration declares a larger position capacity, but that has not been confirmed as a supported serving limit. No training-data cutoff date has been disclosed.
Sovereignty note. Clef is created and hosted by Cloudflare, a US-headquartered company; no creator-disclosed CLOUD Act exposure or training-on-input policy was found in the available documentation. Because Clef's weights are published openly under Apache-2.0, teams with data-residency requirements can self-host the model rather than relying solely on the hosted endpoint.
| Inference Provider | Sovereignty | Runs in | Price | Status | Pin |
|---|---|---|---|---|---|
| L1 | €0.21 per 1M input tokensFree per 1M output tokens | Online | |||
| L0 | €0.22 per 1M input tokensFree per 1M output tokens | Online |
8 use cases classified by the curator. The note says why.
Structured probability output over a fixed label set matches classification directly. The 65,536-token usable context covers typical item batches, and no classification benchmark is published.
Returns calibrated probabilities as its core output, which is the direct requirement for scoring fraud, churn or default risk. Published size is 27B with open weights, though no risk-scoring benchmark is available.
Calibrated probabilities can map to approve, reject or escalate thresholds, which suits decision workflows. Without published evaluation on approval outcomes, fit rests on architecture alone.
Probability output over text and image inputs suits flagging policy violations across modalities. Published moderation evaluation is absent, and the 27B open-weights release allows self-hosting for sensitive content.
Yes/no answers with an attached confidence match the calibrated probability output. Rule-adherence performance is unverified, and the 65,536-token usable context limits how much policy text can be supplied in one request.
Family default is weak for chat-oriented next-step suggestions, but this variant is built as a decision model returning calibrated structured probabilities, which fits choosing among discrete next steps. No action-selection benchmark is published, so this is a conditional rating.
Per-label probabilities can support multi-label tagging for filtering and search. The 65,536-token usable context and absence of tagging benchmarks keep this at acceptable.
Probability output over destination teams suits routing as a classification task. No routing benchmark is published, so the rating relies on the decision-model design.
Sourced numbers, not our own evaluations. Percentiles are against the decision models on Stav.
No benchmark source yet
curl https://api.stav.ai/v1/decisions \
-H "Authorization: Bearer $STAV_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "cloudflare/clef",
"state": {"tool": "delete_file", "path": "/etc/passwd"},
"questions": {"safe": {"type": "noul", "instructions": "Is this tool call safe to run?"}}}'→ X-Stav-Request-Id · X-Stav-Model · X-Stav-Provider → X-Stav-Sovereignty-Level — the rung the request was served at