Analyze toxicity
analyze_toxicityRead-only
Score English text for toxicity, severe toxicity, insults, profanity, threats and identity attacks (0-1 probabilities, same attributes as Google Perspective API). Use it to moderate user-generated content, filter LLM output, or triage comments. Pass up to 100 texts at once.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes | Texts to score (English). | |
| threshold | No | TOXICITY score at or above which a text is marked flagged. | |
| attributes | No | Attributes to return. Defaults to all. |