No experience with any of this, but a quick search turns up stuff like https://deepai.org/machine-learning-model/nsfw-detector, which looks affordable and straightforward to implement.
And here's bunch more: https://rapidapi.com/collection/nudity-detection-image-moder...