Clef
Also known as: Cloudflare Clef, Clef-flash, cf/cloudflare/clef, Clef decision model
Clef is Cloudflare's answer to the growing class of 'decision models': models that pick between predefined options rather than compose free-form language. Released October 1, 2026, Clef and the smaller Clef-flash sit on Workers AI and are freely downloadable from Hugging Face under Apache 2.0. The API is fully compatible with Jev, an earlier decision model from TypeSafe AI, so existing integrations can swap in Clef without changing code.
The core mechanic: you pass in a state (text, JSON, images, or video) and a schema of typed questions. Clef scores each question against the input in a single non-autoregressive pass, returning probabilities without writing a single word of prose. Clef-flash reports a median latency of around 39 milliseconds, making it fast enough to sit in the synchronous decision step of an agent loop, such as picking a tool, checking a policy, or routing a request.
Builder use cases cluster around agent guardrails and routing: does this user message violate a policy, which model tier should handle this request, should this action require human approval. Pairing a decision model on the hot path with a generative LLM for the action step keeps costs low and latency predictable, two things agentic pipelines care about disproportionately.