Skip to main content
Endpoint: POST https://fal.run/fal-ai/imageutils/nsfw Endpoint ID: fal-ai/imageutils/nsfw

Try it in the Playground

Run this model interactively with your own prompts.

Quick Start

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/imageutils/nsfw",
    arguments={
        "image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Input Schema

image_url
string
required
Input image url.

Output Schema

nsfw_probability
float
required
The probability of the image being NSFW.

Input Example

{
  "image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
}