Categories

NSFW Image Content Detector

AI-powered image content safety detector using NSFWJS to classify potentially inappropriate content with fallback analysis, supporting GIF/Animated WebP/APNG and JPEG/PNG/WEBP.

Click to upload file or drag and drop file here

Maximum file size: 20MB Supported formats: image/jpeg, image/jpg, image/png, image/webp, image/gif

GIF files will analyze the first frame only. Supports transparency.

0.1 0.5 0.9

Lower values are more strict, higher values are more permissive

Key Facts

Category
AI Tools
Input Types
file, range, select
Output Type
json
Sample Coverage
4
API Ready
Yes

Overview

The NSFW Image Content Detector is an AI-powered utility designed to automatically classify and moderate images for potentially inappropriate content. Utilizing the robust NSFWJS model, this tool provides reliable safety analysis for various file formats, including JPEG, PNG, WebP, and GIF, helping you maintain a safe digital environment.

When to Use

  • Automating content moderation for user-uploaded images on your platform.
  • Filtering out adult or inappropriate content from large image datasets.
  • Ensuring compliance with community safety guidelines by pre-screening visual media.

How It Works

  • Upload your image file (JPG, PNG, WebP, or GIF) to the detector.
  • Select your preferred analysis mode, such as the high-accuracy NSFWJS model or faster feature analysis.
  • Adjust the sensitivity threshold to fine-tune the strictness of the classification results.
  • Receive a JSON response detailing the content classification and safety probability scores.

Use Cases

Community Forum Moderation: Automatically flag inappropriate profile pictures or post attachments.
E-commerce Safety: Ensure user-submitted product reviews do not contain prohibited visual content.
Dataset Cleaning: Rapidly sort and filter large collections of images for training or archival purposes.

Examples

1. Automated Forum Moderation

Community Manager
Background
A community forum receives hundreds of user-uploaded profile pictures daily, making manual review impossible.
Problem
Need to instantly flag or block inappropriate images before they are visible to other users.
How to Use
Upload the user image and set the analysis mode to 'NSFWJS Model' with a sensitivity of 0.5.
Example Config
sensitivity: 0.5, analysisMode: 'model'
Outcome
The tool returns a classification score, allowing the system to automatically approve or quarantine the image based on the result.

2. Dataset Content Filtering

Data Scientist
Background
A researcher is compiling a large dataset of public images for a machine learning project.
Problem
The dataset must be free of adult content to comply with ethical and safety standards.
How to Use
Run the images through the tool using 'Feature Analysis' for high-speed processing.
Example Config
sensitivity: 0.3, analysisMode: 'features'
Outcome
The tool quickly identifies and filters out images exceeding the safety threshold, ensuring a clean dataset.

Try with Samples

image, png, jpg

Related Hubs

FAQ

What image formats are supported?

The tool supports JPEG, PNG, WebP, and GIF formats. For animated GIFs, the tool analyzes the first frame.

How does the sensitivity setting work?

Lower sensitivity values make the detector more strict, while higher values make it more permissive regarding the classification threshold.

Can I process multiple images at once?

This tool is designed for individual image analysis; please process files one at a time.

What is the difference between 'Feature Analysis' and 'NSFWJS Model'?

Feature Analysis is optimized for speed, while the NSFWJS Model provides higher accuracy for complex content classification.

Is my data stored after analysis?

No, images are processed for classification purposes and are not stored or retained by the system.

API Documentation

Request Endpoint

POST /en/api/tools/nsfw-image-detector

Request Parameters

Parameter Name Type Required Description
imageFile file (Upload required) Yes GIF files will analyze the first frame only. Supports transparency.
sensitivity range No Lower values are more strict, higher values are more permissive
analysisMode select No -

File type parameters need to be uploaded first via POST /upload/nsfw-image-detector to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-nsfw-image-detector": {
      "name": "nsfw-image-detector",
      "description": "AI-powered image content safety detector using NSFWJS to classify potentially inappropriate content with fallback analysis, supporting GIF/Animated WebP/APNG and JPEG/PNG/WEBP.",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=nsfw-image-detector",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]