POST
/
moderations
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"
}'
{
"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
}
}
]
}

Authorizations

Authorization
string
header
required

Your NeosantaraAI API Key.

Body

application/json

Response

200
application/json

Moderation results

The response is of type object.