Skip to main content
POST
/
v1
/
moderations
Create Moderation
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.

Authorizations

Authorization
string
header
required

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

Body

application/json
input
required
model
string
Example:

"text-moderation-latest"

Response

200 - application/json

See endpoint details.

id
string
model
string
results
object[]