Independent tools & guides

Clef model.
Turn context
into decisions.

Route support requests, prioritize work, and choose the next step with Cloudflare’s open-source decision models.

Customer support

One message. Three decisions.

Illustrative example · No live API call

A customer writes

Our team cannot sign in after the latest update. All twelve users are blocked.

You ask. Clef classifies.

Who should handle it?
Technical support
How much impact?
Team blocked
Does it need a person?
Human review

Your app’s next step

Route to technical support for urgent review.

Connect your help desk to put this decision into action.

Explore this example in the playground
YOUR TOOLKIT01Playground02API guide03Model comparisons04Use cases

01 / THE MENTAL MODEL

What is the
Clef model?

Some moments need a decision.
Not another paragraph.

Give Clef the context, define the questions, and get answers your application can act on. The shape of the decision is yours to set.

01Input

Your text or image context

02Questions

The decisions you define

03Decision

Structured, typed answers

ChoiceSelect from named options.

ScoreEvaluate against ordered levels.

NoulReturn a yes/no probability.

02 / FROM EXAMPLE TO APPLICATION

The Clef API.
A few lines away.

Use the support example above as your first API request. Adjust the input and questions in the playground when you’re ready.

Start with the API guide
CURRENT CONFIGURATION
curl "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/ai/run/@cf/cloudflare/clef-flash" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-binary '{"model":"clef-flash","state":"Our team cannot sign in after the latest update. All twelve users are blocked.","questions":{"queue":{"type":"choice","instructions":"Which support queue should handle this ticket?","criteria":{"technical":"Login, errors, or service failures","billing":"Invoices, payments, or subscription charges","general":"Other questions"}},"impact":{"type":"score","instructions":"Rate the reported business impact.","criteria":["Minor inconvenience","One person blocked","Team or critical work blocked"]},"review":{"type":"noul","instructions":"Does this ticket require a human support agent?","criteria":{"true":"Blocked work or unclear issue needs a person","false":"A routine answer is sufficient"}}}}'

03 / KNOW YOUR OPTIONS

Compare Clef models.

Compare models
Cloudflare Workers AI hosted models · official specifications
ModelContext windowInput / 1M tokensOfficial source
Clef FlashPLAYGROUND DEFAULT24,576$0.038Cloudflare ↗
Clef65,536$0.24Cloudflare ↗
Clef Omni64,000$0.15Cloudflare ↗

Verified 2026-10-12. Hosted model pricing; excludes website infrastructure.
No independent benchmark results published yet.

Clef vs Jev: read the comparison

04 / START WITH A REAL QUESTION

Clef model use cases.
Start with a real task.

A few ways to connect a model’s answer
to your application’s next action.

01

Customer support

Put tickets in the right hands.

Choose a queue, assess impact, and flag tickets for review.

“I was charged twice this month.”

Try this example
02

Agent workflows

Give your agent a next step.

Choose from the tools and actions your application allows.

“Find the order before issuing a refund.”

Try this example
03

Content review

Find what needs a closer look.

Apply explicit example rules, with room for human judgment.

“Does this post need a human review?”

Try this example
04

Image decisions

Turn a visual check into a checklist.

Explore structured questions about an image and its description.

“Is the product clear and fully in frame?”

Try this example

A FEW THINGS TO KNOW

Good questions.
Clear answers.

About this project
What is the Clef model?

Clef is a family of decision models available through Cloudflare Workers AI. You provide context and typed questions, and receive structured answers that your application can use.

Does Clef generate text like a chatbot?

The workflow here focuses on decisions: yes/no probabilities, choices, and scores. You define the possible answers instead of asking for an open-ended conversation.

How do I call the API?

Send a state and typed questions to the model through Cloudflare Workers AI from your server. Our API guide walks through credentials, request structure, and reading the response.

Can I use images?

Image workflows pair an image with text and structured questions. Try the image checklist in the playground; this site accepts one JPEG, PNG, or WebP up to 1 MiB and 4 megapixels.

How does Clef compare with Jev?

Compare the documented interfaces, access options, and suitability for your own task. We do not publish invented benchmarks or claim an independent performance winner.

Is this an official Cloudflare project?

No. Clef Model Kit is an independent project, not affiliated with or endorsed by Cloudflare or TypeSafe AI. Official documentation is linked alongside model information.

Help us improve the toolkit

Allow Google Analytics to measure visits and tool use? Your playground content is excluded. Privacy details