Clef
Clef is Cloudflare's open-source 27B multimodal decision model, a fine-tune of Qwen3.8-27B served on Workers AI. It turns a state (text or structured JSON) plus a schema of typed questions into decisions, returning a calibrated probability for every allowed option of every question in a single forward pass instead of generating tokens. Use it for classification, routing, scoring, guardrails, and agentic control flow through the Decisions API. Note: Workers AI currently truncates long text state to roughly the first 2K tokens, so content beyond that is not read; images are counted separately.
- Input / output price
- $0.192 / $0.00 per 1M
- Context
- 66K tokens
- Released
- Oct 1, 2026
Paste into Claude Code, Cursor, or Codex
Help me set up the Respan gateway: fetch and follow https:/
Providers
2 providers, cheapest first, OpenRouter last, priced per 1M tokens after gateway discounts.
| Provider | Input | Output |
|---|---|---|
DeepInfra deepinfra/Cloudflare/clef | $0.24/M | $0.00/M |
OpenRouter openrouter/clef | $0.192/M | $0.00/M |
Is a provider down? OpenRouter status
Pricing
Averaged across 2 providers, in USD per 1M tokens after gateway discounts.
- Average input
- $0.22 per 1M
- Average output
- $0.00 per 1M
Cost by volume
Total cost from 0 to 1T tokens on the cheapest and most expensive provider.
Throughput and latency
30-day averages from requests through the Respan gateway. Under each figure, every model on the gateway by its average, this one in blue.
Response latency
Lower is better0.5sacross providers
Apps
Use Clef in the tools you already run. Each guide points the app at the Respan gateway.
Setup guides for more apps are in the integration docs.
Clef FAQ
Short answers, built from the data on this page.
Clef is a model from Cloudflare, released on Oct 1, 2026. Clef is Cloudflare's open-source 27B multimodal decision model, a fine-tune of Qwen3.8-27B served on Workers AI. It turns a state (text or structured JSON) plus a schema of typed questions into decisions, returning a calibrated probability for every allowed option of every question in a single forward pass instead of generating tokens. Use it for classification, routing, scoring, guardrails, and agentic control flow through the Decisions API. Note: Workers AI currently truncates long text state to roughly the first 2K tokens, so content beyond that is not read; images are counted separately.
On the Respan gateway, input starts at $0.192 per 1M tokens on OpenRouter, and output starts at $0.00 per 1M tokens on every provider, after gateway discounts. Averaged across its 2 providers, it costs $0.22 per 1M input tokens and $0.00 per 1M output tokens.
Clef is available through 2 providers: DeepInfra and OpenRouter.
Clef accepts up to 66K tokens of context on its largest provider route.
Point any OpenAI-compatible SDK at https://api.respan.ai/api/ with your Respan API key and set the model to "clef". To set it up with a coding agent, copy the agent setup prompt at the top of this page.
Certified where it counts.
Built to meet the security and privacy standards that enterprise and healthcare teams require.
ISO 27001
The internationally recognized standard for information security management.
SOC 2
Secure, compliant management of your data across all of our systems.
GDPR
Operated under GDPR, the world's strictest standard for data privacy.
HIPAA
HIPAA compliant, with a BAA available for healthcare teams.