curl --location 'https://moyunapi.com/v1/moderations' \
--header 'Accept;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input": "我希望伤害自己。",
"model": "omni-moderation-latest"
}'{
"id": "modr-abc123",
"model": "omni-moderation-latest",
"results": [
{
"flagged": true,
"categories": {
"hate": false,
"hate/threatening": false,
"harassment": false,
"harassment/threatening": false,
"self-harm": false,
"self-harm/intent": true,
"self-harm/instructions": false,
"sexual": false,
"sexual/minors": false,
"violence": false,
"violence/graphic": false
},
"category_scores": {
"hate": 0.0001,
"hate/threatening": 0.00003,
"harassment": 0.0008,
"harassment/threatening": 0.00005,
"self-harm": 0.012,
"self-harm/intent": 0.9234,
"self-harm/instructions": 0.0002,
"sexual": 0.0001,
"sexual/minors": 0.00001,
"violence": 0.0004,
"violence/graphic": 0.00002
}
}
]
}