Classify unsafe text and images
Moderations
Classify unsafe text and image inputs with the OpenAI-compatible /v1/moderations API.
POST /v1/moderations
I want to harm someone.
- 1flagged
violence
- 20.34
harassment
- 30.03
self-harm
01
Text & images
Multimodal safety checks.
02
Category scores
Know why it was flagged.
03
OpenAI format
Existing code just works.
04
Pre-check
Filter before the big model.
Built for
UGC platforms
Screen posts and uploads
Chat safety
Check prompts before answering
Policy audits
Score historical content
Check an input
terminal
1curl https://api.llmgateway.io/v1/moderations \2 -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "input": "I want to harm someone."6 }'