cURL
curl --request POST \ --url https://api.traceloop.com/v2/evaluators/execute/toxicity-detector \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "input": { "text": "Thank you for your help with this project." }, "config": { "threshold": 0.5 } } '
{ "is_safe": "safe" }
Detect toxic or harmful language
Request Body:
input.text
config.threshold
Type "Bearer" followed by a space and JWT token.
Request body
Show child attributes
OK
"safe"
Was this page helpful?