🔥 Black Friday AI API deals are live· New drops every MondayEnds in--d --:--:--See deals →
New1 endpoint

NSFW AI API — NSFW Detection and Content Moderation for Text and Images

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.

i

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.

NSFW Moderation

Pass or block verdicts for text and images1 endpoints
ModerationNew
Moderation

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.

Text + Image inFast
$0.005/request
Try Model

What is the NSFW AI API?

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.

NSFW AI API capabilities

Text, image, or both

Check a prompt, an upload, or the two together in one request. Combined input is reviewed together and billed once.

Three policy scenes

adult allows adult content, social (default) blocks nudity and explicit content, strict also blocks suggestive content.

Minor protection in every scene

Detected sexual content involving minors is blocked whichever scene you choose, and a minor-risk score is returned.

Detailed result

Each result includes the NSFW level (none, low, medium, high), image type (realistic or drawn), and separate text and image details for logging.

Flat per-request price

$0.005 per request for text, image or both, in every scene. Failed checks are refunded.

NSFW AI API use cases

Prompt screening

Check user prompts before they reach an image or video generation model.

Upload moderation

Review avatars, profile photos and community uploads before publishing.

Generated output safety

Check generated images before showing them, and moderate video by sampling frames.

Per-audience policies

Run strict for workplace and family products and adult for platforms that allow it.

Chat and comment filtering

Screen text in any language for sexual content before it is posted.

NSFW Moderation scenes compared

Featureadultsocial (default)strict
Best forPlatforms that allow adult contentGeneral communities and appsWorkplace and family-safe products
Explicit and nude contentAllowedBlockedBlocked
Suggestive contentAllowedUsually allowedBlocked
Sexual content involving minorsBlockedBlockedBlocked
Price per request$0.005$0.005$0.005

Quick start — NSFW AI API

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.

1. Submit a check

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.

2. Poll the result

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.

NSFW AI API FAQ

What does the NSFW AI API check?

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.

How much does the NSFW AI API cost on Muapi?

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.

Which field should my code act on?

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.

How do I choose between adult, social and strict?

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.

How do I moderate a video?

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.

What are the input limits?

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.

How do I get the response?

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.

Ready to moderate with the NSFW AI API?

Add pass or block NSFW checks to your product with one API and a flat per-request price.