NSFW moderation for AI generators.
Screen prompts before generation. Check text, images and video before they reach your users.
API playground
POST /api/v1/moderateAPI reference
https://isthisnsfw.net/api/v1/moderateCheck text for NSFW content.
1 credit / requestBody parameters
application/jsoninput.typestring- "text"
input.textstring- The text to check. 1–12,000 characters.
curl https://isthisnsfw.net/api/v1/moderate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "text",
"text": "A walk in the mountains."
}
}'Authentication
Create an API key in your account and keep it on your server.
Authorization: Bearer YOUR_API_KEYErrors and retries
400- Invalid JSON or request fields.
401- Missing or invalid API key.
402- Insufficient credits. Add credits to continue.
413 / 415 / 422- Media too large, unsupported format or unreadable video.
429- Too many requests. Follow the Retry-After header.
502 / 503 / 504- Processing failed or unavailable. Reserved credits are refunded.
{"code":-1,"message":"Not enough credits. Add credits and try again."}API pricing
Buy credits once and use them in the playground or API. Credits never expire. Failed checks return credits to your balance.
Image and text requests use 1 credit. Video requests use 3.
Moderation guide
Reduce payment risk from NSFW AI output

If your AI website can generate prohibited adult content, the risk goes beyond a single bad result. A payment account review can interrupt checkout and payouts while hosting, model and support bills keep coming. Put content checks in the path from a user’s prompt to the result they receive.
Stripe prohibits sexually explicit material designed for sexual gratification, including AI-generated content that meets that definition. Creem warns that merchants who skip required moderation can face account suspension or frozen funds. Screen for your own policy and follow the separate requirements of the provider you use.
Stripe’s restricted businessesCreem’s moderation requirements
Block prohibited prompts before you pay to generate
Check user prompts and reference images in your backend before queuing a paid generation job. If the scores indicate a policy violation, stop the job before calling the model. You avoid paying for an image or video you would have to withhold, and the user can revise their request immediately.
For example, at $0.10 per generation, blocking 1,000 requests before inference avoids $100 in generation charges. Those 1,000 text checks use 1,000 credits, worth $1.67 at the base rate. This example covers those checks only; actual savings depend on your reject rate, total checks and model pricing.
If you use Creem for an AI image or video product, keep its required prompt check. Use Is This NSFW for additional screening, such as reference images, and to review the completed output.
Check generated text, images and video before delivery
A prompt can pass your rules and still produce an output that breaks them. Ask “is this NSFW?” again after generation, before returning the result, enabling a download or publishing it to a gallery. Keep the item private until your application has evaluated the scores. If the check fails, hold the item and retry or route it for review.
Use the same endpoint for text, images and videos. Send one item per request, keep the result against your own content ID, and apply an allow, review or block decision. Evaluate photographs, anime and generated illustrations on the styles and crops your product actually delivers.
Turn NSFW scores into moderation rules
The API returns separate Sexual, Nudity, Violence and Gore scores. Use them to distinguish a suggestive image from explicit sexual content or graphic injury. “Is this image NSFW?” depends on your audience: a clinical photograph and an explicit photograph may require different actions even when both contain nudity.
Test the four scores against examples your team would allow, block or send for review. Use those examples to define a policy for each category and route ambiguous cases for review.
File handling and data retention
Submitted content is sent to the service for detection. We delete temporary file copies when processing completes or fails. We do not maintain a submitted-file library, publish customer files, manually view them as part of detection or train our own models on submissions.
We keep scores, request identifiers, processing status and credit records for usage history, retries and billing. The original file and text are not stored in those records. Service providers process content under their own applicable terms.
Read the Privacy PolicyWhat does NSFW mean for your platform?
NSFW means “not safe for work.” In a content policy, it commonly describes sexual, nude or graphic material that should not appear unexpectedly. Whether an item is prohibited depends on the rules that apply to your product and payment provider.
Write down what your platform allows, what requires review and what must be blocked. Use the NSFW scanner consistently at the point where content enters your app or becomes available to users.
One content moderation API
Check images, video and text through one content moderation API. Keep the same response structure and four risk categories across your product, from prompt checks before generation to output checks before publication.
Start with the NSFW detection API reference. The image moderation API accepts a public HTTPS URL or base64 data. The text moderation API accepts a text string, and the video moderation API accepts a direct public HTTPS video URL.
Keep the API call in your backend. Connect it to your upload queue or generation jobs and apply the result before an item becomes public. Start with a review stage, measure errors on your own content and automate the decisions your evaluation supports.
Evaluate before you automate
Medical images, artwork and swimwear catalogs can produce false positives. Cropping, collages and low resolution can hide problematic content. Brief scenes may be missed in video, and audio is not checked. Text checks can misunderstand slang and irony.
Test the API on your own inputs and outputs before automating policy decisions. Keep a review path for ambiguous cases. A score cannot establish consent, age or intent, and moderation does not guarantee payment account approval.
Frequently asked questions
Can I use this API before and after AI generation?
Yes. Check a prompt or reference image before starting a paid generation job. Then check the generated text, image or video before delivering it. Use one request per item and keep the output private while the check is pending.
Does Is This NSFW replace Stripe or Creem requirements?
No. Use it to help enforce your content policy. Stripe restricts certain adult content, including qualifying AI-generated material. For AI image and video products on Creem, use Creem’s required prompt moderation endpoint and keep this API for additional checks. No moderation result guarantees payment approval.
Can I test Is This NSFW before integrating?
New accounts receive 5 free credits once, with no monthly reset. Use them in the API playground or from your server. The playground accepts a local video upload or a video URL; API video calls use a URL. Images and text use 1 credit; videos use 3. Test examples from your own workload before buying more credits.
What does the API return?
Every check returns Sexual, Nudity, Violence and Gore scores and the credits used. Each score ranges from 0 to 1. Your application decides whether to publish, reject or hold an item for review.
What happens if a check fails?
Failed checks restore their credits. Each successful submission uses credits, even if you submit the same content again. Send at most one request per second per account and honor Retry-After on a 429 response.
Are customer files stored or used for training?
We delete temporary file copies when processing finishes or fails. We do not maintain a submitted-file library, publish customer files, manually review them as part of detection or train our own models on submissions. Result and billing records are retained separately. See the Privacy Policy for provider-processing details.
Which video inputs can my application send?
Send a direct public HTTPS URL to an MP4, MOV or WebM file, up to 100 MiB, 120 minutes and 4096 pixels per side. Each video check costs 3 credits. This NSFW video detector assesses visual content, not audio; brief or obscured scenes can be missed.
Can I moderate user-generated text through the same API?
Yes. Send up to 12,000 characters per text request. NSFW text detection returns the same risk categories. Test slang, quotations and domain-specific language used by your community, since context can affect the result.
Does Is This NSFW work with AI-generated images?
You can check generated images, photographs, anime and drawings through the image input. Evaluate the styles and output resolutions your product uses. Unusual anatomy and abstract details can cause false positives or misses.
What happens when my account runs out of credits?
The API returns HTTP 402. Top up with a one-time purchase from $10 to $1,000, then resume sending requests. Credits do not expire, and the same balance covers API and playground use. There is no automatic overage billing.