Clef on Cloudflare Workers AI

Clef · Cloudflare

ServerlessOpen Source

Last refreshed 2026-10-04. Next refresh: weekly.

Why use Clef on Cloudflare Workers AI?

Cloudflare Workers AI offers Clef with pay-as-you-go pricing at $0.24/1M input tokens. Cloudflare is a leading connectivity cloud company that provides a comprehensive suite of cloud-native products and developer tools to enhance web performance, security, and reliability.

Input / 1M
$0.24
Output / 1M
-
Cache
Not sourced
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: @cf/cloudflare/clef
Model ID
@cf/cloudflare/clef

Request example

Curated snippets for this provider are not sourced yet. Use Cloudflare Workers AI documentation with model ID @cf/cloudflare/clef.

Gotchas

  • Use provider model ID "@cf/cloudflare/clef", not the LLMReference slug "clef".

Pricing

TypePrice (per 1M)
Input tokens$0.24

Capabilities

VisionMultimodalStructured Outputs

About Clef

Clef is Cloudflare's 27B open-weight multimodal decision model, released 2026-10-01 as one of the first models trained by the Workers AI team. Post-trained from Qwen3.8-27B: the backbone is frozen, and a joint schema head is trained alongside rank-256 LoRA adapters with label-smoothed cross-entropy, a Brier calibration loss, and RLCD. Clef reads a state (text, JSON, or images) and up to 64 typed questions (noul, choice, or score) and returns a probability for every allowed option in one non-autoregressive pass: a prefill-only backbone pass, then parallel schema scoring, with no free-form text generation and no output parsing.

Get Started

Model Specs

Released2026-10-01
Parameters27B
Context66k

Related Models on Cloudflare Workers AI