Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/jsonRequired
{
"model": "content-moderation-latest",
"input": "这是一条测试文本"
}
Request Code Samples
curl --location '/v1/moderations' \
--header 'X-Request-Id;' \
--header 'X-Tenant-Id;' \
--header 'X-Channel;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "content-moderation-latest",
"input": "这是一条测试文本"
}'
Responses
{
"id": "modr-abc123",
"model": "content-moderation-latest",
"results": [
{
"flagged": false,
"categories": {
"violence": false,
"hate": false,
"sexual": false
},
"category_scores": {
"violence": 0.001,
"hate": 0.0001,
"sexual": 0.0002
}
}
]
}
Modified at 2026-06-29 08:45:13