---
title: "Clef-flash"
description: "The small, fast member of Cloudflare's open-weight Clef decision models, a 9B fine-tune of Qwen3.5-9B. Its median latency was 39 ms in Cloudflare's tests, at $0.038 per million input tokens."
canonical: https://pydantic.dev/models/list/clef-flash/
---

# Clef-flash

> The small, fast member of Cloudflare's open-weight Clef decision models, a 9B fine-tune of Qwen3.5-9B. Its median latency was 39 ms in Cloudflare's tests, at $0.038 per million input tokens.
>
> Markdown copy of [https://pydantic.dev/models/list/clef-flash/](https://pydantic.dev/models/list/clef-flash/). Index for agents: [llms.txt](https://pydantic.dev/models/llms.txt)

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://pydantic.dev/models/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: [select.md](https://pydantic.dev/models/select.md)
- Search models by name: `GET https://pydantic.dev/models/api/search?query=<text>`
- List, filter and sort models: `GET https://pydantic.dev/models/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://pydantic.dev/models/api/models/<slug>`
- Any other question about the models: `GET https://pydantic.dev/models/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five are tools of the MCP server at `https://pydantic.dev/models/mcp`. More: [usage.md](https://pydantic.dev/models/usage.md)

A decision model answers typed questions about a state (yes/no, choice from a list, or a score) with a probability for each answer, instead of writing text. Pydantic AI and Pydantic AI Gateway call models that write text, so they can't call it: use its provider's decisions API, or OpenRouter's. OpenRouter's decisions API: [docs](https://openrouter.ai/docs/guides/features/decisions).

## Spec sheet

- **Type:** decision model
- **Family:** Cloudflare
- **Released:** 1 Oct 2026
- **Weights:** open
- **Context window:** 24,576 tokens
- **Accepts:** text, image
- **Answers:** Typed questions: yes/no, choice, score
- **Knowledge cutoff:** unknown
- **Scores updated:** 2026-12-02
- **Price:** $0.038 per 1M input tokens; output is free
- **Popularity:** rank 115 of 211 by usage
- **Pydantic AI Gateway:** not available

## Benchmarks


| Benchmark          | Score | Rank among models tested | What it measures                                                                                                     | Source                                             |
| ------------------ | ----- | ------------------------ | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| Jev Decision Index | 44.4  | 9                        | An independent suite of 37 public benchmarks recast as typed questions, run on each decision model by its maintainer | Jev Decision Index (multimodalart on Hugging Face) |

## Providers and prices

US dollars per million tokens.

| Provider              | Gateway | Pydantic AI string | Input  | Cached input | Output |
| --------------------- | ------- | ------------------ | ------ | ------------ | ------ |
| Cloudflare Workers AI | –       | –                  | $0.038 | –            | $0     |
| OpenRouter            | –       | –                  | $0.038 | –            | $0     |
| OVHcloud              | –       | –                  | $0.04  | –            | $0     |

## About Clef-flash

Clef-flash costs $0.038 per million input tokens and $0 per million output tokens and has a 25k token context window.

Clef-flash is the 9B member of Cloudflare's Clef decision models, released on 1 October 2026 with open weights under the Apache 2.0 licence. It is a fine-tune of Qwen3.5-9B that answers between 1 and 64 typed questions (yes/no, choice or score) about a state of text, JSON or images.

Its context window is 24,576 tokens. Input costs $0.038 per million tokens on Workers AI and output is free. In Cloudflare's tests its median latency was 39 ms and p95 122 ms, the fastest of the models Cloudflare measured.

It is weaker than Clef on harder tasks: Cloudflare's own results put it far behind on CLINC150 with out-of-scope queries (66.8 against 97.4 macro-F1).

**Strengths**

- Median latency of 39 ms in Cloudflare's tests
- $0.038 per million input tokens, with output free
- Open weights under Apache 2.0

**Weaknesses**

- Answers only typed questions (yes/no, choice, score); it cannot write text, call tools or run as an agent
- Context window of 24,576 tokens
- Well behind Clef on harder classification, such as spotting out-of-scope queries

**Best for:** High-volume, latency-sensitive routing and classification where a small open model is enough.

Prices come from [genai-prices](https://github.com/pydantic/genai-prices), in US dollars per million tokens. Benchmark scores come from Epoch AI and LMArena (CC BY 4.0), Browser Use, our own Pydantic AI benchmarks (CC BY 4.0), and, for decision models, Artificial Analysis and the Jev Decision Index; the index and its sources are described in [the methodology](https://pydantic.dev/models/methodology.md). Data built 2026-12-03. This model from the API: `https://pydantic.dev/models/api/models/clef-flash`. Compare it with others: `https://pydantic.dev/models/api/models?slug=clef-flash,<other slug>`
