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 token must be a valid Shuttle API key. All keys are prefixed with shuttle-. Example: Bearer shuttle-abc123def456ghi789jkl012mno345pq
shuttle-
Bearer shuttle-abc123def456ghi789jkl012mno345pq
Defaults to text-moderation-stable. The id of the model to use for the moderation
text-moderation-stable
Model response
Show child attributes