NSFW Text Detection

Learn about the NSFW Text Detection API.

Detect from Text

GETPOST /v1/detect

Detects NSFW content from text

Body/URL Parameters

Name
Type
Description
Required

q

string

Query to check

model

string

Specific model id to use

Response

{
  "query": "I'm writing",
  "result": {
    "nsfw": false,
    "prediction": "SAFE",
    "SAFE": 96.19,
    "NSFW": 3.81
  },
  "model": "nsey",
  "model_details": {
    "description": "NSey: A DistilBERT-based NSFW text detector trained on a custom dataset to classify text as SAFE or NSFW.",
    "max_input_chars": 1024,
    "output_format": {
      "prediction": "SAFE/NSFW",
      "SAFE": "float",
      "NSFW": "float"
    }
  }
}

Last updated