Browse

Updated

In short

Clef is an AI developer tool from Cloudflare: a 27B multimodal decision model on Workers AI that returns probabilities across your schema's options.

What is Clef?

Clef is an AI developer tool from Cloudflare — a 27B multimodal decision model, available on Workers AI, that turns a state and a schema of typed questions into decisions rather than free-form text. You give it inputs as text, JSON, images, or video, and it returns a probability distribution across every allowed option, which makes outputs easy to act on programmatically. The schema supports three question types: binary, multiple-choice, and scaled scoring, so one call can answer a yes/no, pick from a list, and rate on a scale. It is vision-capable, accepting up to 4 images per request, and has a 65,536-token context window, enough to pass substantial state in one shot. Typical uses are support-ticket routing, content moderation, and situation scoring at scale, where you want a reliable, interpretable choice instead of generated prose. Because it runs on Cloudflare Workers AI, you call it as a hosted endpoint rather than managing GPUs yourself. For BestAIFor readers building classification and routing pipelines, Clef is a purpose-built alternative to prompting a chat model for every decision. Pricing on Workers AI is $0.24 per million input tokens.

What is Clef used for?

Routing support tickets, moderating content, and scoring records by returning structured probabilities over a defined schema.

How much does Clef cost?

Workers AI

$0.24/month

$0.24 per million input tokens

View pricing

Pros and cons

Pros

  • Returns probabilities across every allowed option instead of free-form text
  • Three question types in one schema: binary, multiple-choice, and scaled scoring
  • Vision-capable — accepts up to 4 images per request
  • 65,536-token context window for passing substantial state
  • Hosted on Cloudflare Workers AI, so no GPU management

Cons

  • A decision/classification model, not a general-purpose chatbot or content generator
  • Running on Workers AI ties you to Cloudflare's platform and token-based billing
  • Designing the typed-question schema takes upfront work versus a quick prompt

Questions about Clef

What is Clef used for?

Clef is used for programmatic decisions and classification: routing support tickets, moderating content, and scoring situations. It takes a state and a schema of typed questions and returns probabilities for each option.

How much does Clef cost on Workers AI?

Clef is priced at $0.24 per million input tokens on Cloudflare Workers AI.

Can Clef process images?

Yes. Clef is multimodal and vision-capable, accepting text, JSON, images, or video, with up to 4 images per request and a 65,536-token context window.

How is Clef different from a chat model?

Instead of generating prose, Clef evaluates a schema of binary, multiple-choice, and scored questions and returns a probability for each allowed option, which is easier to act on in an automated pipeline.

What are the best alternatives to Clef?

Open-source Clef weights on Hugging Face, Qwen classification models, OpenAI function/structured-output calls

Reviews

Sign in to rate and review Clef.

Sign in to review

No reviews yet. Be the first to review Clef!

Visit Clef