Nudity detection, wired into your stack.
Each guide takes one framework from an empty file to a working check: upload or URL in, level and policy verdict out, with the error handling you need in production. The code uses the official SDKs where they exist and plain HTTPS where they do not.
Moderate image uploads in Next.js before they are stored
Check uploaded images for nudity in a Next.js server action with the SFW API: a level from 0 to 3, a policy verdict and error handling production needs.
Image moderation in Python with FastAPI
Add nudity detection to a FastAPI upload endpoint with the sfwapi package: async client, block_level policy, review flags and errors mapped to HTTP.
Add an NSFW filter to a Discord bot (discord.js)
Check every image and GIF attachment in a discord.js v14 bot with one API call: the policy engine SfwBot uses, deletion and a notice, no media stored.
Filter AI-generated images before showing them
Score Stable Diffusion, Flux or hosted image API output before it reaches the user: an art-aware nudity policy, regeneration on block, cost per image.