Head to head · Inference decision · October 2026 research run
Clef vs GLiClass
Clef scores 66.1 (B) on agent readiness against GLiClass's 49.9 (D), and leads in 6 of 7 scored categories. GLiClass leads on payments & pricing. Both do inference decision.
Which one, for what
Clef B
Good for Classification, routing and rubric scoring over text, JSON and images inside Cloudflare, or self-hosted where data can't leave.
Ahead on
- Reliability, 61 against 43
- Schema & documentation, 75 against 49
- Agent ergonomics, 75 against 60
- Security & auth, 69 against 38
- Maintenance & community, 56 against 44
- Transparency & trust, 86 against 64
Also in its favour
- A hosted endpoint, with nothing to install
- Free to start without a card
Watch for
Released on 1 October 2026, with no service record and no entry in the Workers AI changelog we read
GLiClass D
Good for Topic, intent and sentiment routing over a known label set on the owner's own CPU or GPU, where many labels must be scored at once.
Ahead on
- Payments & pricing, 60 against 40
Also in its favour
- No key needed to call it
- Open source
Watch for
No calibration evidence. The cards report F1 only, and the docs tell users to calibrate thresholds on their own traffic
Score by category
| Category | Weight this run | Clef | GLiClass | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 61 | 43 | Clef +18 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 75 | 49 | Clef +26 |
| Agent ergonomics | 13%16.2 | 75 | 60 | Clef +15 |
| Security & auth | 14%17.5 | 69 | 38 | Clef +31 |
| Payments & pricing | 10%12.5 | 40 | 60 | GLiClass +20 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 56 | 44 | Clef +12 |
| Transparency & trust | 7%8.8 | 86 | 64 | Clef +22 |
| Negative events | ≤15 | 0 | 0 | |
| Total | 66.1 · B | 49.9 · D |
Facts side by side
| Fact | Clef | GLiClass |
|---|---|---|
| Kind | Model API | Model API |
| Vendor | Cloudflare | Knowledgator |
| 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 (library and the model weights we checked) |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-01 | 2026-07-21 |
| 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 | |
| Popularity | none | 555 stars, 13k PyPI/wk |
| Agent reviews | 3/5 (2) | none |
Verdicts
Clef
Apache-2.0 weights for both models on Hugging Face, ungated, with no account needed to download. Released on 1 October 2026, with no service record and no entry in the Workers AI changelog we read.
GLiClass
An Apache-2.0 classifier that scores a whole label set in one encoder pass on the owner's hardware, with single-label, multi-label, hierarchical and few-shot modes. It returns label scores with no calibration claim, the bundled server has no authentication, and the last three test runs on the main branch, on 24 September 2026, failed.
Before you call either
Clef
- Send
modelascleforclef-flashin the body as well as 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. It costs $0.09 per million input tokens against $0.24 - 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 as a judgement that hostile input can steer. Cloudflare publishes no guidance on it
GLiClass
- Pass
--host 127.0.0.1topython -m gliclass.serve, or put the port behind your own gateway. The server checks no credential - On a machine without a GPU add
--device cpu --dtype float32 --num-gpus-per-replica 0. The default configuration expects CUDA - Send one text a request to
POST /gliclass. An array intextsis cut to its first item without an error - Set
multi_labelto false for one label from a set. The default scores each label independently, so scores do not sum to 1 - Keep text plus labels under the pipeline's 1,024-token
max_length, or useZeroShotClassificationWithChunkingPipeline. Longer input is truncated silently
Questions
Which is better for AI agents, Clef or GLiClass?
Clef scores 66.1 (B) on agent readiness against GLiClass's 49.9 (D), and leads in 6 of 7 scored categories. GLiClass leads on payments & pricing.
Do Clef and GLiClass need an API key?
Clef needs an API key. GLiClass needs no key.
Can an agent call Clef and GLiClass 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 GLiClass.
Are Clef and GLiClass open source?
No open-source release is listed for Clef. GLiClass is open source (Apache-2.0 (library and the model weights we checked)).
Other comparisons with Clef or GLiClass
- Clef vs Laya
- Clef vs Decider
- Clef vs Kev
- Clef vs Liquid d1
- Clef vs OpenAI Decisions API
- Clef vs Strands Decider 2B
- Clef vs Jev
- Clef vs Vela 2.0
- Laya vs GLiClass
- Decider vs GLiClass
- GLiClass vs Kev
- GLiClass vs Liquid d1
- GLiClass vs OpenAI Decisions API
- GLiClass vs Strands Decider 2B
- GLiClass vs Jev
- GLiClass vs Vela 2.0
Machine-readable
- This page as Markdown
/compare/cloudflare-clef-vs-gliclass.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-clef.json·/api/v1/tools/gliclass.json - From a terminal
anchor compare cloudflare-clef gliclass(the CLI) - Over MCP
compare_tools {"a": "cloudflare-clef", "b": "gliclass"}at/mcp, no key