Cloudflare
•
Clef
•
Released 
October 2026

Cloudflare
Clef

Open-weight 27B decision model that returns typed answers with probabilities for routing, triage and guardrails, not generated text.

Modality:
Text
Image
model ID
cloudflare/clef

Output Speed *

N/A
tok/s

Intelligence Index *

N/A
/ 100

Context Window *

65537
tokens

Input price

1.15
Anytoken

Output price

0
Anytoken
Clef: Typed Decisions with Probabilities, Not Generated Text Clef is a 27B multimodal decision model trained by Cloudflare's Workers AI team. It is the precision tier of the Clef family, alongside Clef-flash. Clef takes a state (text, JSON or images) and a schema of typed questions. It returns a probability for every allowed option, with no free-form text to parse. It suits support triage, agent routing and guardrail checks, where code needs a fast, bounded answer before an LLM acts. Access Clef via AnyAPI.ai

Performance

Where Clef Beats Jev on Classification and Where It Doesn't

Clef is built for bounded decisions. It scores every option of every question in one non-autoregressive pass, so there are no reasoning tokens to wait for. Cloudflare reports 94.2 macro-F1 on BANKING77 against 79.7 for Jev, and a median latency of 209.3 ms against 524.1 ms. These are self-reported figures. The pattern is strongest on intent classification, routing and tool selection. In production, Clef fits in the request path as a gate before an LLM acts. Validate it on your own labeled data first.

Benchmarks

Clef on the Decision Index: Strong Routing, Weaker Reasoning

On Cloudflare's Decision Index leaderboard, Clef scores 61.2, ahead of Jev (57.9) and Clef-flash (57.1). The same table shows the trade-off. Clef leads on BFCL (98.5% vs 95.8%) and CLINC150+OOS (97.4 vs 89.3 macro-F1). Jev wins reasoning-heavy tests such as GPQA Diamond (78.3% vs 48.0%) and MMLU-Pro (82.7% vs 65.9%). These results come from Cloudflare's own evaluation, not an independent lab. Treat them as a starting point for testing.

Output Speed

*
N/A
tok/s

Intelligence Index

*
N/A
/ 100

MMLU *

Broad world knowledge and problem-solving
0
%

GPQA *

PhD-level scientific reasoning across physics, biology, chemistry.
0
%

HLE *

Adherence to multi-step structured instructions.
0
%

LiveCodeBench *

Tool-calling reliability in long agentic loops.
0
%

Technical Specifications

What the model supports

Clef accepts text, JSON and up to four images per Workers AI request. It returns probabilities for up to 64 typed questions, with no generated text. The hosted context window is 65,536 tokens, although the weights were trained for 256K. Image tokens and questions count toward that limit, and a request fails if they alone exceed it. Otherwise long text state is truncated, so put the most important information early and keep images small.
Verified Specifications — 
Clef
*
Input modalities
Text
Image
output modalities
Text
Context window
65537
 tokens
Maximum output tokens
58982
Reasoning
No
Knowledge cutoff
October 2026
Pricing (standard)
1.15
 AnyTokens in
 / 
0
 AnyTokens out

Comparison

Clef or Clef-flash: Is the Precision Tier Worth It?

Clef and Clef-flash launched together on Workers AI. Both use the same System One request format and the same noul, choice and score question types. Cloudflare positions Clef as the precision model and Clef-flash as the hot-path model. Cloudflare reports Clef at 61.2 on its Decision Index against 57.1 for Clef-flash. Clef-flash is faster, at a median 13x faster than Jev against 2.5x for Clef, and has a lower token price. The practical decision is accuracy against speed and cost.

Dimension
Clef
Clef Flash
Context window *
65537
tokens
24576
tokens
Output speed *
N/A
tok/s
N/A
tok/s
Intelligence Index *
N/A
N/A
Input pricing
1.15
AnyToken
0.108
AnyToken
Output pricing
0
AnyToken
0
AnyToken
Knowledge cutoff *
October 2026
October 2026

Choose Clef when decisions involve multiple intents, subtle image details or costly misroutes. In one hands-on test, Clef caught a case that Clef-flash missed. Choose Clef-flash when you need the lowest latency and cost for simple, high-volume routing. Cloudflare cut its price after launch, and it is now cheaper than Jev. Start with Clef-flash, then move individual questions to Clef where your labeled data shows errors. Neither model generates text.

Limitations & Trade-offs

Where Clef falls short

1
No text generation. Clef returns probabilities for options you define in advance, so it cannot draft replies, explain its choice or summarize content. There is no output token budget to tune, and no reasoning trace to audit. Any workflow that needs prose, tool arguments or extraction of open-ended values still needs an LLM, or Cloudflare's separate extraction model. Treat Clef as a gating layer in front of a generative model, not a replacement for one.
2
Weaker on reasoning-heavy tasks. In Cloudflare's own comparison, Clef scores 48.0% on GPQA Diamond and 65.9% on MMLU-Pro, against 78.3% and 82.7% for Jev. Jev also leads on BBH, When2Call and BRIGHT. Clef's strength is classification, routing and tool selection. For decisions that need multi-step reasoning or hard domain knowledge, Jev or a reasoning LLM is the safer choice. These figures are self-reported by Cloudflare.
3
Hosted context cap and image handling. Workers AI limits Clef to 65,536 tokens, even though the weights were trained for 256K. Questions and image tokens share that budget, and overlong text state is truncated. One developer reported launch-day requests failing because large base64 images were estimated as text, and image calls taking 13–30 seconds. Resize images first, and use another model for large documents.
4
Closed label sets and early mixed reports. In a small hands-on test (about five cases), Clef assigned off-topic messages to an existing team until an explicit "other" option was added. A choice question returns one winner, so multi-topic messages need separate yes/no checks. Confidence shows how concentrated the probabilities are, not the chance the answer is right. One developer found Clef worse than Jev for chat moderation. Validate against your own labeled data.

Best-Fit Workloads

Where this model earns its place

01

Support ticket triage

‍

Clef can decide in one request whether a ticket is urgent, which team owns it and how severe it is. This is Cloudflare's own documented example. Typesafe's workflow evals show Clef beating Jev on customer service. A single call can return up to 64 typed answers, which your code uses for routing or escalation. Add an "other" option to the team question, and split multi-topic tickets into yes/no checks.

02

Pre-action agent guardrails

‍

Clef suits fast checks before an agent acts, such as whether a request is risky or a tool call could cause harm. The output is a calibrated-style probability your code can threshold, not prose. Cloudflare suggests placing Clef in the agent's request path and handing off to an LLM to take action. In independent testing it flagged a social-engineering request. Set thresholds on your own labeled data.

03

Visual and web classification
‍

‍
Clef has a vision encoder, so it can classify screenshots, receipts and forms, which text-only decision models like Jev cannot. Cloudflare's Threat Intelligence team paired it with Browser Run to fetch, render and classify a domain in 2.2 seconds, against 4.7 seconds for gpt-oss-120b in the same workflow. It accepts up to four images per request, and each image is capped at 1,024 tokens.

04

Invoice and security-incident classification

‍

Cloudflare reports that Clef beats Jev on Typesafe's workflow evals for invoice processing and security incidents, as well as customer service. Structured JSON state fits records such as invoices or alerts. Ask several typed questions about one record, such as status, amount thresholds or severity, and get all the probabilities in one pass. These results are vendor-reported, so audit them before automating.

Pricing in anytokens via AnyAPI
Input
1.15
₳
Output
0
₳
Cache write
—
₳
Cache read
—
₳

Integration

Access Clef via AnyAPI.ai

Access Clef through AnyAPI.ai using a unified API built for multi-model AI applications. Integrate Clef without maintaining a separate provider-specific connection, and keep the flexibility to test, switch, or combine models as your application requirements evolve.

01

One API integration

Access Clef and other AI models through the same API workflow instead of maintaining separate integrations for every provider.

02

Easy model switching

Test Clef against alternative models or switch models as your performance, capability, or cost requirements change without rebuilding your application around another provider API.

03

Flexible for production

Use Clef from experimentation through production while keeping your AI stack flexible as workloads, traffic, and model requirements evolve.

04

Multi-model applications

Use Clef for the workloads where it performs best and combine it with other models for tasks that require different capabilities, performance, or efficiency.

Frequently Asked Questions

Answers to common questions about integrating and using this AI model via AnyAPI.ai

Clef is a 27B multimodal decision model trained by Cloudflare's Workers AI team and released on October 1, 2026. It reads a state (text, JSON or images) plus typed questions, and returns a probability for every allowed answer. It is available on Workers AI as @cf/cloudflare/clef, and its weights are open under Apache 2.0.

No. Clef does not generate text or reasoning tokens. It scores every option of every question in a single forward pass and returns typed answers: noul (yes/no probability), choice, or score. Use it to classify, route or gate requests, then pass the result to an LLM if you need generated output.

Clef has a 65,536-token context window on Workers AI. The weights were trained for 256K, but the hosted limit is 64K. Image tokens and your questions count toward that limit. If they alone exceed it, the request fails. Otherwise long text state is truncated to fit. Clef has no separate maximum output setting because it does not generate text.

Clef adds image input and a 64K context against Jev's 32K, and is open-weight. Cloudflare reports Clef ahead on most classification and routing benchmarks, with a median latency of 209.3 ms against 524.1 ms for Jev. Jev scores higher on reasoning-heavy tests such as GPQA Diamond and MMLU-Pro. These are Cloudflare's self-reported results.

Clef is billed on input tokens only. Cloudflare does not charge for output tokens, and image inputs are converted to input tokens and billed at the same rate. This makes costs scale with state size and image count, not answer length. See the AnyAPI.ai pricing component on this page for current rates.

* Benchmark data source: Artificial Analysis artificialanalysis.ai