Skip to main content
POST
/
v1
/
moderations
内容审核
curl --request POST \
  --url https://api.qclawrouter.com/v1/moderations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "<string>",
  "model": "text-moderation-latest"
}
'
{
  "id": "<string>",
  "results": [
    {
      "flagged": true,
      "categories": {},
      "category_scores": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

使用您的 API Key 作为 Bearer Token。在控制台创建令牌获取。

Body

application/json
input
required

待审核文本

model
string
Example:

"text-moderation-latest"

Response

200 - application/json

审核结果

id
string
results
object[]