Quickly detect nudity, violence, hentai, porn and more NSFW content in images.
import { JigsawStack } from "jigsawstack"; const jigsaw = JigsawStack({ apiKey: "your-api-key" }); const response = await jigsaw.validate.nsfw({ "url": "https://jigsawstack.com/preview/nsfw-example.jpg" })
{ "success": true, "nsfw": false, "nudity": false, "gore": false, "nsfw_score": 0.8223792436143141, "nudity_score": 0.08542560786008835, "gore_score": 0.0015945120248943567, "_usage": { "input_tokens": 15, "output_tokens": 60, "inference_time_tokens": 275, "total_tokens": 350 } }
Show _usage
Was this page helpful?