Skip to main content
Tuteliq can analyze uploaded video files by extracting key frames at even intervals and running vision analysis on each frame. This is ideal for moderating user-uploaded videos, screen recordings, and video messages.

Endpoint

How It Works

1

Upload

Send a video file as multipart/form-data. Supported formats: MP4, WebM, QuickTime, AVI. Max file size: 100MB. Max duration: 10 minutes.
2

Frame Extraction

The server uses ffmpeg to extract key frames at even intervals. You can control the number of frames with max_frames (default: 10, max: 20).
3

Vision Analysis

Each extracted frame is analyzed by the vision model for visual safety concerns — violence, sexual content, self-harm imagery, substance use, and more. Frames are processed in parallel batches of 3 for speed.
4

Aggregation

Results are aggregated into an overall_risk_score (the max across all frames) and overall_severity. Frames above the risk threshold are returned as flagged_timestamps with specific reasons.

Request

Response

Response Fields

Per-Frame Result

Code Examples

Severity Thresholds

The overall_severity is derived from the highest risk_score across all frames:

Credits

Video analysis costs 95 credits per request, regardless of the number of frames extracted. For real-time video monitoring with per-frame billing, see Voice & Video Streaming.

Webhooks

When a video is flagged with severity medium or above, Tuteliq automatically triggers any configured webhooks with the video analysis type. The webhook payload includes the flagged timestamps, overall risk score, and detected categories.
Video analysis requires ffmpeg to be installed on the server for frame extraction. The official Docker image and Cloud Run deployment include ffmpeg by default.