NSFW Moderation
Check text, one image, or both for NSFW content and get a pass or block verdict at the adult, social or strict level, with NSFW level and minor-risk details. Flat price per request.
The NSFW Moderation API checks text, an image, or both in one request and returns a pass or block verdict for sexual content at the adult, social or strict level, together with the NSFW level, a minor-risk score and separate details for the text and the image.Muapi exposes it as a single endpoint with a flat price of $0.005 per request, the same asynchronous submit-and-poll contract as every other model, and a result you can act on with one field: suggestion.
The NSFW AI API is available now
Try NSFW Moderation in the playground, or call it from your own code with a Muapi API key. Pair it with image generation models to screen prompts before they run and outputs before they are shown.
Check text, one image, or both for NSFW content and get a pass or block verdict at the adult, social or strict level, with NSFW level and minor-risk details. Flat price per request.
The NSFW AI API is a moderation endpoint for sexual content. You send text, one image, or both, and it returns a verdict your code can act on: pass or block. Text up to 12,000 characters in any language is supported, and images can be JPG, PNG, WEBP or GIF up to 20 MB and 50 megapixels.
Muapi wraps it as a single nsfw-moderation endpoint. Send text, image_url or both, choose a scene (adult, social or strict), then poll the shared result endpoint. Because it is cheap and fast, it fits in front of every generation call: screen user prompts before they reach an image or video model, and check the output before you show it.
Check a prompt, an upload, or the two together in one request. Combined input is reviewed together and billed once.
adult allows adult content, social (default) blocks nudity and explicit content, strict also blocks suggestive content.
Detected sexual content involving minors is blocked whichever scene you choose, and a minor-risk score is returned.
Each result includes the NSFW level (none, low, medium, high), image type (realistic or drawn), and separate text and image details for logging.
$0.005 per request for text, image or both, in every scene. Failed checks are refunded.
Check user prompts before they reach an image or video generation model.
Review avatars, profile photos and community uploads before publishing.
Check generated images before showing them, and moderate video by sampling frames.
Run strict for workplace and family products and adult for platforms that allow it.
Screen text in any language for sexual content before it is posted.
| Feature | adult | social (default) | strict |
|---|---|---|---|
| Best for | Platforms that allow adult content | General communities and apps | Workplace and family-safe products |
| Explicit and nude content | Allowed | Blocked | Blocked |
| Suggestive content | Allowed | Usually allowed | Blocked |
| Sexual content involving minors | Blocked | Blocked | Blocked |
| Price per request | $0.005 | $0.005 | $0.005 |
Submit text, an image URL, or both with your Muapi API key, save the request ID, and poll the shared result endpoint for the verdict.
curl -X POST https://api.muapi.ai/api/v1/nsfw-moderation \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"A golden retriever catching a frisbee in a park","image_url":"https://example.com/user-upload.jpg","scene":"social"}'
# Response: {"request_id":"REQUEST_ID"}Call nsfw-moderation with text, image_url or both, and optionally a scene.
curl https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result \ -H "x-api-key: YOUR_API_KEY" # Poll until status is completed, then read the JSON verdict from outputs and act on "suggestion" (pass or block).
Poll until the task is completed, then read the verdict from outputs and act on suggestion.
It checks text and images for sexual content and returns a pass or block verdict. Other categories such as violence or weapons are listed for reference and do not change the verdict.
A flat $0.005 per request. Text only, image only, or both together each count as one request, and all three scenes cost the same. There is no subscription.
Act on suggestion only: pass to allow and block to reject. Levels, scores and reasons are for logging and display and may change as detection rules are updated.
Use adult if your platform allows adult content, social for general communities, and strict for workplace or family-safe tools. Sexual content involving minors is blocked in every scene.
Extract frames, for example one per second, submit each as an image and treat the video as blocked if any frame is blocked. Each frame is one request.
Text up to 12,000 characters in any language, and one image per request as a public JPG, PNG, WEBP or GIF up to 20 MB and 50 megapixels. For animated GIFs the first frame is reviewed.
The endpoint is asynchronous. You receive a request_id immediately, then poll the predictions result endpoint or provide a webhook URL to be notified when the verdict is ready.
Add pass or block NSFW checks to your product with one API and a flat per-request price.