Edge content moderation

Use case Β· Security

← All use cases
⊘

Edge content moderation

Security

Real-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 needsWeightGPT-OSS 20BCatalog rank
instruction0.9078#23 of 40
speed0.9096#1 of 40
knowledge0.3070#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)
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
Sign in to continue

LLM Switchboard is private β€” sign in with Authlee to access the control room.

Sign in with Authlee
← Back to home