CLEF PLAYGROUND

Try the Clef model.

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

Check whether a post needs human review, using sample rules.

Live API availableLive requests use trial quota.

01 Add your context

Paste the content you want to check against your rules.

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).

Classify under the example rules. These are illustrative rules, not a platform policy.Routine · Review · Restricted
Rules · category

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

74 / 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

Classify under the example rules. These are illustrative rules, not a platform policy.

Routine

Ordinary informational content

Probabilities & technical details

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

Classify under the example rules. These are illustrative rules, not a platform policy.choice

Selected option: routine

routine
94.0%
review
5.0%
restricted
1.0%

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

Raw result JSON
{
  "model": "clef-flash",
  "answers": {
    "category": {
      "type": "choice",
      "choice": "routine",
      "probabilities": {
        "routine": 0.94,
        "review": 0.05,
        "restricted": 0.01
      },
      "confidence": 0.85
    }
  }
}

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":"Here is my step-by-step guide to growing tomatoes in balcony containers.","questions":{"category":{"type":"choice","instructions":"Classify under the example rules. These are illustrative rules, not a platform policy.","criteria":{"routine":"Ordinary informational content","review":"Ambiguous claims or context needing human review","restricted":"Explicit threats of violence against a person"}}}}'

Help us improve the toolkit

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