We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Cloudflare: Clef

cloudflare/clef
DecisionsInput: text · image66KAdded Oct 1, 2026

Try Cloudflare: Clef now

Runs on your balance at the prices above. New accounts start with free usage.

Sign in to use thisCreate free account

Results will appear here.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Cloudflare: Clef at a glance

  • Input price is close to the median of 25 Decisions models.
  • Context window of 65,537 tokens, enough for long documents and multi-turn conversations.
  • A typical request (1,000 input / 500 output tokens) costs about $0.000147.

About Cloudflare: Clef

Cloudflare: Clef is an open-source multimodal decision model from Cloudflare, released on 1 October 2026. It is a fine-tune of Qwen3.8-27B and is served on Workers AI. Its main category is decisions, and that single category describes what the model is built to do rather than treating it as a general chat model.

Clef accepts text and image input. Its output modality is decisions, so instead of free-form prose it returns answers to a schema of typed questions. The context window is 65,536 tokens, and the maximum output is 14,745 tokens. The provider description frames the input as a state, given as text or structured JSON, paired with a schema of typed questions. That combination of state plus schema is the core of how the model operates.

The practical use cases follow from that design. If you have a state you can express as text or JSON, and a set of typed questions you want answered about it, Clef is built for that shape of task. Examples include classifying or routing incoming items, extracting structured fields from a document, and making a choice among defined options. Because images are accepted as input, the state can include visual material alongside text, which suits tasks where a decision depends on something that is easier to show than to describe. The typed-question schema means the answers arrive in a form your code can consume directly, rather than requiring you to parse prose.

You call Clef through api14's OpenAI-compatible API using the model id "cloudflare/clef". The model lists no supported parameters, so you should not expect to pass sampling controls or other optional request fields and have them take effect. Send your state and your schema of typed questions as the input, and read the decisions from the response. Because the output is decisions rather than text, plan your integration around a structured result rather than a message string.

The context window of 65,536 tokens and the output ceiling of 14,745 tokens are the main practical bounds to keep in mind. If your task is open-ended generation, conversation, or anything that needs free-form text output, a model whose output modality is text will fit better, since Clef returns decisions. If your task is a decision over a state you can supply as text, JSON, or an image, and you can express what you want to know as typed questions, Clef matches that shape directly.

How to call the Cloudflare: Clef API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "cloudflare/clef".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.post("/decisions", { body: {
  "model": "cloudflare/clef",
  "state": "Customer: I was charged twice for my order and want my money back.",
  "questions": {
    "team": {
      "type": "choice",
      "instructions": "Which team should handle this message?",
      "criteria": {
        "billing": "Payments, refunds, invoices",
        "support": "Product questions and bugs",
        "sales": "Pricing and new purchases"
      }
    },
    "urgent": {
      "type": "noul",
      "instructions": "Does this need a reply today?",
      "criteria": {
        "true": "Money, outage or legal risk",
        "false": "Can wait"
      }
    }
  }
} });
console.log(result.answers);

Specifications

Context length
65,537
Max output
14,745
Input
text, image
Output
decisions

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Cloudflare: Clef: frequently asked questions

How much does the Cloudflare: Clef API cost?
Cloudflare: Clef costs Input $0.15 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Cloudflare: Clef?
Cloudflare: Clef reads up to 65,537 tokens per request: prompt, history and documents together. It writes up to 14,745 output tokens per response.
What can Cloudflare: Clef do?
Cloudflare: Clef accepts text, image and returns decisions.
How do I call Cloudflare: Clef from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "cloudflare/clef". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Cloudflare: Clef?
Comparable Decisions models at a similar price: TypeSafe: Jev 1.14, Microsoft: Microsoft-Decision-1, Together: Tev1 4B Experimental. Each runs through the same API key, so switching is one string.

Cloudflare: Clef community

New topic

This community has no topics yet. Open the first one about Cloudflare: Clef.