← All models

Clef

GACloudflare

Cloudflare's 27B open-weight decision model on Workers AI — accuracy-tuned, multimodal.

At a glance

Unified API — one shape, switch with model

The simplest way to call Clef: the unified endpoint. Same request and response schema across every model, with the provider's untouched reply included as provider_data.

curl -X POST https://jevtypesafeai.com/api/v1/decisions \
  -H "Authorization: Bearer jv_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "clef",
    "state": "Order R-208 was charged twice. Please refund the extra payment.",
    "questions": {
      "route": { "type": "choice", "instructions": "Which team should handle this?",
                 "criteria": { "billing": "charges and refunds", "account": "login", "other": "anything else" } },
      "urgent": { "type": "noul", "instructions": "Is this urgent?" }
    }
  }'

Native API — Clef's own request & response

Call Clef directly at /api/v1/clef and get its native response back, byte-for-byte. Billing is reported in X-Decision-* response headers.

curl -X POST https://jevtypesafeai.com/api/v1/clef \
  -H "Authorization: Bearer jv_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "state": "Order R-208 was charged twice. Please refund the extra payment.",
    "questions": {
      "route": { "type": "choice", "instructions": "Which team should handle this?",
                 "criteria": { "billing": "charges and refunds", "account": "login", "other": "anything else" } },
      "urgent": { "type": "noul", "instructions": "Is this urgent?" }
    }
  }'
Try it in CompareGet an API keyFull API docs

One jv_live_ key and one prepaid balance work across every model. Prices are what we bill per 1M input tokens; output is free. Clef and its marks belong to Cloudflare.

Clef — decision model API (Cloudflare) | jevtypesafeai · Jev by TypeSafe AI