KIE.AI
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Market
File Upload APICommon APIAI Agents
Market
File Upload APICommon APIAI Agents
  1. Kie
  • Getting Started with KIE API (Important)
  • Market
  • Image Models
    • Seedream
      • Seedream4.0 - Text to Image
      • Seedream4.0 - Edit
      • Seedream4.5 - Text to Image
      • Seedream4.5 - Edit
      • Seedream5.0 Lite - Text to Image
      • Seedream5.0 Lite - Image to Image
      • Seedream5.0 Pro - Text to Image
      • Seedream5.0 Pro - Image to Image
      • Seedream5.0 Pro - Layer Decomposition
      • Seedream3.0 - Text to Image
      • Seedream5.0 Flash - Text to Image
      • Seedream5.0 Flash - Image to Image
      • Seedream5.0 Flash - Layer Decomposition
      • Seedream5.5 - Text to Image
      • Seedream5.5 - Image to Image
      • Seedream5.5 - Layer Decomposition
    • Z-image
      • Z-Image
    • Google
      • Google - imagen4-fast
      • Google - imagen4-ultra
      • Google - imagen4
      • Google - Nano Banana Edit
      • Google - Nano Banana
      • Google - Nano Banana Pro
      • Google - Nano Banana 2
      • Google - Nano Banana 2.1
      • Google - Nano Banana 2 Lite
    • Flux-2
      • Flux-2 - Pro Text to Image
      • Flux-2 - Pro Image to Image
      • Flux-2 - Image to Image
      • Flux-2 - Text to Image
    • Grok Imagine
      • Grok Imagine Image 2.0 Text To Image
      • Grok Imagine Image 2.0 Segment Map
      • Grok Imagine Image 2.0 Segment Edit
      • Grok Imagine - Text to Image
      • Grok Imagine Image 2.0 Image Edit
      • Grok Imagine - image to image
    • GPT Image
      • GPT Image 2.5 Flare - Text to Image
      • GPT Image 2.5 Flare - Image To Image
      • GPT Image 2.5 Sunburst - Text to Image
      • GPT Image 2.5 Sunburst - Image To Image
      • GPT Image 2.6 Flare - Text to Image
      • GPT Image 2.6 Flare - Image to Image
      • GPT Image 2.6 Sunburst - Text to Image
      • GPT Image 2.6 Sunburst - Image to Image
      • GPT Image 2.6 Economy - Text to Image
      • GPT Image 2.6 Economy - Image to Image
      • GPT Image-1.5 - Text to Image
      • GPT Image-1.5 - Image to Image
      • GPT Image-2 - Text to Image
      • GPT Image 2 - Image To Image
    • Topaz
      • Topaz - Image Upscale
    • Recraft
      • Recraft - Remove Background
      • Recraft - Crisp Upscale
    • Ideogram
      • Ideogram - Character Edit
      • Ideogram - Character Remix
      • Ideogram - Character
      • Ideogram V3 Text to Image
      • Ideogram V3 Edit
      • Ideogram V3 Remix
    • Qwen
      • Qwen - Text to Image
      • Qwen - Image to Image
      • Qwen - Image Edit
      • Qwen2 - Image Edit
      • Qwen2 - Text To Image
      • Qwen 2.1 - Text to Image
      • Qwen 2.1 - Image to Image
      • Qwen3 Pro Text to Image
      • Qwen3 Text to Image
      • Qwen3 Pro Image to Image
      • Qwen3 Image to Image
    • Wan
      • Wan 2.7 Image
      • Wan 2.7 Image Pro
    • Flux-3
      • FLUX 3 Klein Text to Image
      • FLUX 3 Klein Edit Image
    • 4o Image API
      • 4o Image Generation Callbacks
      • Generate 4o Image
    • Flux Kontext API
      • Image Generation or Editing Callbacks
      • Generate or Edit Image
    • Kie
      • Kie - Image Upscale
        POST
      • KIE NSFW Moderation
        POST
    • MiniMax H3
      • MiniMax H3 Text-to-Image
      • MiniMax H3 Image Editing
    • Kling
      • Kling 4.0 Image
      • Kling 4.0 Long Image
  • Video Models
    • Grok Imagine
      • Grok Imagine Text to Video
      • Grok Imagine Image to Video
      • Grok Imagine - Video Upscale
      • Grok Imagine - Video Extend
      • Grok Imagine Video 1.5 Preview
    • Kling
      • Kling 2.6 Text to Video
      • Kling 2.6 Image to Video
      • Kling - V2.5 Turbo Image to Video Pro
      • Kling - V2.5 Turbo Text to Video Pro
      • Kling AI Avatar Standard
      • Kling AI Avatar Pro
      • Kling V2.1 Master Image to Video
      • Kling V2.1 Master Text to Video
      • Kling V2.1 Pro
      • Kling V2.1 Standard
      • Kling 2.6 motion-control
      • Kling-3.0 motion-control
      • Kling 3.0
      • Kling - V3 Turbo Text to Video
      • Kling - V3 Turbo Image to Video
      • Kling 4.0 Reference To Video
      • Kling 4.0 Keyframe To Video
      • Kling 3.0 Omni Reference To Video
      • Kling 3.0 Omni Transformation
      • Kling 3.0 Omni Image To Video
      • Kling 3.0 Omni Text to Video
      • Kling 4.0 Flash Keyframe To Video
      • Kling 4.0 Flash Reference To Video
    • Bytedance
      • Bytedance Seedance 2.0
      • Bytedance Seedance 2.0 Fast
      • Bytedance Seedance 2.0 Mini
      • Bytedance Seedance 2.5
      • Bytedance Seedance 2.5 Draft
      • Bytedance Seedance 2.5 Flash
      • Bytedance V1 Pro Fast Image to Video
      • Bytedance V1 Pro Image to Video
      • Bytedance - V1 Pro Text to Video
      • Bytedance - V1 Lite Image to Video
      • Bytedance - V1 Lite Text to Video
    • Hailuo
      • Hailuo 2.3 Pro Image to Video
      • Hailuo 2.3 Standard Image to Video
      • Hailuo Pro Text to Video
      • Hailuo Pro Image to Video
      • Hailuo Standard Text to Video
      • Hailuo Standard Image to Video
    • Wan
      • Wan - 2.2 A14B Image to Video Turbo
      • Wan - 2.2 A14B Speech to Video Turbo
      • Wan - 2.2 A14B Text to Video Turbo
      • Wan - Animate Move
      • Wan - Animate Replace
      • Wan 2.6 - Image to Video
      • Wan 2.6 - Text to Video
      • Wan 2.6 - Video to Video
      • Wan - 2.6-flash-image-to-video
      • Wan - 2-6-flash-video-to-video
      • Wan 2.5 - Image to Video
      • Wan 2.5 - Text to Video
      • Wan 2.7 - Text to Video
      • Wan 2.7 - Image to Video
      • Wan 2.7 - Video Edit
      • Wan 2.7 - Reference to Video
      • Wan 3.0 - Video
      • Wan 3.0 - Video Prime
    • Topaz
      • Topaz - Video Upscale
    • Infinitalk
      • Infinitalk - From Audio
    • PixVerse
      • PixVerse V6 Max Text-to-Video
      • PixVerse V6 Max Image-to-Video
      • PixVerse V6 Text-to-Video
      • PixVerse V6 Image-to-Video
      • PixVerse V6 First & Last Frame Transition
      • PixVerse V6 Video Extension
      • PixVerse V6 Fusion / Reference-to-Video
    • MiniMax H3
      • MiniMax H3 Text-to-Video
      • MiniMax H3 Image-to-Video
      • MiniMax H3 Reference-to-Video
    • Runway API
      • AI Video Generation Callbacks
      • AI Video Extension Callbacks
      • Aleph
        • Aleph Video Generation Callbacks
        • Generate Aleph Video
      • Generate AI Video
      • Extend AI Video
    • HappyHorse
      • HappyHorse - text-to-video
      • HappyHorse - image-to-video
      • HappyHorse - reference-to-video
      • HappyHorse - video-edit
      • HappyHorse-1-1 image-to-video
      • HappyHorse-1-1 text-to-video
      • HappyHorse-1-1 reference-to-video
    • Gemini Omni
      • Gemini Omni 1.1 Flash
      • Gemini Omni 1.2 Flash
      • Gemini Omni Flash 1.2 Extend
      • Gemini Omni Video
      • Gemini Omni Audio
      • Gemini Omni Character
    • OmniHuman
      • Omnihuman 1.5
      • Omnihuman 1.5 Human Identification
      • OmniHuman 1.5 Subject Detection
      • Omnihuman 2.0
    • Volcengine
      • Volcengine video to video lip sync
    • Veo3.1 API
      • Veo3.1 Video Generation Callbacks
      • Get 4K Video Callbacks
      • Generate Veo3.1 Video
      • Get 1080P Video
      • Get 4K Video
      • Extend Veo3.1 Video
    • Vidu
      • Vidu Q4 Image To Video
      • Vidu Q4 Reference To Video
    • Kie
      • Kie - Video Upscale
    • LTX
      • LTX 2.5 Fast Text-to-Video
      • LTX 2.5 Fast Image-to-Video
      • LTX 2.5 Fast Audio-to-Video
      • LTX 2.5 Pro Text-to-Video
      • LTX 2.5 Pro Image-to-Video
  • Music Models
    • ElevenLabs
      • elevenlabs/audio-isolation
      • elevenlabs/text-to-dialogue-v3
      • elevenlabs/text-to-speech-multilingual-v2
      • elevenlabs/text-to-speech-turbo-2-5
    • Gemini
      • Gemini 3.8 Flash Text to speech
      • Gemini 3.1 Flash Text to speech
      • Gemini 3.8 Flash Lite Text to speech
      • Gemini 2.5 Pro Text to Speech
    • Suno
      • Music Generation
        • Music Cover Generation Callbacks
        • Music Generation Callbacks
        • Music Extension Callbacks
        • Audio Upload and Cover Callbacks
        • Audio Upload and Extension Callbacks
        • Add Instrumental Callbacks
        • Add Vocals Callbacks
        • Replace Music Section Callbacks
        • Generate Music
        • Extend Music
        • Upload And Cover Audio
        • Upload And Extend Audio
        • Add Instrumental to Music
        • Add Vocals to Music
        • Get Timestamped Lyrics
        • Boost Music Style
        • Generate Music Cover
        • Replace Music Section
        • Generate Persona
        • Generate Mashup Music
        • Recovery Audio
      • WAV Conversion
        • Convert to WAV Callbacks
        • Convert to WAV Format
      • Music Video Generation
        • Music Video Generation Callbacks
        • Create Music Video
      • Lyrics Generation
        • Lyrics Generation Callbacks
        • Generate Lyrics
      • voice
        • Suno Voice Validation Phrase Callback
        • Suno Voice Generation Callback
        • Suno Voice Generate Verification Phrase API
        • Suno Voice Create Custom Voice API
        • Suno Voice Regenerate Verification Phrase
        • Suno Voice Check Availability API
      • Vocal Removal
        • Audio Separation Callbacks
        • MIDI Generation Callbacks
        • Vocal & Instrument Stem Separation
        • Generate MIDI from Audio
      • Sounds Generation
        • Generate sounds
      • Speech Generation
        • Generate Speech
    • NVIDIA
      • Nemotron 3.5 Transcribe
  • Chat Models
    • GPT
      • GPT 5.2
      • GPT 5.5 (response)
      • GPT 5.6 Luna
      • Gpt 6 Astra
      • GPT 6 Luna
      • GPT 6 Sol
      • GPT 6.1 Terra
      • GPT 6.2 Sol
      • GPT 6.2 Astra
      • GPT 5.6 Terra
      • GPT 5.6 Sol
      • GPT 6.1 Sol
    • Claude
      • Claude Code + kie.ai Integration Guide
      • Claude Opus 4.7
      • Claude Opus 4.8
      • Claude Fable 5
      • Claude Sonnet 5
      • Claude Opus 5.5
      • Claude Sonnet 5.5
      • Claude Haiku 5.5
      • Claude Haiku 4.5
      • Claude Opus 4.5
      • Claude Opus 4.6
      • Claude Opus 5
      • Claude Sonnet 4.5
      • Claude Sonnet 4.6
    • Codex
      • Codex API
    • Gemini
      • Gemini 2.5 Pro (openai)
      • Gemini 3 Pro (openai)
      • Gemini 3.1 Pro (openai)
      • Gemini 3.5 Flash
      • Gemini 3.5 Flash (openai)
      • Gemini 3.6 Flash
      • Gemini 3.6 Flash (openai)
      • Gemini 3.7 Flash
      • Gemini 3.7 Flash (openai)
      • Gemini 3.8 Flash
      • Gemini 3.8 Flash (openai)
      • Gemini 4 Argon
      • Gemini 4 Argon (openai)
      • Gemini 4 Carbon
      • Gemini 4 Hydrogen
      • Gemini 4 Hydrogen (openai)
      • Gemini 4 Carbon (openai)
      • Gemini 4 Neon
      • Gemini 4 Neon (openai)
    • Grok
      • Grok 4.7
      • Grok 4.3
      • Grok 4.5
      • Grok 4.6
    • Deepseek
      • DeepSeek V4.1 Flash
    • Kimi
      • Kimi K3.1 Pro
      • Kimi K3
  • Get Task Details
    GET
  1. Kie

KIE NSFW Moderation

POST
/api/v1/jobs/createTask
Check text, one image, or both in a single request with KIE NSFW Moderation and get a 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.

Input#

Provide 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.
For animated images such as GIF, the first frame is reviewed. To review other frames, extract them and submit each one as an image.
Image size and pixel count are checked after the image is downloaded, so an image over these limits is not rejected at submission; the task fails instead and is not charged.
When submitting many requests, limit how many are in progress at the same time, and retry tasks that fail because the service is busy.

Choosing a scene#

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.
Detected sexual content involving minors is blocked in every scene.

Checking a video#

Extract frames (we suggest 1 frame per second), submit each frame as an image, and use the most severe result: if any frame returns block, treat the whole video as block. Each frame is billed as one request.

Result format#

When the task succeeds, Get Task Details returns resultJson as a JSON string with a single resultObject that holds the verdict and details. There is no resultUrls field and no result file.
Example of a successful text and image check:
{
  "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.
Act on 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.
Example of a failed task (the image URL could not be downloaded):
{
  "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
  }
}

Billing#

Billed per request: text only, image only, or text and image together each count as one request; sending both is charged once.
Text is not charged by length, and all three scenes cost the same.
Only successful tasks are charged. Failed tasks, including tasks that fail because the service is busy, are not charged.
When you check a video by sampling frames, each frame is billed as one request.
See current rates on the pricing page.

Errors#

Rejected at submission: Create Task returns code 422 with one of these messages. No task is created and nothing is charged.
msgWhen
Provide text, image_url, or both.Neither text nor image_url is provided, or both are empty
scene must be one of adult, social, strictscene is not adult, social or strict (lowercase)
text must be a string of at most 12000 characterstext is not a string, or is longer than 12,000 characters
image_url must be a publicly accessible http(s) URLimage_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
Task failed: state is fail, and failCode / failMsg are returned by Get Task Details and in the callback. Failed tasks are not charged.
failCodefailMsgWhen
400Image 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
500The 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
500Internal Error, Please try again later.An internal error occurred; retry later

Query Task Status#

After submitting a task, use the unified query endpoint to check progress and retrieve results:
Get Task Details
Learn how to query task status and retrieve generation results
For production use, we recommend using the 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.

Related Resources#

Market Overview
Explore all available models
File Upload API
Learn how to upload and manage files
Common API
Check credits and account usage

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Request successful
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
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"
    }
}'
Response Response Example
{
    "code": 200,
    "msg": "success",
    "data": {
        "taskId": "47648663d55ecc9cdbe8862e636f0856"
    }
}
Previous
Kie - Image Upscale
Next
MiniMax H3 Text-to-Image
Built with