A NSFW classifier model (T264049) takes an image as input and classifies it as SFW or NSFW.
Model can be served using something like Tensorflow Serving (if built with tensorflow).
This tasks requires building a RESTful API for the machine learning model. The API can be built using frameworks like Flask / Django / FastAPI etc.
The API will contain a simple endpoint that recieves an image, passes it through the model and returns the NSFW classification result as well as the confidence.