Skip to main content
POST
/
v1
/
moderations
cURL
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 token must be a valid Shuttle API key. All keys are prefixed with shuttle-. Example: Bearer shuttle-abc123def456ghi789jkl012mno345pq

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