Would be great to have something like this for filtering adult content from uploads.
E.g. Microsoft has a Vision API. Per https://azure.microsoft.com/en-us/pricing/details/cognitive-..., it's $1 per 1000 requests (with the first 5000 being free). They also have PhotoDNA, which is free but does a subset of SFW.
PixLab is another option (https://pixlab.io/cmdls).
Google has an API too (Cloud Vision).
If you go down this path, you'll have to do your own research on which service works best and what you can afford.