Skip to content
Stable Diffusion API

NSFW Image Check API

Check whether an image contains NSFW content via the API. Returns probability score.

NSFW Image Check

Run a safety classifier on an image and get a NSFW probability score.

curl -X POST 'https://stablediffusionapi.com/api/v3/nsfw_image_check' \
  -H 'Content-Type: application/json' \
  -d '{"key": "YOUR_API_KEY", "image": "https://example.com/photo.jpg"}'

Response:

{ "nsfw_probability": 0.04, "is_nsfw": false }