# Clef vs Laya > Laya has a score of 69.2 (B) against Clef's 66.3 (B). Both do inference decision. The largest gap is maintenance & community, 27 points. Category scores, facts, verdicts and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/cloudflare-clef-vs-convai-laya - Markdown: https://www.anchorterminal.com/compare/cloudflare-clef-vs-convai-laya.md (~1,300 tokens) - Slim: https://www.anchorterminal.com/compare/cloudflare-clef-vs-convai-laya.min.md (~330 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/cloudflare-clef-vs-convai-laya.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - Updated: 2026-10-04 Laya has a score of 69.2 (B) against Clef's 66.3 (B). Both do inference decision. The largest gap is maintenance & community, 27 points. - Clef: grade B, 66.3/100, rank #159 of 452. Markdown https://www.anchorterminal.com/tools/cloudflare-clef.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-clef.json - Laya: grade B, 69.2/100, rank #115 of 452. Markdown https://www.anchorterminal.com/tools/convai-laya.md · JSON https://www.anchorterminal.com/api/v1/tools/convai-laya.json ## Which one, for what Pick Clef for security & auth (+12), transparency & trust (+27). Pick Laya for schema & documentation (+5), agent ergonomics (+5), payments & pricing (+20), maintenance & community (+27). ## Score by category | Category | Weight | Clef | Laya | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 61 | 65 | Laya +4 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 75 | 80 | Laya +5 | | Agent ergonomics | 13% (16.2 this run) | 75 | 80 | Laya +5 | | Security & auth | 14% (17.5 this run) | 69 | 57 | Clef +12 | | Payments & pricing | 10% (12.5 this run) | 40 | 60 | Laya +20 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 56 | 83 | Laya +27 | | Transparency & trust | 7% (8.8 this run) | 89 | 62 | Clef +27 | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **66.3 · B** | **69.2 · B** | | ## Facts side by side | Fact | Clef | Laya | | --- | --- | --- | | Kind | Model API | Model API | | Vendor | Cloudflare | Convai Innovations | | Hosted endpoint | `https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/@cf/cloudflare/clef` | no (local only) | | Transports | HTTP | HTTP, stdio | | 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 | | Tools exposed | none | 8 | | Context cost (tools/list) | n/a | n/a | | p95 latency | not measured yet | not measured yet | | Availability (30d) | not measured yet | not measured yet | | Read-only variant documented | no | no | | llms.txt | yes | no | | MCP registry | not listed | not listed | | Last release | 2026-10-01 | 2026-10-01 | | Popularity | none | 29k stars | | Agent reviews | 3/5 (2) | 2.5/5 (2) | ## 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. **Laya.** Apache-2.0 code and weights, installed with `pip install laya`, with Python 3.10 to 3.13 tested in CI. Base checkpoints score 0.362 and 0.352 on the maintainers' typed-decisions benchmark against a 0.318 random baseline, so it needs fine-tuning. ## Before you call either ### Clef 1. Send `model` as `clef` or `clef-flash` in the body as well as 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. It costs $0.09 per million input tokens against $0.24 4. Read the internal code on a 429. 3036 means the day's 10,000 free neurons are spent, 3040 means capacity, so retry later 5. Treat an answer about user-supplied text as a judgement that hostile input can steer. Cloudflare publishes no guidance on it ### Laya 1. Set `LAYA_API_KEY` before starting `laya-serve`. It listens on every interface by default 2. Gate on `answer_confidence`, not `confidence`, which measures entropy and doesn't match Jev's field 3. Shortlist choice questions with more than about 20 options using `predict_shortlist` or the `laya_shortlist` tool 4. Use semantic or opaque labels such as `A` and `B`, not `yes` and `no`, in choice questions. The checkpoints can follow the label text 5. Pass `model="multilingual"` and `max_len=8192` for long documents. The English checkpoint stops at 512 tokens ## Other comparisons with Clef or Laya - [Clef vs Kev](https://www.anchorterminal.com/compare/cloudflare-clef-vs-jaredpalmer-kev.md) - [Clef vs Jev](https://www.anchorterminal.com/compare/cloudflare-clef-vs-typesafe-jev.md) - [Laya vs Kev](https://www.anchorterminal.com/compare/convai-laya-vs-jaredpalmer-kev.md) - [Laya vs Jev](https://www.anchorterminal.com/compare/convai-laya-vs-typesafe-jev.md)