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": {} } }
Returns a moderation object with the analysis result.
moderation
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Model response
The response is of type object.
object