You're looking at a specific version of this model. Jump to the model overview.

littletry /video-nsfw-filter:c9d24e8e

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
video
string
Video file to check for visual NSFW content.
num_frames
integer
8

Min: 1

Uniform samples across the declared frame range; 2+ samples include both ends. One sample selects the middle. Short videos are deduplicated.
threshold_offset
number
0.02

Max: 0.1

Additional NSFW similarity margin. Higher values are less strict; this is not a probability threshold.
strict_special_care
boolean
True
Preserve the original stricter normal-concept matching when special-care concepts match.
batch_size
integer
8

Min: 1

Maximum sampled frames per inference batch; reduce for large-resolution videos.
return_frames
None
none
Return no screenshots, only NSFW-matched samples, or all sampled frames as JPEG file outputs.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'properties': {'checked_frames': {'title': 'Checked Frames',
                                   'type': 'integer'},
                'declared_frame_count': {'title': 'Declared Frame Count',
                                         'type': 'integer'},
                'detector_id': {'title': 'Detector Id', 'type': 'string'},
                'flagged_frames': {'items': {'type': 'integer'},
                                   'title': 'Flagged Frames',
                                   'type': 'array'},
                'fps': {'nullable': True, 'title': 'Fps', 'type': 'number'},
                'frame_image_numbers': {'items': {'type': 'integer'},
                                        'title': 'Frame Image Numbers',
                                        'type': 'array'},
                'frame_images': {'items': {'format': 'uri', 'type': 'string'},
                                 'title': 'Frame Images',
                                 'type': 'array'},
                'frames': {'items': {'type': 'object'},
                           'title': 'Frames',
                           'type': 'array'},
                'nsfw_detected': {'title': 'Nsfw Detected', 'type': 'boolean'},
                'planned_frames': {'title': 'Planned Frames',
                                   'type': 'integer'},
                'policy_version': {'title': 'Policy Version', 'type': 'string'},
                'requested_frames': {'title': 'Requested Frames',
                                     'type': 'integer'},
                'return_frames': {'title': 'Return Frames', 'type': 'string'},
                'sampling': {'title': 'Sampling', 'type': 'string'},
                'sampling_complete': {'title': 'Sampling Complete',
                                      'type': 'boolean'},
                'scope': {'title': 'Scope', 'type': 'string'},
                'strict_special_care': {'title': 'Strict Special Care',
                                        'type': 'boolean'},
                'threshold_offset': {'title': 'Threshold Offset',
                                     'type': 'number'},
                'timestamp_source': {'title': 'Timestamp Source',
                                     'type': 'string'}},
 'required': ['nsfw_detected',
              'scope',
              'sampling',
              'sampling_complete',
              'requested_frames',
              'planned_frames',
              'checked_frames',
              'declared_frame_count',
              'timestamp_source',
              'flagged_frames',
              'detector_id',
              'policy_version',
              'threshold_offset',
              'strict_special_care',
              'frames',
              'return_frames',
              'frame_images',
              'frame_image_numbers'],
 'title': 'Output',
 'type': 'object'}