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.

No account needed for 5 requests a day.

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
Start free

How billing works