Skip to main content
NVIDIA
NVIDIA

synthetic-video-detector

DownloadableFree Endpoint

NVIDIA Synthetic Video Detector is an AI-powered micro-service for detecting AI‑generated (synthetic) videos.

API Reference

Getting Started

NVIDIA Synthetic Video Detector NIM uses gRPC APIs for inferencing requests. Following instructions demonstrate the usage of Synthetic Video Detector NIM model using Python client.

Prerequisites

You will need a system with git and Python 3.10+ installed.

Download the NVIDIA Synthetic Video Detector Python client

Download code by cloning the gRPC Client Repository:

git clone https://github.com/NVIDIA-Maxine/nim-clients.git
cd nim-clients/synthetic-video-detector/

Install the dependencies for the NVIDIA Synthetic Video Detector Python client:

sudo apt-get install python3-pip
pip install -r requirements.txt

Run Python Client

Navigate to the scripts directory

cd scripts

Send gRPC request

Open a command terminal and execute below command to send gRPC request. If you have generated the API key, it will be auto-populated in the command.

python synthetic-video-detector.py --preview-mode \
--target grpc.nvcf.nvidia.com:443 \
--function-id 847b6e53-0133-452d-ab85-d7acf3ace723 \
--api-key $NVIDIA_API_KEY \
--video-input <input file path> \
--save-csv

Example command with sample input:

python synthetic-video-detector.py --preview-mode \
--target grpc.nvcf.nvidia.com:443 \
--function-id 847b6e53-0133-452d-ab85-d7acf3ace723 \
--api-key $NVIDIA_API_KEY \
--video-input ../assets/fake_sample_video.mp4 \
--save-csv

Note the requirements for input file:

  • The supported file type is mp4 with H.264 codec.
  • The size limit for input file is 500 MB.

Refer this documentation for more information.