---
last_updated: 2026-12-04
source_url: https://opper.ai/cloudflare/clef
title: "Clef by Cloudflare"
description: "Clef, Cloudflare's 27B open-weight decision model, answers yes/no, choice and score questions about text or JSON with a probability for every option instead of writing text."
---

# Clef

By [Cloudflare](https://opper.ai/cloudflare).

Released 1 Oct 2026 · [Announcement](https://developers.cloudflare.com/changelog/post/2026-10-01-clef-workers-ai/) · [All Cloudflare releases](https://opper.ai/model-releases/cloudflare)

Clef is a decision model from Cloudflare, post-trained from Alibaba's Qwen3.8-27B with a joint schema head that reads the whole input once and scores every option of every question together. You send a state (text or any JSON value) and named questions, and it returns typed answers: the probability that a statement is true, a choice among options you define, or a position on your own rubric, each with a full probability distribution. It generates no text, so answers cannot fall outside the options given.

Clef speaks the same request and response format as TypeSafe's System One API, so code written for Jev can switch models by changing the model name. Several questions can be asked about one state in a single request.

Use it for decisions composed in code where accuracy matters more than the last few milliseconds: ticket and invoice routing, intent detection, tool selection, guardrail checks and rubric scoring in place of an LLM judge. Clef-flash is the smaller, faster sibling.

Weights are published by Cloudflare under Apache-2.0 at https://huggingface.co/Cloudflare/clef.

## Available routes

Clef runs on 3 different routes through the Opper gateway. Prices are per 1M tokens. In the EU it is served by Melious (Finland) and Sference. [See every model hosted in the EU](https://opper.ai/models/eu). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=cloudflare%3Aglobal%2Fclef.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Cloudflare](https://opper.ai/provider/cloudflare) | `cloudflare:global/clef` | Multi-region | Yes | No | $0.24 | n/a | Input price |
| [Melious](https://opper.ai/provider/melious) | `melious/clef` | EU (Finland) | Yes | No | $0.22 | n/a | Input price |
| [Sference](https://opper.ai/provider/sference) | `sference/clef` | EU | Yes | No | $0.24 | n/a | Input price |

## Key info

- Model id: `cloudflare:global/clef`
- Input: Text, Image
- Output: Text
- Features: none listed
- Context window: 16K
- Input price: $0.24 per 1M tokens
- Released: 1 Oct 2026
- EU residency available on Melious and Sference
- Zero data retention on pay-as-you-go
- No training by default

## Data handling per route

Each route hosting Clef has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### Cloudflare — Multi-region

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. GLOBAL; dpf sccs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Subprocessor access: Subprocessors may read content
- Transfer mechanism: dpf sccs

Verified by Opper on 2026-10-06.

### Melious — Finland

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Subprocessor access: Subprocessors may read content
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-10-14.

### Sference — EU

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EEA; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Subprocessor access: No subprocessor reads content
- Transfer mechanism: SCCs

Verified by Opper on 2026-11-30.

## Best for

Listed in [Decision models](https://opper.ai/models/decision-models).

## Benchmarks

Clef played 100 games of Pac-Man against the four arcade ghosts.

### JevMan: the Pac-Man benchmark for AI decision models

- Rank in our runs: 13 of 19
- Mean score: 2,476
- Best game: 4,820
- Games: 100

Scores from Opper's own runs. Updated Nov 12, 2026. [See the JevMan benchmark](https://opper.ai/jevman-benchmark/) · [Watch Clef's game](https://opper.ai/jevman-benchmark/?pacman=opper%2Fclef) · [Compare all decision models](https://opper.ai/models/decision-models#benchmarks)

## Get started

Call Clef through the Opper gateway with one API key. Evaluate state against typed questions using TypeSafe’s System One API for yes/no decisions, classification, and rubric scoring.

See the [Opper evaluation guide](https://docs.opper.ai/build/gateway/evaluations) and the [TypeSafe API reference](https://docs.typesafe.ai/api) for question types and response formats. [Compare every decision model](https://opper.ai/models/decision-models), on one API.

Clef is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Read https://docs.opper.ai/build/gateway/evaluations and call Clef through Opper's System One evaluation endpoint using state and typed questions.
```

### Or call it directly

cURL:

```bash
curl https://api.opper.ai/v3/compat/v1/systemone \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cloudflare:global/clef",
    "state": "The customer cannot sign in and needs help immediately.",
    "questions": {
      "is_urgent": {
        "type": "noul",
        "instructions": "Does the customer need urgent help?"
      }
    }
  }'
```

## Use Clef in your apps

Pick your tool to see how to run it on Clef through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/clef)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/clef)
- [Codex](https://opper.ai/apps/codex/clef)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/clef)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/clef)
- [Aider](https://opper.ai/apps/aider/clef)
- [Goose](https://opper.ai/apps/goose/clef)
- [Droid](https://opper.ai/apps/droid/clef)
- [OpenCode](https://opper.ai/apps/opencode/clef)
- [Pi](https://opper.ai/apps/pi/clef)
- [OpenClaw](https://opper.ai/apps/openclaw/clef)
- [Hermes](https://opper.ai/apps/hermes/clef)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/clef)
- [OmniRoute](https://opper.ai/apps/omniroute/clef)
- [Cursor](https://opper.ai/apps/cursor/clef)
- [Cline](https://opper.ai/apps/cline/clef)
- [Continue](https://opper.ai/apps/continue/clef)
- [Kilo Code](https://opper.ai/apps/kilo-code/clef)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/clef)
- [Zed](https://opper.ai/apps/zed/clef)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/clef)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/clef)
- [n8n](https://opper.ai/apps/n8n/clef)
- [LibreChat](https://opper.ai/apps/librechat/clef)
- [Open WebUI](https://opper.ai/apps/open-webui/clef)
- [See all apps](https://opper.ai/apps)

## Other models from Cloudflare

- [Clairic](https://opper.ai/cloudflare/clairic)
- [Clef-omni](https://opper.ai/cloudflare/clef-omni)
- [Clef-flash](https://opper.ai/cloudflare/clef-flash)
