Toxicity scoring for text, as an API.
Send any text and get back how likely it is to be toxic, insulting, threatening or obscene. One endpoint, plain JSON, and 1,000 analyses a month free.
Each score is the model's estimate, from 0 to 1, that the text has that quality.
What you get back
Six scores per text
Each from 0 to 1. You choose the thresholds that suit your community.
- Toxicity
- Severe toxicity
- Obscene
- Threat
- Insult
- Identity attack
One request
No SDK to install. If your stack can make an HTTP request, it works.
curl https://api.staging.detoxify.sh/v1/analyze \
-H "Authorization: Bearer $YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "You are a wonderful person."}'Built on an open model
Scores come from the open-source Detoxify models by Unitary, so you can read how they were trained and what their limits are. We run them for you.
A score is a statistical estimate, not a verdict. Use it to prioritise human review, not to replace it.
Pricing
Free
$0 / month
- 1,000 analyses a month
- Stops at the allowance
- No payment method needed
Pro
$9 / month
or $90 a year, $18 less
- 50,000 analyses included each month
- No limit: usage beyond them is billed as it adds up, cheaper at volume
- Cancel any time