跳转到主要内容
POST
/
v1
/
moderations
内容审核
curl --request POST \
  --url https://api.ldx.dev/v1/moderations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "<string>",
  "model": "text-moderation-latest"
}
'
{
  "id": "<string>",
  "model": "<string>",
  "results": [
    {
      "flagged": true,
      "categories": {},
      "category_scores": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.liandanxia.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
input
必填
model
string
示例:

"text-moderation-latest"

响应

200 - application/json

成功审核

id
string
model
string
results
object[]