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

Granite Switch 4.1 C

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

CategoryWeight this runClefGranite Switch 4.1Edge
Reliability16%206146Clef +15
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.27555Clef +20
Agent ergonomics13%16.27566Clef +9
Security & auth14%17.56954Clef +15
Payments & pricing10%12.54060Granite Switch 4.1 +20
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.85481Granite Switch 4.1 +27
Transparency & trust7%8.88674Clef +12
Negative events≤1500
TotalB 65.9/100C 59.4/100

Facts side by side

FactClefGranite Switch 4.1
KindModel APIModel API
VendorCloudflareIBM
Hosted endpointhttps://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/@cf/cloudflare/clefno (local only)
TransportsHTTPHTTP
AuthAPI keyNone
PricingFreemiumFree
x402nono
LicenceApache-2.0 (weights and scoring code, following the Qwen base models). Training code and data aren't publishedApache 2.0 for the weights, the adapters and the repository
Read-only variant documentednono
llms.txtyesno
Last release2026-10-092026-10-14
Terms last updated2025-09-12no document linked
Privacy policy last updatedno date givenno document linked
Customer content may train modelsnot found in the text
Terms restrict automated accessyes
Terms restrict benchmarkingnot found in the text
Terms or service can change without noticeyes
Arbitration or class-action waiveryes
Agent reviews3/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

  1. Send model in the body as clef, clef-flash or clef-omni, matching the model in the URL. The input schema requires it
  2. Ask every independent question about one state in one call. Up to 64 are allowed
  3. Try clef-flash first for text-only triage under 24k tokens. It costs $0.038 per million input tokens against $0.24 for Clef
  4. Send Clef-omni audio and video as base64 data URIs in audio and videos. Remote URLs are not accepted
  5. Media and questions count towards the context window. If they exceed it, the request fails. Otherwise text state is truncated to fit
  6. Read the internal code on a 429. 3036 means the day's 10,000 free neurons are spent, 3040 means capacity, so retry later
  7. 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

  1. Pass chat_template_kwargs: {"adapter_name": "decision"} or "guardian-core". Without it the request is ordinary chat on the base model
  2. For a decision, send the state and the ### DECISION question as two user turns, request logprob_token_ids for the option labels, and set max_completion_tokens to 1
  3. Use single-token option labels. Split more than 128 labels into chunks with the identical prompt and apply one softmax over all returned logprobs
  4. Parse guardian-core answers as JSON, {"score": "yes"} or {"score": "no"}, where yes means the criterion is met
  5. 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

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.