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 }}'
Copy
Ask AI
{ "is_safe": "safe"}
Evaluators
Execute toxicity-detector evaluator
Detect toxic or harmful language
Request Body:
input.text (string, required): The text to scan for toxic content
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 }}'