cURL
curl --request POST \ --url https://modbase.dev/api/v1/moderation/text \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "message": "This is an example message" } '
{ "profanity": true, "probability": 0.93, "detected": "example-word" }
Analyzes a text message for profanity using semantic and word-level vector matching. Cached results do not count toward daily usage limits.
Text to analyze. Maximum 35 words or 1000 characters.
"This is an example message"
Moderation result
true
0.93
Detected profane word or phrase
"example-word"
Was this page helpful?