pass or block verdict for sexual content at the adult, social or strict level. Every result also includes the NSFW level and separate details for the text and the image. The model uses the parameter model=kie/nsfw-moderation. Try it online and see pricing on the KIE NSFW Moderation API page.text, image_url, or both. When both are sent, they are reviewed together in a single check.text accepts up to 12,000 characters in any language.image_url: one image per request, as a publicly downloadable URL, up to 20 MB and 50 megapixels, in JPG, PNG, WEBP or GIF. The URL must be downloadable without login.adult: allows adult content and blocks detected sexual content involving minors.social (default, used when scene is omitted): blocks nudity and explicit content, and usually allows content that is only suggestive.strict: blocks anything above none, including suggestive content.block, treat the whole video as block. Each frame is billed as one request.resultJson as a JSON string with a single resultObject that holds the verdict and details. There is no resultUrls field and no result file.{
"code": 200,
"msg": "success",
"data": {
"taskId": "47648663d55ecc9cdbe8862e636f0856",
"model": "kie/nsfw-moderation",
"state": "success",
"param": "{\"input\":\"{\\\"image_url\\\":\\\"https://static.aiquickdraw.com/tools/example/1795425260037_VHMjTFwE.jpg\\\",\\\"text\\\":\\\"A golden retriever leaping to catch a red frisbee in a sunny city park, a picnic blanket and a small wooden sign reading KIE in the background, warm afternoon light, photorealistic\\\",\\\"scene\\\":\\\"social\\\"}\",\"model\":\"kie/nsfw-moderation\"}",
"resultJson": "{\"resultObject\":{\"model_version\":\"nsfw-2026-11-20j\",\"code\":200,\"reasons\":[],\"other_categories\":[],\"suggestion\":\"pass\",\"created_at\":\"2026-11-23T09:45:39Z\",\"task_id\":\"5e900869a9e1797ca6702dd4\",\"details\":{\"image\":{\"unsafe_score\":0.0005,\"categories\":[],\"faces\":[],\"nsfw_level\":\"none\",\"drawn_score\":0.0001,\"nsfw_scores\":{\"high\":0.0001,\"low\":0.0003,\"medium\":0.0003},\"image_type\":\"realistic\"},\"text\":{\"age_signals\":[],\"unsafe_score\":0.0005,\"categories\":[],\"nsfw_level\":\"none\"}},\"nsfw_level\":\"none\",\"minor_risk\":0.0,\"status\":\"succeeded\",\"image_type\":\"realistic\"}}",
"failCode": null,
"failMsg": null,
"costTime": 0,
"completeTime": 1795427140649,
"createTime": 1795427139728
}
}resultObject fields:suggestion: the verdict, pass or block. Build your logic on this field.nsfw_level: the higher of the text and image levels: none, low (suggestive), medium (nudity) or high (explicit).minor_risk: risk score for sexual content involving minors, from 0 to 1.image_type: realistic or drawn. Present when an image is sent.reasons: short English phrases that explain a minors-related decision, for troubleshooting.other_categories: harmful categories other than sexual content, such as violence or weapons, listed for reference. They do not affect suggestion; if you need to block them, handle them yourself based on this field.details.text (when text is sent): nsfw_level (none or high), unsafe_score (0 to 1), categories, and age_signals (minor-related terms found in the text).details.image (when image_url is sent): nsfw_level (none, low, medium or high), nsfw_scores (probability that the image reaches at least low, medium and high), image_type, drawn_score (probability that the image is drawn), unsafe_score (0 to 1), categories, faces (each detected face with its estimated age and a box normalized to 0 to 1), and min_face_age (the lowest estimated age among detected faces; present when at least one face is detected).model_version: version of the detection rules that produced the result.resultObject also contains task_id, code, status and created_at, which are internal processing fields. Use the KIE taskId and state returned by Get Task Details as the task status.suggestion only: pass to allow, block to reject. Scores, levels and reason texts are for troubleshooting and display; they may change as the detection rules are updated, so do not use them as fine-grained thresholds.{
"code": 200,
"msg": "success",
"data": {
"taskId": "61811fb160cbcbcf56d92cd50e2f116b",
"model": "kie/nsfw-moderation",
"state": "fail",
"param": "{\"input\":\"{\\\"image_url\\\":\\\"https://static.aiquickdraw.com/tools/example/kie-nsfw-moderation-smoke-missing-404.jpg\\\",\\\"text\\\":\\\"A golden retriever leaping to catch a red frisbee in a sunny city park, a picnic blanket and a small wooden sign reading KIE in the background, warm afternoon light, photorealistic\\\",\\\"scene\\\":\\\"social\\\"}\",\"model\":\"kie/nsfw-moderation\"}",
"resultJson": "",
"failCode": "400",
"failMsg": "Image fetch failed. Check access settings or use our File Upload API instead.",
"costTime": 0,
"completeTime": 1795427225386,
"createTime": 1795427224798
}
}code 422 with one of these messages. No task is created and nothing is charged.| msg | When |
|---|---|
| Provide text, image_url, or both. | Neither text nor image_url is provided, or both are empty |
| scene must be one of adult, social, strict | scene is not adult, social or strict (lowercase) |
| text must be a string of at most 12000 characters | text is not a string, or is longer than 12,000 characters |
| image_url must be a publicly accessible http(s) URL | image_url is not an http(s) URL |
| image_urls is not supported. Send one image per request in image_url. | An image list such as image_urls is sent inside input |
| callBackUrl is not supported in input. | callBackUrl is placed inside input; put it at the top level of the request |
state is fail, and failCode / failMsg are returned by Get Task Details and in the callback. Failed tasks are not charged.| failCode | failMsg | When |
|---|---|---|
| 400 | Image fetch failed. Check access settings or use our File Upload API instead. | The image URL cannot be downloaded. When text and an image are sent together, the whole task fails |
| 500 | The service is busy. Please try again later. | Too many requests are in progress at the same time, or the service is busy. The task fails and is not charged; retry later. When submitting in bulk, limit concurrency or retry failed tasks |
| 500 | Internal Error, Please try again later. | An internal error occurred; retry later |
callBackUrl parameter to receive automatic notifications when the task completes, rather than polling the status endpoint. If you poll instead, query Get Task Details about once per second.curl --location 'https://api.kie.ai/api/v1/jobs/createTask' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kie/nsfw-moderation",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"text": "A golden retriever leaping to catch a red frisbee in a sunny city park, a picnic blanket and a small wooden sign reading KIE in the background, warm afternoon light, photorealistic",
"image_url": "https://static.aiquickdraw.com/tools/example/1795425260037_VHMjTFwE.jpg",
"scene": "social"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "47648663d55ecc9cdbe8862e636f0856"
}
}