CLEF PLAYGROUND

Try the Clef model.

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

Check clarity, complete framing, and a plain background.

Live API availableLive requests use trial quota.

01 Add your context

Describe the image and the requirements you want to check.

Image for this example

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

Example blue bottle on a plain light background

Original procedural raster illustration created for Clef Model Kit, 2026-10-12; no external photo or source asset.

02 Choose your questions

3 / 3

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

Is the product clearly visible?Yes or no
Rules · clear

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

Is the entire product inside the frame?Yes or no
Rules · complete

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

Is the background plain and light?Yes or no
Rules · background

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

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

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

Is the product clearly visible?

Leans yes

Is the entire product inside the frame?

Leans yes

Is the background plain and light?

Leans yes

Probabilities & technical details

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

Is the product clearly visible?noul
Yes
95.0%
No
5.0%
Is the entire product inside the frame?noul
Yes
96.0%
No
4.0%
Is the background plain and light?noul
Yes
98.0%
No
2.0%
Raw result JSON
{
  "model": "clef-flash",
  "answers": {
    "clear": {
      "type": "noul",
      "noul": 0.95
    },
    "complete": {
      "type": "noul",
      "noul": 0.96
    },
    "background": {
      "type": "noul",
      "noul": 0.98
    }
  }
}

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":"An original illustration of a blue bottle on a plain light background. Check the example listing requirements.","questions":{"clear":{"type":"noul","instructions":"Is the product clearly visible?"},"complete":{"type":"noul","instructions":"Is the entire product inside the frame?"},"background":{"type":"noul","instructions":"Is the background plain and light?"}}}'

Help us improve the toolkit

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