β
Edge content moderation
SecurityReal-time moderation + PII redaction on user content β flag toxicity, self-harm, sexual content, violence and PII, fast enough to run inline on every message.
The routing recipe
Job typeClassification / routingPolicyFastest that passesConstraintscloudflare/groq
routes to
GPT-OSS 20B groq
groq:openai/gpt-oss-20b
92.7
match score
84.6
task fit
100
cost
96.4
speed
Why this model from benchmarks & capabilities
- "Classification / routing" leans hardest on instruction; GPT-OSS 20B scores 78/100 there β #23 of 40.
- Strength on this class of work shows up on IFEval, MMLU (zero-shot), where OpenAI (open-weight) models are competitive.
- Cost: free tier. Speed: ~1000 tok/s on Groq LPU.
- Chosen over Llama 3.1 8B Instant for higher task-fit (84.6 vs 75.6) & cheaper.
| Capability the job needs | Weight | GPT-OSS 20B | Catalog rank |
|---|---|---|---|
| instruction | 0.90 | #23 of 40 | |
| speed | 0.90 | #1 of 40 | |
| knowledge | 0.30 | #26 of 40 |
Relevant benchmarksIFEval MMLU (zero-shot)
EconomicsCost: free tier.
Speed: ~1000 tok/s on Groq LPU. vs runner-upChosen over Llama 3.1 8B Instant for higher task-fit (84.6 vs 75.6) & cheaper. (Llama 3.1 8B Instant, score 86.3)
Speed: ~1000 tok/s on Groq LPU. vs runner-upChosen over Llama 3.1 8B Instant for higher task-fit (84.6 vs 75.6) & cheaper. (Llama 3.1 8B Instant, score 86.3)
Example result
Sample input βΎ
Hey call me at 415-555-0199 or email [email protected] β and tell that idiot in billing he is useless.
allow: false
categories: [harassment, pii]
severity: low
pii_found: [phone "415-555-0199", email "[email protected]"]
redacted: "Hey call me at [REDACTED] or email [REDACTED] β and tell that idiot in billing he is useless."
note: mild harassment ("idiot/useless") + contact PII; redact and allow with a soft warning, or route to human review per policy.
Test it on your own data