Rest API Written In Python To Classify NSFW Images.
If you don't want to selfhost it, there's already an instance of this running here
$ git clone https://github.com/thehamkercat/NSFW_Detection_API
$ cd NSFW_Detection_API
$ pip3 install -U -r requirements.txt
$ python3 -m api
- Hentai - Hentai and pornographic drawings
- Porn - Pornographic images, sexual acts
- Drawings - Safe for work drawings (including anime)
- Neutral - Safe for work neutral images
- Sexy - Sexually explicit images, not pornography
Thanks to https://github.com/GantMan/nsfw_model/ for their model.