内容审核
Moderations 端点——输入文本审核,返回命中类别与置信度。
POST /v1/moderations 对输入文本做内容审核,返回是否命中及各违规类别的置信分。
curl https://api.ai-pixel.online/v1/moderations \
-H "Authorization: Bearer sk-你的令牌" \
-H "Content-Type: application/json" \
-d '{ "model": "omni-moderation-latest", "input": "待审核文本" }'返回结构
results[] 每项含:
flagged:是否判定违规categories:各违规类别的布尔命中(如harassment、violence等)category_scores:各类别 0–1 置信分
input 支持字符串或字符串数组批量审核。字段级 schema 见内容审核参考页。
平台自身的分组级内容风控(见创建分组的「内容风控」页签)是上游侧审核能力,这个端点是你自己的应用侧审核工具,两者不冲突。