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://images.unsplash.com/photo-1633998979521-11ca9d0e6e38?q=80&w=2787&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" })
{ "success": true, "nsfw": false, "nudity": false, "gore": false, "nsfw_score": 0.8023452367447058, "nudity_score": 0.08966292440891266, "gore_score": 0.0016616199864074588, "_usage": { "input_tokens": 45, "output_tokens": 60, "inference_time_tokens": 609, "total_tokens": 714 } }
file_store_key
url
Show _usage
Was this page helpful?