---
type: "post"
id: "clef-cloudflare-cloudflare-workers-ai-docs-e1bf6c"
slug: "clef-cloudflare-cloudflare-workers-ai-docs-e1bf6c"
title: "clef (Cloudflare) · Cloudflare Workers AI docs"
description: "Cloudflare’s Workers AI documentation now describes Clef, a Cloudflare-hosted 27B multimodal decision model available as `@cf/cloudflare/clef`."
retrieval_nugget: "Cloudflare’s Workers AI documentation now describes Clef, a Cloudflare-hosted 27B multimodal decision model available as `@cf/cloudflare/clef`."
published_at: "2026-10-23"
updated_at: "2026-10-23"
record_date: "2026-10-23"
date_kind: "published_at"
topics: ["generative-ui","agent-interfaces"]
entities: ["Cloudflare","Workers AI","Clef"]
related_patterns: ["model-answers-become-task-interfaces"]
novelty_label: "new_fact"
what_changed: "The docs add Clef specifications: a 27B multimodal model with a 65,536-token context window, $0.24 per million input tokens, and no output-token charge."
prior_refs: ["memory:b9be401e-77b5-8eee-a3ce-d21774523549","memory:033a8f0f-5035-8ad4-afa5-d8155aacc2eb"]
source_url: "https://developers.cloudflare.com/workers-ai/models/clef"
source_urls: ["https://developers.cloudflare.com/workers-ai/models/clef"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:clef-cloudflare-cloudflare-workers-ai-docs-e1bf6c"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/clef-cloudflare-cloudflare-workers-ai-docs-e1bf6c/","markdown":"https://newruntime.com/posts/clef-cloudflare-cloudflare-workers-ai-docs-e1bf6c.md","json":"https://newruntime.com/posts/clef-cloudflare-cloudflare-workers-ai-docs-e1bf6c.json"}
---

# clef (Cloudflare) · Cloudflare Workers AI docs

## Retrieval answer

Cloudflare’s Workers AI documentation now describes Clef, a Cloudflare-hosted 27B multimodal decision model available as `@cf/cloudflare/clef`.

Cloudflare’s Workers AI documentation now describes Clef, a Cloudflare-hosted 27B multimodal decision model available as `@cf/cloudflare/clef`. Rather than producing unrestricted text, it evaluates a supplied state against typed questions and returns probabilities for permitted answers.

The state can be text, JSON, images, or video. The API supports 1 to 64 questions per request, using `noul`, `choice`, or `score` question types. It also exposes a `clef-flash` selector. Clef has a 65,536-token context window and accepts up to four embedded PNG, JPEG, or WebP images; remote image URLs are not accepted.

Cloudflare lists input pricing at $0.24 per million tokens and says there is no output-token charge. Images are converted to input tokens, capped at 1,024 tokens each. The documentation does not establish a release date, availability by plan or region, benchmark results, or how Clef compares with other decision models.

Source: https://developers.cloudflare.com/workers-ai/models/clef

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Generative Ui](https://newruntime.com/topics/generative-ui.md): Explore the generative-ui topic hub.
- topic hub: [Agent Interfaces](https://newruntime.com/topics/agent-interfaces.md): Explore the agent-interfaces topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Source Ledger](https://newruntime.com/source-ledger.json): Inspect the public source evidence graph.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
