Icon for Clef

Clef

Open Source

Cloudflare's open decision models: typed choices, scores and yes/no answers with probabilities, hosted or self-run.

Clef is a family of open-weight decision models from Cloudflare. Given a state (text, JSON, images or video) and typed questions, they return a probability for every allowed option instead of generated text. Clef is 27B and Clef-flash 9B, both Qwen fine-tunes; Clef-Omni is a 30B mixture-of-experts model (3B active) that also reads audio. All accept TypeSafe Jev's request format.

Weights are on Hugging Face under Apache-2.0. On Workers AI, input costs $0.24 per 1M tokens for Clef, $0.15 for Clef-Omni and $0.038 for Clef-flash, with output free (October 2026).

Pricing: Free (open weights); usage-based on Workers AI

Hosting Cloud + Self-hosted
Pricing Usage Based, $0.038 per 1M input tokens (Clef-flash on Workers AI)
HQ ๐Ÿ‡บ๐Ÿ‡ธ United States
License APACHE-2.0
Screenshot of Clef webpage

Work on Clef? Feature it at the top of Inference APIs.

Is your product missing?

Add it here →