Cloudflare
•
Clef Flash
•
Released 
October 2026

Cloudflare
Clef Flash

Cloudflare's 9B decision model returns typed probabilities in tens of milliseconds for routing and agent guardrails, not text.

Modality:
Text
Image
model ID
cloudflare/clef-flash

Output Speed *

N/A
tok/s

Intelligence Index *

N/A
/ 100

Context Window *

24576
tokens

Input price

0.108
Anytoken

Output price

0
Anytoken
Clef-flash: Typed Decisions in Tens of Milliseconds Clef-flash is Cloudflare's 9B decision model, the smaller and faster sibling of Clef, post-trained from Qwen3.5-9B. It does not generate text. It reads a state and a set of typed questions, then returns a probability for every allowed option. Cloudflare reports a 38.8 ms median latency, which suits routing, triage and guardrail checks in the hot path of an agent. The weights are open under Apache 2.0. Add Clef-flash to your agent's decision layer

Performance

Built for Latency: 38.8 ms Median, Weaker on Hard Cases

Clef-flash is built for latency-critical classification. Cloudflare reports a 38.8 ms median across its benchmark runs and a median 13x speedup over Jev, because the model scores every option in one prefill pass instead of generating tokens. On Typesafe's customer service workflow eval it lands within a point of the larger Clef. These are vendor-run figures, and the Jev comparison involves different network paths. For short, stable label sets this makes inline decisions practical. Validate on your own labeled data first.

Technical Specifications

What the model supports

Clef-flash accepts text, JSON and up to four images per request. It returns probabilities for noul, choice and score questions, not generated text. The hosted Workers AI context window is 24,576 tokens, cut from 64K in Cloudflare's October 9, 2026 update. Long text state is truncated to fit, so summarize long threads before sending them. Self-hosted open weights support up to 256K. There is no maximum-output setting because the model does not generate text.
Verified Specifications — 
Clef Flash
*
Input modalities
Text
Image
output modalities
Text
Context window
24576
 tokens
Maximum output tokens
22118
Reasoning
No
Knowledge cutoff
October 2026
Pricing (standard)
0.108
 AnyTokens in
 / 
0
 AnyTokens out

Comparison

Clef-flash or Clef: Which Decision Model Fits Your Router?

Clef and Clef-flash share the System One API, the typed question schema, image input and the Apache 2.0 license. The decision is size. Clef is the 27B precision model; Clef-flash is the 9B latency model. Cloudflare reports launch-time median latencies of 38.8 ms for Clef-flash and 209.3 ms for Clef, though hosted Clef has since been made up to 2x faster. Hosted Clef keeps a 64K context window, while hosted Clef-flash is limited to 24K tokens.

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

Choose Clef-flash when labels are few and stable, inputs are short, and latency or volume cost dominates. Cloudflare's customer service workflow scores for the two are within a point. Choose Clef when option lists are long or "none of the above" is common (CLINC150 with out-of-scope examples: 97.4 vs 66.8), when you need grounding checks (RAGTruth: 79.4 vs 35.6), or when state exceeds 24K tokens. Scores are Cloudflare-reported; test on your own data.

Limitations & Trade-offs

Where Clef Flash falls short

1
Hosted context cut to 24K. Since Cloudflare's October 9, 2026 update, hosted Clef-flash has a 24,576-token window, down from 64K. Cloudflare says only 0.24% of observed requests exceeded 24K tokens. Long text state is truncated to fit rather than rejected, so long case histories or legal threads may be judged on partial evidence. Use hosted Clef, which keeps 64K, or self-host the weights, which support up to 256K.
2
Weaker on long label sets and grounding. Cloudflare's own results show Clef-flash at 66.8 on CLINC150 with out-of-scope examples against 97.4 for Clef, and 35.6 on RAGTruth against 79.4. Intent routing across dozens of categories and hallucination checks against source documents are therefore better served by Clef. All of these figures are vendor-reported and have not been independently replicated.
3
No text generation or reasoning. Clef-flash returns probabilities only, so it cannot draft replies, explain its choice or plan multi-step work. Cloudflare's published table shows the larger Clef trailing Jev on knowledge-heavy tests such as GPQA Diamond (48.0 vs 78.3), and nothing indicates the smaller model closes that gap. For judgments needing real reasoning or math, use a general LLM and keep Clef-flash for the routing step.
4
Always picks from your options. A hands-on test found that without an explicit "other" option, off-topic queries were forced into existing categories. A choice question also returns a single winner, and Clef-flash sometimes missed items when several requests were packed together. For multi-intent messages, use one yes/no question per intent, and consider Clef if misses persist. That test was small, about five cases per experiment.

Best-Fit Workloads

Where this model earns its place

01

Agent hot-path routing

‍

Cloudflare positions the Clef family for the request path of an agent: classify first, then hand off to an LLM for the action. A 38.8 ms reported median and one-pass scoring make Clef-flash a fit for choosing which agent, tool or model handles a request. The limit is the 24K hosted context, so pass summaries rather than full histories.

02

Support ticket triage

‍

Urgency (noul), team (choice) and severity (score) map directly onto Clef-flash's question types. On Typesafe's customer service workflow eval it scores within a point of Clef, per Cloudflare. It fits stable label sets and short tickets. Add an "other" option, and move to Clef when intent lists run to dozens of categories.

03

Tool-call and content guardrails

‍

Because the model returns calibrated-style probabilities rather than text, your code can set its own block, review or allow thresholds. Cloudflare cites tool-call moderation, asking whether a call could cause harm, answered in tens of milliseconds before the tool runs. Treat it as a first-pass filter. It is not a grounding or fact-checking layer.

04

Image-based tagging

‍

Clef-flash keeps the Qwen vision encoder and accepts up to four embedded images per request, which text-only decision models cannot do. Receipts, screenshots and product photos can be tagged with typed questions. In a small independent test, the larger Clef missed less on fine image detail, so verify legibility-sensitive tasks before relying on Flash.

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

Integration

Access Clef Flash via AnyAPI.ai

Access Clef Flash through AnyAPI.ai using a unified API built for multi-model AI applications. Integrate Clef Flash 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 Flash and other AI models through the same API workflow instead of maintaining separate integrations for every provider.

02

Easy model switching

Test Clef Flash 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 Flash from experimentation through production while keeping your AI stack flexible as workloads, traffic, and model requirements evolve.

04

Multi-model applications

Use Clef Flash 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-flash is Cloudflare's 9B decision model, released October 1, 2026 and built on Qwen3.5-9B. Instead of generating text, it reads a state plus typed questions and returns a probability for every allowed option. It is the faster, smaller sibling of Clef, intended for latency-critical routing and classification, and its weights are open under Apache 2.0.

Hosted Clef-flash on Workers AI has a 24,576-token context window, reduced from 64K on October 9, 2026. Long text state is truncated to fit. The open weights on Hugging Face are unchanged and support up to 256K tokens when self-hosted. Hosted Clef keeps a 64K window for longer inputs.

No. Clef-flash is non-autoregressive: it runs one prefill pass and scores the valid answers, returning probabilities for noul, choice and score questions. There are no reasoning tokens, no free-form output to parse, and no maximum-output setting. Use a general LLM when you need explanations, drafting or multi-step reasoning.

Use Clef-flash for short inputs, few stable labels and latency-sensitive paths. Cloudflare reports a 38.8 ms median for Flash against 209.3 ms for Clef at launch. Use Clef for long option lists, grounding checks or state over 24K tokens, where Cloudflare's own scores show Flash trailing, for example 35.6 vs 79.4 on RAGTruth.

Yes to both. The Clef-flash weights are on Hugging Face under Apache 2.0, and model cards list testing on a single H200 with BF16 weights. The model keeps a vision encoder, and Workers AI accepts up to four embedded PNG, JPEG or WebP images per request alongside the text state.

* Benchmark data source: Artificial Analysis artificialanalysis.ai