CLEF PLAYGROUND

Try the Clef model.

Pick a scenario. Explore the context, shape the questions, and understand the decisions.

Choose among explicitly allowed actions.

Live API availableLive requests use trial quota.

01 Add your context

Describe the request and what your app or agent is allowed to do.

Add an image (optional)

One image, at most 1 MiB and 4 megapixels. Requires text state. These are this site's limits.

02 Choose your questions

1 / 3

Tell Clef what to check. Edit the sample questions or add your own (1–3 questions).

Choose the next allowed action.Lookup order · Answer faq · Human review
Rules · next_step

Up to 500 UTF-8 bytes; each description up to 200 bytes.

Named options (2–6). Labels must be unique.

Keep at least one question to run an analysis.

3 attempts/minute and 3/day per public IP; 300/day site-wide. Browsers, devices, and models using the same public IP share this quota. Daily reset: 00:00 UTC. Failed, timed out, and canceled attempts may count.

Advanced settings

98 / 8000 serialized UTF-8 bytes used.

Replaces the content with an ambiguous example to test your rules. It does not run an analysis.

Illustrative example available

03 Read the decision

Example answersIllustrative · not a live result

Choose the next allowed action.

Lookup order

Look up an existing order status

Probabilities & technical details

Probabilities express a model’s judgment, not measured accuracy. Example values are illustrative.

Choose the next allowed action.choice

Selected option: lookup_order

lookup_order
88.0%
answer_faq
3.0%
human_review
9.0%

API confidence: 73.0%. This is a separate field from the option probabilities.

Raw result JSON
{
  "model": "clef-flash",
  "answers": {
    "next_step": {
      "type": "choice",
      "choice": "lookup_order",
      "probabilities": {
        "lookup_order": 0.88,
        "answer_faq": 0.03,
        "human_review": 0.09
      },
      "confidence": 0.73
    }
  }
}

For developers

Take it into your app.

Copy an API request for your current draft, or save the configuration for later.

API code & configuration

Drafts stay in page memory. Export before leaving. Configuration files never include images, credentials, or results.

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":"The user asks for the current delivery status of order A104. The order lookup tool is available.","questions":{"next_step":{"type":"choice","instructions":"Choose the next allowed action.","criteria":{"lookup_order":"Look up an existing order status","answer_faq":"Answer a general policy question","human_review":"Escalate unclear or unsupported requests"}}}}'

Help us improve the toolkit

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