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 Flash
cloudflare/clef-flashTry Cloudflare: Clef Flash now
Runs on your balance at the prices above. New accounts start with free usage.
Results will appear here.
Settings
Cloudflare: Clef Flash at a glance
- Input price is close to the median of 25 Decisions models.
- A typical request (1,000 input / 500 output tokens) costs about $0.000133.
About Cloudflare: Clef Flash
Cloudflare: Clef Flash is a decision model from Cloudflare, the company behind Workers AI and a broad edge network. It belongs to Cloudflare's open source Clef family, and this flash variant is the fast 9B member of that family. It is a fine tune of Qwen3.5-9B and is served on Workers AI, so it sits within Cloudflare's own inference stack rather than being a generic hosted checkpoint.
The model takes a state as input, which can be plain text or structured JSON, and it also accepts images. Its output is a decision rather than free form prose, which makes it a different kind of tool from a general chat model. The context window is 65,536 tokens, and the maximum output is 14,745 tokens. Because the output modality is decisions, you should expect the model to return a choice or classification style result that your application then acts on, not a long written answer.
That shape points to a fairly specific set of uses. Anywhere your code needs to pick between options based on a mix of text and structured data, Clef Flash is a natural fit: routing or triage logic, classifying an incoming request, deciding whether an item matches a rule set, or choosing the next step in a workflow. The image input extends this to cases where the state includes a screenshot, a document scan or a photo alongside text or JSON. The JSON input support matters too, since you can pass a structured state directly instead of flattening everything into prose.
You call it through api14's OpenAI compatible API using the model id "cloudflare/clef-flash". Because the endpoint follows the OpenAI schema, you can point existing OpenAI client libraries at api14 and change the model id rather than rewriting your integration. Note that this model lists no supported request parameters, so you should not rely on tuning knobs such as temperature or top_p being honoured; send your state in the standard message format and read the decision from the response.
The main thing to weigh is the output modality. If your task needs generated text, explanation or conversation, a decision model is the wrong shape, and a general text model will fit better. Clef Flash is also a 9B model, so it is built for speed rather than for the heaviest reasoning workloads. Use it when you want a fast, cheap to run decision step over text, JSON or images within a 65,536 token context, and look elsewhere when the job is producing prose.
How to call the Cloudflare: Clef Flash API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "cloudflare/clef-flash".
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-flash",
"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
- 24,576
- Max output
- 22,118
- Input
- text, image
- Output
- decisions
Requests on api14 · last 7 days
Cloudflare: Clef Flash: frequently asked questions
- How much does the Cloudflare: Clef Flash API cost?
- Cloudflare: Clef Flash costs Input $0.13 / 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 Flash?
- Cloudflare: Clef Flash reads up to 24,576 tokens per request: prompt, history and documents together. It writes up to 22,118 output tokens per response.
- What can Cloudflare: Clef Flash do?
- Cloudflare: Clef Flash accepts text, image and returns decisions.
- How do I call Cloudflare: Clef Flash from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "cloudflare/clef-flash". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Cloudflare: Clef Flash?
- Comparable Decisions models at a similar price: ScaleDown: Classify-1, Nace.AI: Drex v1.5, LiquidAI: d1. Each runs through the same API key, so switching is one string.
Cloudflare: Clef Flash community
New topicThis community has no topics yet. Open the first one about Cloudflare: Clef Flash.