Skip to content
Cloudflare

Clef

inworld/models/clef

Clef is a decision model by Cloudflare that returns typed answers your code can branch on. It has a 66K token context window. Access Clef through the Decisions API on Inworld LLM Inference.

Input
$0.15
Output
$0.00
Cache read
—
Context
65.5K
Max output
—
TextImage→
Run on your server. Set INWORLD_API_KEY to your API key. Python requires pip install requests; JavaScript requires Node.js 18+; save it as example.mjs.
curl --fail-with-body https://api.inworld.ai/alpha/decisions \
  -H "Authorization: Basic $INWORLD_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "inworld/models/clef",
    "state": "My payouts have been failing for three days.",
    "questions": {
      "is_urgent": {
        "type": "noul",
        "instructions": "Does this convey urgency?"
      }
    }
  }'
Model ClefDecisions API · Preview

Pricing and providers

Access Clef through Inworld LLM Inference or speech to speech via Inworld. By using the providers below you agree to their terms, listed under each provider's name in the Legal section.

Modalities
InworldThis pageinworld/models/clef
$0.15$0.00——65.5K—
TextImage→
Prices in USD per 1M tokens.

Start building with Clef

Access Clef and every other model through LLM Inference or speech to speech. Create a free account and start in minutes.