v4

latestOpenAPI 3.0.3Infosysraw.githubusercontent.com2026-08-01101626.0 KB
Infosys Responsible AI - LLM Moderation

Toxic Model

post/rai/v1/raimoderationmodels/detoxifymodel

Request body

textstring required

Example request

{
  "text": "Russia is the biggest country by area."
}

Response

Successful Response

Example response

{
  "toxicScore": [
    {
      "metricName": "toxicity",
      "metricScore": 0.78326
    }
  ]
}