cURL
curl --request POST \ --url https://open.bigmodel.cn/api/paas/v4/moderations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "moderation", "input": "审核内容安全样例字符串。" }'
{ "id": "<string>", "created": 123, "request_id": "<string>", "result_list": [ { "content_type": "<string>", "risk_level": "<string>", "risk_type": [ "<string>" ] } ], "usage": { "moderation_text": { "call_count": 123 } } }
可对文本、图片、音频、视频格式类型的内容进行检测,精准识别涉黄、涉暴、违法违规等风险内容,并输出结构化审核结果(包括内容类型、风险类型及具体风险内容片段),快速定位和处理违规信息。文本:1.2 元/万次,图像:4 元/ 万次,音频:0.18 元/小时,视频:0.72 元/小时。
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
The response is of type object.
object
Was this page helpful?