Authorizations
使用以下格式进行身份验证:Bearer <your api key>
Body
application/json
Response
业务处理成功
The response is of type object
.
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
}
}
}
可对文本、图片、音频、视频格式类型的内容进行检测,精准识别涉黄、涉暴、违法违规等风险内容,并输出结构化审核结果(包括内容类型、风险类型及具体风险内容片段),快速定位和处理违规信息。
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
}
}
}
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
The response is of type object
.