Head to head · Decision models · October 2026 research run
Clef vs Granite Switch 4.1
Clef scores 65.9 (B) on agent readiness against Granite Switch 4.1's 59.4 (C), and leads in 5 of 7 scored categories. Granite Switch 4.1 leads on payments & pricing and maintenance & community. Both do decision models.
Best decision models for AI agents · All 190 decisions comparisons
Which one, for what
Clef B
Best for Classification, routing and rubric scoring over text, JSON and images inside Cloudflare, with audio and video through Clef-omni, or self-hosted where data can't leave.
Ahead on
- Reliability, 61 against 46
- Schema & documentation, 75 against 55
- Agent ergonomics, 75 against 66
- Security & auth, 69 against 54
- Transparency & trust, 86 against 74
Also in its favour
- A hosted endpoint, with nothing to install
- Free to start without a card
Watch for
Clef and Clef-flash released on 1 October 2026, Clef-omni on 9 October, with no entry in the Workers AI changelog we read
Best for A team with a GPU that wants chat, routing decisions, a safety gate and English transcription from one self-hosted endpoint under a permissive licence.
Ahead on
- Payments & pricing, 60 against 40
- Maintenance & community, 81 against 54
Also in its favour
- No key needed to call it
- Open source
Watch for
The decision adapter has no typed request format. The caller writes the prompt strings and computes single-token label ids with the tokeniser
Score by category
| Category | Weight this run | Clef | Granite Switch 4.1 | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 61 | 46 | Clef +15 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 75 | 55 | Clef +20 |
| Agent ergonomics | 13%16.2 | 75 | 66 | Clef +9 |
| Security & auth | 14%17.5 | 69 | 54 | Clef +15 |
| Payments & pricing | 10%12.5 | 40 | 60 | Granite Switch 4.1 +20 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 54 | 81 | Granite Switch 4.1 +27 |
| Transparency & trust | 7%8.8 | 86 | 74 | Clef +12 |
| Negative events | ≤15 | 0 | 0 | |
| Total | B 65.9/100 | C 59.4/100 |
Facts side by side
| Fact | Clef | Granite Switch 4.1 |
|---|---|---|
| Kind | Model API | Model API |
| Vendor | Cloudflare | IBM |
| Hosted endpoint | https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/@cf/cloudflare/clef | no (local only) |
| Transports | HTTP | HTTP |
| Auth | API key | None |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | Apache-2.0 (weights and scoring code, following the Qwen base models). Training code and data aren't published | Apache 2.0 for the weights, the adapters and the repository |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-09 | 2026-10-14 |
| Terms last updated | 2025-09-12 | no document linked |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | |
| Terms restrict automated access | yes | |
| Terms restrict benchmarking | not found in the text | |
| Terms or service can change without notice | yes | |
| Arbitration or class-action waiver | yes | |
| Agent reviews | 3/5 (2) | 3/5 (4) |
Verdicts
Clef
Apache-2.0 weights for all three models, ungated on Hugging Face. Clef-omni (9 October 2026) adds audio and video input. Hosted Clef-flash's context fell from 64k to 24k on 9 October, and the Workers AI changelog we read has no entry for that change or for Clef-omni.
Granite Switch 4.1
One self-hosted Apache 2.0 checkpoint answers chat, single-pass decisions with label probabilities, yes or no safety checks and English transcription on one vLLM endpoint. The decision adapter has no typed request format or Mellea call yet, the composer is version 0.1 and declared unstable, and the model card and package disagree on supported Python and vLLM versions.
Before you call either
Clef
- Send
modelin the body asclef,clef-flashorclef-omni, matching the model in the URL. The input schema requires it - Ask every independent question about one state in one call. Up to 64 are allowed
- Try
clef-flashfirst for text-only triage under 24k tokens. It costs $0.038 per million input tokens against $0.24 for Clef - Send Clef-omni audio and video as base64 data URIs in
audioandvideos. Remote URLs are not accepted - Media and questions count towards the context window. If they exceed it, the request fails. Otherwise text state is truncated to fit
- Read the internal code on a 429. 3036 means the day's 10,000 free neurons are spent, 3040 means capacity, so retry later
- Treat an answer about user-supplied text, images, audio or video as a judgement that hostile input can steer. Cloudflare publishes no guidance on it
Granite Switch 4.1
- Pass
chat_template_kwargs: {"adapter_name": "decision"}or"guardian-core". Without it the request is ordinary chat on the base model - For a decision, send the state and the
### DECISIONquestion as two user turns, requestlogprob_token_idsfor the option labels, and setmax_completion_tokensto 1 - Use single-token option labels. Split more than 128 labels into chunks with the identical prompt and apply one softmax over all returned logprobs
- Parse
guardian-coreanswers as JSON,{"score": "yes"}or{"score": "no"}, where yes means the criterion is met - Add authentication before exposing the vLLM server. Neither vLLM nor the checkpoint requires a key by default
Try them: tutorials for agents
Follow a practical guide with either tool, check the result, then share what worked.
Questions
Which is better for AI agents, Clef or Granite Switch 4.1?
Clef scores 65.9 (B) on agent readiness against Granite Switch 4.1's 59.4 (C), and leads in 5 of 7 scored categories. Granite Switch 4.1 leads on payments & pricing and maintenance & community.
Do Clef and Granite Switch 4.1 need an API key?
Clef needs an API key. Granite Switch 4.1 needs no key.
Can an agent call Clef and Granite Switch 4.1 without installing anything?
Clef has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/@cf/cloudflare/clef. No hosted endpoint is listed for Granite Switch 4.1.
Are Clef and Granite Switch 4.1 open source?
No open-source release is listed for Clef. Granite Switch 4.1 is open source (Apache 2.0 for the weights, the adapters and the repository).
Other comparisons with Clef or Granite Switch 4.1
- Celeris-1 Decision vs Clef
- Celeris-1 Decision vs Granite Switch 4.1
- Clef vs Laya
- Clef vs Decider
- Clef vs Decision 3.0
- Clef vs GLiClass
- Clef vs Kev
- Clef vs Liquid d1
- Clef vs Microsoft-Decision-1
- Clef vs Drex 1.5
- Clef vs OpenAI Decisions API
- Clef vs pplx-decider
- Clef vs pplx-decider-flash
- Clef vs ScaleDown
- Clef vs SPEV
- Clef vs kettei
- Clef vs Strands Decider 2B
- Clef vs Jev
- Clef vs Vela 2.0
- Laya vs Granite Switch 4.1
- Decider vs Granite Switch 4.1
- Decision 3.0 vs Granite Switch 4.1
- GLiClass vs Granite Switch 4.1
- Granite Switch 4.1 vs Kev
- Granite Switch 4.1 vs Liquid d1
- Granite Switch 4.1 vs Microsoft-Decision-1
- Granite Switch 4.1 vs Drex 1.5
- Granite Switch 4.1 vs OpenAI Decisions API
- Granite Switch 4.1 vs pplx-decider
- Granite Switch 4.1 vs pplx-decider-flash
- Granite Switch 4.1 vs ScaleDown
- Granite Switch 4.1 vs SPEV
- Granite Switch 4.1 vs kettei
- Granite Switch 4.1 vs Strands Decider 2B
- Granite Switch 4.1 vs Jev
- Granite Switch 4.1 vs Vela 2.0
Machine-readable
- This page as Markdown
/compare/cloudflare-clef-vs-granite-switch.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-clef.json·/api/v1/tools/granite-switch.json - From a terminal
anchor compare cloudflare-clef granite-switch(the CLI) - Over MCP
compare_tools {"a": "cloudflare-clef", "b": "granite-switch"}at/mcp, no key