Head to head · Decision models · October 2026 research run
Clef vs GLiClass
Clef scores 68.3 (B) on agent readiness against GLiClass's 55.5 (C), and leads in 5 of 7 scored categories. GLiClass leads on payments & pricing and maintenance & community. Both do decision models.
Best decision models for AI agents · All 263 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, 68 against 43
- Schema & documentation, 78 against 49
- Agent ergonomics, 75 against 60
- Security & auth, 72 against 38
- Transparency & trust, 87 against 65
Also in its favour
- A hosted endpoint, with nothing to install
- Free to start without a card
Watch for
Hosted Clef-flash's context fell from 64K to 24K tokens on 9 October 2026, announced in the changelog the day it took effect
GLiClass C
Best 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, 90 against 60
- Maintenance & community, 64 against 59
Also in its favour
- No key needed to call it
- Open source
- No incidents deducted, where Clef loses 3 points for them
Watch for
No calibration figures on the v3.0 cards, which report F1 only; the v4 2B and 27B repositories hold calibration report files we couldn't read
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth Clef +34
Clef 72
Read for a model API. Cloudflare API tokens scoped to Workers AI permissions on an account and revocable, per the Cloudflare MCP listing's check of 1 October. Permission is per account, not per model (27 of 30). The Workers AI data page (updated 16 October 2026, per the Clairic listing's 1 November check) says standard inference keeps no inputs or outputs after the response and Customer Content isn't used to train models, and the launch post says Cloudflare doesn't read, store or train on Clef requests or responses outside the fine-tuning service (18 of 20). Clef is pitched at support triage and threat intelligence, both untrusted input, and we found no guidance on adversarial or injected content in the model page, the launch post or the model card. Self-hosting runs custom code from the model repository (3 of 15). The launch post's fine-tuning flow captures datasets through AI Gateway, and gateway logs record each request when one is used. Account audit logs record token changes per the Cloudflare MCP check (6 of 15). security.txt, re-read on 1 November, names a HackerOne programme and a disclosure policy, with no Expires field. Cloudflare's ISO certifications page, read on 1 November, says Cloudflare is certified to ISO 27001 (since 2019, now to its 2022 edition), ISO 27018 and ISO 27701, with a scope of the Cloudflare global cloud platform. 2 held back for the missing Expires field, as cloudflare-clairic, cloudflare-r2, cloudflare-workers-ai and cloudflare-ai-gateway read the same evidence (18 of 20, 15 before, when certifications went unread). Clef-omni widens user-supplied input to audio and video, and Cloudflare publishes no guidance on hostile media. 27 + 18 + 3 + 6 + 18 = 72.
GLiClass 38
Read as a model, for retention, training and zero-retention options in place of read-only modes, on the lines used for Kev, Vela 2.0 and the other decision models listed as models. No account. The Ray Serve deployment checks no credential and has no option for one in 0.1.22, and the command line still binds to 0.0.0.0 by default (6 of 30). Self-hosted, so nothing reaches Knowledgator and no caller data can train a model, and the package has no telemetry code, but no project page says so, where Kev's cards and Vela 2.0's runtime reference state it for their 18 (15 of 20, level with Strands Decider and Granite Switch). The output is labels and scores, so no untrusted text comes back. The docs warn that the safety checkpoints can miss new or obfuscated attacks. Nothing documents how hostile text moves a score (10 of 15). The server logs start-up and label truncation and keeps request statistics, and the docs describe no per-call record (3 of 15). No SECURITY.md, no security.txt on knowledgator.com (404 per the 8 October check, not re-read on 4 November) and no bounty. Weights are safetensors, though the v4 2B repository also holds a pickled training_args.bin beside them. PyPI releases use trusted publishing. gliclass/config.py still loads an unknown encoder's configuration with trust_remote_code=True (4 of 20). 6+15+10+3+4 = 38.
Payments & pricing GLiClass +30
Clef 60
No x402, MPP or L402 on Workers AI (0). Per-token prices published without a login, $0.24 per million input tokens for Clef, $0.038 for Clef-flash and $0.15 for Clef-omni, with neurons at $0.011 per 1,000 (20). Workers AI includes 10,000 neurons a day on the Free plan, and Cloudflare's Free plan needs no card per the 30 September check (20). The hosted route needs a person to sign up in a browser. The weights download from Hugging Face without an account, but other open-weight listings get no onboarding credit for that, so Clef doesn't either (0). Prices re-read on the pricing page (last updated 20 October 2026) on 1 November, and Machine Payments on POST /ai/run still lists four other models. 0 + 20 + 20 + 0 = 40. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.
GLiClass 90
Free Apache-2.0 software with nothing to buy, so 20 + 20 + 20 for pricing, free use and no sign-up under the self-hosted rule. No payment protocol (0). Knowledgator's hosted platform and its plans were unreachable from our network on 8 October 2026 and are not graded here. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.
Schema & documentation Clef +29
Clef 78
The model page publishes a JSON Schema for input and output, with model limited to clef or clef-flash, 1 to 64 questions and image limits, and the account API's GET /ai/models/schema returns a model's schemas. Cloudflare's public OpenAPI, updated 2 October, has only the generic /ai/run/{model_name} path (22 of 25). llms.txt for the developer docs (10). The page says what Clef does, 'turns a state and a schema of typed questions into decisions', and the launch post adds use cases, but neither says when not to use it (10 of 20). Typed question kinds behind a type enum, with question-count and image limits. State is free-form by design (13 of 15). Examples in JavaScript, Python and curl, and a Workers AI error table with internal and HTTP codes, though nothing specific to Clef (13 of 15). Model IDs carry no version and the Hugging Face repositories have commit history. The Workers AI page in the docs still stops at 16 June 2026, but Cloudflare's product changelog for Workers AI, read with its RSS feed on 1 November, has dated Clef entries for 1 October and 9 October 2026, the second naming the Clef-flash price and context changes (10 of 15, 7 before, when only the docs page was read). Clef-omni has its own page with a JSON Schema and media limits, published the same way. 22 + 10 + 10 + 13 + 13 + 10 = 78.
GLiClass 49
Read for a model the owner serves. No OpenAPI file. The serving page documents the seven request fields of POST /gliclass and the response array in a table, and the pipeline's Python signatures carry type hints (10 of 25). docs.knowledgator.com has no llms.txt (404). The README, docs/streaming.md and the model cards are Markdown (5 of 10). The cards and docs name the intended uses (topic, sentiment, intent, natural language inference, reranking) and print per-dataset F1 that shows the weak cases, such as 0.3376 on sst5 for base v3.0. The base card has no limitations section and says nothing on calibration (11 of 20). Labels are free strings or a dict of groups, the mode is one of two values and threshold is a number. The HTTP handler reads fields from the body without validation, and a list in texts is cut to its first item (8 of 15). Examples for every mode in the docs. The handler's 400 and 404 answers are not documented, and a request without labels gets a 404 (8 of 15). Versions on PyPI and version numbers in model names, with three one-line GitHub release notes and no changelog (7 of 15). Version 0.1.22 adds a second HTTP interface under /v1/ (process, batch, models, capabilities, health) with coded errors carrying an HTTP status and a JSON path, in the code only; neither the docs site's serving page nor the README describes it on 4 November, so no line moves.
Reliability Clef +25
Clef 68
Scored as a hosted model on Workers AI. www.cloudflarestatus.com is a Statuspage with Workers AI as its own component (20). Clef's public record runs from its release on 1 October 2026, 31 days before 1 November. The incidents feed read on 9 October for the Workers AI listing held 21 September to 8 October, none naming Workers AI. The feed read on 20 October for the Clairic listing held 5 to 19 October, with one Workers AI incident, minor, on 15 October, errors on five DeepSeek and GLM models, not Clef. The feed read on 1 November holds 50 incidents from 16 to 31 October. Workers AI is named only in "Issues with AI Security for Apps" on 27 October, intermittent failures in unsafe topic detection with impact none, which doesn't touch Clef. The 23 October network incident, labelled major, describes some traffic between Ashburn and Atlanta and some customers in North America, and the 27 October major affected customers whose traffic passes through an external vendor firewall, so both read as partial, as cloudflare-clairic and cloudflare-workers-ai read them. The history page, read on 1 November, shows nothing naming Workers AI from 29 October to 1 November. So Clef's whole life is read and nothing touched it. A record this short reads as 15 of 30 in this run, as cloudflare-clairic (13 days) and pplx-decider (31 days) read theirs, so the 10 October 8, which isn't a checklist value, is brought into line (15). The model page lists Clef under Text Generation, whose default limit is 300 requests a minute, though Clef isn't named on the limits page (13 of 15). The errors page gives 429 two internal codes, 3036 for a spent free allocation and 3040 for capacity, per the Workers AI listing's check. No Retry-After was found for a 3040. A call has no side effects, so a retry is safe (10 of 15). No SLA for Workers AI found (0). The Clef and Clef-flash model pages, re-read on 1 November, carry no beta label (10). 20 + 15 + 13 + 10 + 0 + 10 = 68.
GLiClass 43
Scored on the local-package checklist, since GLiClass is a library and weights the owner runs. pip install gliclass with Python 3.10 or newer stated. The repository tags v0.1.21 (16 October 2026) and v0.1.22 (31 October 2026), and its release workflow publishes every v* tag to PyPI; pypi.org didn't resolve from our shell on 4 November, so the PyPI pages weren't re-read. The README's source install still calls a requirements.txt the repository doesn't have, and the base v3.0 card still names transformers>=4.48.0 while the package requires 5.0 (17 of 20). A public Tests workflow runs pytest on Python 3.10 to 3.12 and a ruff job. Its last three runs on main, all on 24 September 2026, had failed, per the 8 October check, not re-read on 4 November (GitHub's pages refuse our reader), and later commits fix ruff errors (10 of 25). 15 issues and 1 pull request were open on 8 October, the oldest from 22 September 2024, among them #44 (models not loading with transformers v5), #35 (demo error) and #12 (every label scored 0.99), per the 8 October check, not re-read on 4 November (12 of 25). No changelog file, and 0.1.18 moved the dependency floor to transformers 5 in a patch version (4 of 15). Version 0.1.22, with no statement of stability (0). 17+10+12+4+0 = 43.
Transparency & trust Clef +22
Clef 87
Weights and scoring code under Apache-2.0, following the Qwen base models. Training code and data aren't published (27 of 30). The Workers AI data page and the launch post agree, no training without consent and nothing kept unless you store it. Cloudflare's privacy policy and DPA exist, per the Cloudflare MCP check (26 of 30). The Workers AI changelog posts dated notices, such as the 8 May notice for Kimi K2.5, but we found no deprecation policy (10 of 20). Cloudflare's subprocessor page names 12 third parties and 16 group companies with locations, per the Cloudflare MCP check of 1 October. Where Clef inference runs isn't stated (14 of 20). Clef-omni is Apache-2.0 on its Hugging Face card, and we didn't check whether it publishes training code or data. The churn point sits under maintenance, so the deprecation item stays at 10 of 20. Hugging Face still shows all three models under apache-2.0 on 1 November. 27 + 26 + 10 + 14 = 77.
GLiClass 65
Apache-2.0 for the library and the weights, with train.py, the training datasets named on the card and an arXiv paper (30). Self-hosted, so inputs stay on the owner's hardware, though no project page says so. The company's terms of use and privacy policy of 21 September 2023 (terms re-read on 4 November) covers its website and services, not the library (18 of 30). No deprecation policy. Older model generations stay on the Hub without a notice of which are current (2 of 20). We found no telemetry code in the package and no statement either way. Weights download from the Hugging Face Hub (10 of 20).
Agent ergonomics Clef +15
Clef 75
Read as an API an agent calls for a decision, as with Jev, since Clef doesn't call tools or generate text. Answers are a probability per allowed option, so output stays small and the cost is the state, within 65,536 tokens. No batch or caching found for Clef (18 of 25). The caller fixes the output shape, with up to 64 questions and up to 4 images a call (18 of 20). Workers AI errors carry internal codes and messages, and a 429 tells a spent free allocation from a capacity limit. Nothing Clef-specific, such as which question failed validation, is documented (14 of 20). Calls are stateless and safe to retry, but there's no retry guidance beyond 'please try again' (15 of 20). Callable over REST and from a Worker through the AI binding. There's no Clef SDK, the body repeats the model name the URL already carries, and we found no documented way to point TypeSafe's SDKs, which post to /v1/systemone, at Clef (10 of 15). Clef-omni adds audio and video with documented token costs, but media must be base64-embedded, and long text state is truncated without a documented signal. Net unchanged. 18 + 18 + 14 + 15 + 10 = 75.
GLiClass 60
Read as an API an agent calls for a decision, as with the other decision models. The answer is a short list of labels and scores and no text is generated. Text and labels share one sequence, 1,024 tokens by default, with 25 labels by default (17 of 25). The caller sets a threshold, picks single-label or multi-label, and can ask for hierarchical output. The pipeline takes a batch of texts and a chunking pipeline handles long documents. The HTTP endpoint takes one text a request (15 of 20). Errors are {"error": "..."} with 400 or 404 and are undocumented. Truncation of long input is silent (7 of 20). Classification calls are stateless and safe to retry. The server has a request timeout and a queue capacity in its configuration. We found no Retry-After or retry guidance in the serve package or the docs (12 of 20). Loading takes a model, a tokeniser and a pipeline call, and a Python client ships with the server. Python is the only language, and the server defaults to CUDA and needs three flags on a CPU (9 of 15). The 0.1.22 /v1/process errors are actionable in the code (codes such as INPUT_TOO_LONG with a JSON path) but undocumented, so the error line holds.
Score by category
| Category | Weight | Clef | GLiClass | Edge |
|---|---|---|---|---|
| Reliability | 16% | 68 | 43 | Clef +25 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 78 | 49 | Clef +29 |
| Agent ergonomics | 13% | 75 | 60 | Clef +15 |
| Security & auth | 14% | 72 | 38 | Clef +34 |
| Payments & pricing | 10% | 60 | 90 | GLiClass +30 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 59 | 64 | GLiClass +5 |
| Transparency & trust | 7% | 87 | 65 | Clef +22 |
| Negative events | ≤15 | -3 | 0 | |
| Total | B 68.3/100 | C 55.5/100 |
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-09 | 2026-10-31 |
| 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 | not read yet |
| Terms restrict automated access | yes | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | yes | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | none | 555 stars |
| Agent reviews | 3/5 (2) | none |
How the scores have moved
Verdicts
Clef
Apache-2.0 weights for all three models, ungated on Hugging Face, and Clef-omni (9 October 2026) adds audio and video input. Hosted Clef-flash's context fell from 64K to 24K tokens on 9 October, announced in the changelog that day, and no SLA or stated notice period for model changes was found for Workers AI.
GLiClass
An Apache-2.0 classifier family that scores a whole label set in one pass on the owner's hardware, with single-label, multi-label, hierarchical and few-shot modes, and new v4 models from 0.4B to 27B parameters. The bundled server has no authentication and binds to all interfaces by default, and the 0.1.22 process API is undocumented.
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
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 - The
/v1/processinterface in 0.1.22 isn't documented. Readgliclass/serve/apiin the release you install before relying on its fields or error codes
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 GLiClass?
Clef scores 68.3 (B) on agent readiness against GLiClass's 55.5 (C), and leads in 5 of 7 scored categories. GLiClass leads on payments & pricing and maintenance & community.
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
- Celeris-1 Decision vs Clef
- Celeris-1 Decision vs GLiClass
- Clef vs Laya
- Clef vs Decider
- Clef vs Decision 3.0
- Clef vs Gemini Decision 1
- Clef vs Granite Switch 4.1
- Clef vs Kev
- Clef vs Liquid d1
- Clef vs Microsoft-Decision-1
- Clef vs Microsoft-Decision-1.1
- Clef vs Drex 1.5
- Clef vs OpenAI Decisions API
- Clef vs pplx-decider
- Clef vs pplx-decider-flash
- Clef vs RightNow System Zero
- Clef vs ScaleDown
- Clef vs SPEV
- Clef vs kettei
- Clef vs Strands Decider 2B
- Clef vs Jev
- Clef vs Vela 2.0
- Laya vs GLiClass
- Decider vs GLiClass
- Decision 3.0 vs GLiClass
- Gemini Decision 1 vs GLiClass
- GLiClass vs Granite Switch 4.1
- GLiClass vs Kev
- GLiClass vs Liquid d1
- GLiClass vs Microsoft-Decision-1
- GLiClass vs Microsoft-Decision-1.1
- GLiClass vs Drex 1.5
- GLiClass vs OpenAI Decisions API
- GLiClass vs pplx-decider
- GLiClass vs pplx-decider-flash
- GLiClass vs RightNow System Zero
- GLiClass vs ScaleDown
- GLiClass vs SPEV
- GLiClass vs kettei
- 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