POST
/
paas
/
v4
/
moderations
内容安全
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
    }
  }
}

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer <your api key>

Body

application/json

Response

200
application/json

业务处理成功

The response is of type object.