Skip to main content

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.

Model card on Hugging Face
Input / output priceUp to 20% off
$0.24 / $0.00$0.192 / $0.00 per 1M
Context
66K tokens
Released
Oct 1, 2026
Agent setup

Paste into Claude Code, Cursor, or Codex

Help me set up the Respan gateway: fetch and follow https://www.respan.ai/docs/agent-setup.md. Use model "clef".

Read docs

Providers

4 providers, cheapest first, OpenRouter last, priced per 1M tokens after gateway discounts.

ProviderInputOutput
Concentrateconcentrate/clef
$0.192/M$0.00/M
DeepInfradeepinfra/Cloudflare/clef
$0.24/M$0.00/M
Prime Intellectprime_intellect/cloudflare/clef
$0.24/M—
OpenRouter20% offopenrouter/clef
$0.24/M$0.192/M$0.00/M

Is a provider down? OpenRouter status

Pricing

Averaged across 4 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.

Highest$0.24/MDeepInfra and Prime IntellectLowest$0.192/MConcentrate and OpenRouter

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 better

0.5sacross providers

Faster than 80% of the other 738 models on the gateway

Benchmarks

5 published scores from 1 source, each linked to where it was published.

Published scores

BenchmarkScore
BFCL case exactblog.cloudflare.com98.5%

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 Concentrate and OpenRouter, and output starts at $0.00 per 1M tokens on every provider, after gateway discounts. Averaged across its 4 providers, it costs $0.22 per 1M input tokens and $0.00 per 1M output tokens.

Clef is available through 4 providers: Concentrate, DeepInfra, Prime Intellect, 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.

Clef has 5 published benchmark scores, including BFCL case exact 98.5% and CLINC150+OOS macro-F1 97.4%. Each score links to where it was published; the data is collected by Respan.

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.

Works with your entire stack

Use Respan with your favorite frameworks and tools.

AnthropicAI21 LabsxAIVercel AI SDK
LangChainOpenRouterAssemblyAICursor
LiteLLMGroqBasetenMem0
CohereCogneeLlamaIndexFireworks
DeepSeekLinkupHaystackTogether AI
PerplexityInference.netPostHogRubyLLM
SlackMastraAzure OpenAIMistral
AWS BedrockMoonshotHyperspellBAML
ModaInstructorGoogle GeminiParasail
ReductoZapierAgnoNebius
OpenAINovita AIReplicateSuperagent

Built for AI agents.
Break less.
Ship more.