Moderation API
Check if text contains harmful content with multi-category compliance detection.
Endpoint
http
POST https://api.tk-novalink.com/v1/moderationsRequest Example
bash
curl -X POST "https://api.tk-novalink.com/v1/moderations" \
-H "Authorization: Bearer sk-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "text-moderation-latest",
"input": "I want to kill them."
}'Detection Categories
The Moderation API can detect the following categories:
| Category | Description |
|---|---|
| hate | Hateful content |
| hate/threatening | Hateful content with threats |
| harassment | Harassment |
| self-harm | Self-harm |
| sexual | Sexual content |
| violence | Violence |