Skip to main content
Core.Today
|
Falcons.aiFastHigh

NSFW Image Detection

The standard NSFW image classifier (127M+ runs) โ€” returns 'normal' or 'nsfw' for any image. An essential, ultra-cheap moderation gate for UGC platforms.

1 credits
per image
127M+ runs โ€” the moderation standard
Simple normal/nsfw output
1 credit per image โ€” run on every upload
Fast enough for synchronous gates

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "falcons-ai/nsfw_image_detection",
  "input": {
    "image": "https://example.com/user-upload.jpg"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
imagestringYes-Image to classify

How to Provide File Input

There are 3 ways to provide files for the image parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=falcons-ai/nsfw_image_detection" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "falcons-ai/nsfw_image_detection",
  "input": {
    "prompt": "your prompt here",
    "image": "https://example.com/image.jpg"
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Upload Moderation Gate

Classify a user upload before publishing

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "falcons-ai/nsfw_image_detection",
  "input": {
    "image": "https://example.com/user-upload.jpg"
  }
}'

Tips & Best Practices

1Returns the string 'normal' or 'nsfw' โ€” branch your pipeline on it
2At 1 credit, run it on every image upload without budget concerns
3Combine with human review for borderline categories your policy cares about

Use Cases

UGC upload moderation
Profile photo screening
Marketplace listing review
Generated-image safety gate
Chat image filtering