/v1/moderations
POST https://ai-api.mandao.com/v1/moderations
内容审核接口,OpenAI Moderations API 兼容格式。
请求参数
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
| model | string | 是 | 模型 ID |
| input | string 或 array | 是 | 待审核的文本 |
返回响应
{
"id": "modr-xxx",
"model": "text-moderation-latest",
"results": [
{
"flagged": false,
"categories": {
"hate": false,
"violence": false
},
"category_scores": {
"hate": 0.01,
"violence": 0.02
}
}
]
}
注意事项
- 当前
images/variations、files/*、fine-tunes/*等接口暂未实现,调用会返回 501 Not Implemented。