cURL
simple_check
curl --request POST \ --url https://api.neosantara.xyz/v1/moderations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "input": "This is a test message for moderation.", "model": "text-moderation-latest"}'
200
clean_content
{ "id": "modr-abc123xyz456", "model": "text-moderation-latest", "results": [ { "flagged": false, "categories": { "hate": false, "self-harm": false, "sexual": false, "violence": false }, "category_scores": { "hate": 0.001, "self-harm": 0.0005, "sexual": 0.0003, "violence": 0.0002 } } ]}
Check content for policy violations and harmful content.
Your NeosantaraAI API Key.
Moderation results
The response is of type object.
object