NSFW Content Detection ML Frameworks

Tools and models for detecting, classifying, and filtering sexually explicit or adult content in images and text. Includes pre-trained models, APIs, and libraries across multiple frameworks and languages. Does NOT include general content moderation for other violation types (violence, hate speech) or datasets without detection functionality.

There are 33 nsfw content detection frameworks tracked. 3 score above 50 (established tier). The highest-rated is infinitered/nsfwjs at 66/100 with 8,818 stars. 1 of the top 10 are actively maintained.

Get all 33 projects as JSON

curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=ml-frameworks&subcategory=nsfw-content-detection&limit=20"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.

# Framework Score Tier
1 infinitered/nsfwjs

NSFW detection on the client-side via TensorFlow.js

66
Established
2 alex000kim/nsfw_data_scraper

Collection of scripts to aggregate image data for the purposes of training...

51
Established
3 mdietrichstein/tensorflow-open_nsfw

Tensorflow Implementation of Yahoo's Open NSFW Model

51
Established
4 GantMan/nsfw_model

Keras model of NSFW detector

48
Emerging
5 infinitered/nsfwjs-mobile

NSFWjs in React Native

46
Emerging
6 TheHamkerCat/NSFW_Detection_API

Rest API Written In Python To Classify NSFW Images.

45
Emerging
7 lovoo/NSFWDetector

A NSFW (aka porn) detector with CoreML

44
Emerging
8 rlleshi/phar

deep learning sex position classifier

43
Emerging
9 ebroky/nsfw

🔍 Detect NSFW content with this lightweight HTTP API. Ideal for CPU...

42
Emerging
10 steelcityamir/safe-content-ai

A fast accurate API for detecting NSFW images.

40
Emerging
11 NsfwSpy/NsfwSpy.NET

A .NET image and video classifier used to identify explicit/pornographic...

40
Emerging
12 guptashrey/Content-Moderation-for-Social-Media

Classifier for social media images with 3 categories namely neutral, nsfw...

38
Emerging
13 NsfwSpy/NsfwSpy.js

A JavaScript image classifier used to identify explicit/pornographic content...

36
Emerging
14 M1chlCZ/nsfw_sherlock

Simple drop in API to determine if image is NSFW using TensorFlow

36
Emerging
15 AdityaTheDev/NudityDetection-Using-Deeplearning

Nudity/pornography detection using deeplearning. This model is trained using...

34
Emerging
16 ZygoteCode/NsfwSharp

So far, the best C#.NET 9.0 open-source library that uses YOLOv11 with...

34
Emerging
17 mileszim/nsfw-rb

Port of nsfwjs - Use a pre-trained model and the ONNX Runtime to verify the...

34
Emerging
18 ccuetoh/nsfw

Nudity detection and clasification for Go

34
Emerging
19 doppeltilde/sensitive_content_analysis

Dart package for detecting and alerting users to nudity in images and videos...

32
Emerging
20 qeeqbox/image-analyzer

Interface for Image-Related Deep Learning Models (E.g. NSFW, MAYBE and SFW)

31
Emerging
21 lakshaychhabra/NSFW-Detection-DL

This repo contains Deep learning Implementation for identifying NSFW images.

31
Emerging
22 atrifat/nsfw-detector-api

A Simple PoC (Proof of Concept) of NSFW Detector API Server. A core...

29
Experimental
23 SumitM0432/Explicit-Content-Classifier-using-ResNet

The objective of this project is to classify explicit content that contains...

29
Experimental
24 darkwaves-ofc/nude-detect

NudeDetect is a Python-based tool for detecting nudity and adult content in...

28
Experimental
25 api4ai/nsfw-examples

API4AI is cloud-native computer vision & AI platform for startups,...

27
Experimental
26 ArshCypherZ/NSFWDetection

Anti-NSFW Project in python using pre-trained model.

26
Experimental
27 OurBigAdventure/Swift_NSFW_Detector

An NSFW image detector for Swift built as an extension on UIImage.

23
Experimental
28 thefcraft/nsfw-prompt-detection-sd

NSFW Prompt Detection for Stable Diffusion

21
Experimental
29 chijete/crafynsfwjs

NSFW.js implementation for image, gif and video. NSFW detection on the...

20
Experimental
30 jamesponddotco/bonk

[READ-ONLY] CLI tool that uses machine learning to detect nudity in images.

19
Experimental
31 Sylver-Icy/nsfw-classifier

Modular NSFW Text Classification Pipeline A fully modular text...

17
Experimental
32 shane-chris-barker/rust-nsfw-image-checker

A Rust-powered microservice that uses an ONNX model and the nsfw crate to...

14
Experimental
33 TechyCSR/NSFW-API-KEY

API KEY FOR DEVELOPERS - Three Layer Model Solution with Modern dashboard managment.

10
Experimental