POST
/
v1
/
moderations
curl --request POST \
  --url https://api.shuttleai.com/v1/moderations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": "<string>",
  "model": "<string>"
}'
{
  "id": "<string>",
  "model": "<string>",
  "result": {
    "flagged": true,
    "categories": {},
    "category_scores": {}
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
input
string
required
model
string

Defaults to text-moderation-stable. The id of the model to use for the moderation

Response

200 - application/json
Model response
id
string
model
string
result
object