Upload Video
POST/v2/videos
Analyze emotions and facial expressions from video content.
Submit a video from multiple sources and receive detailed emotion analysis of all detected faces throughout the video timeline.
Input Sources:
- YouTube: Provide any YouTube video URL
- Cloud Storage: Dropbox, Google Drive, or other cloud service links
- Social Media: Instagram, Facebook, Twitter (X) videos
- Direct URL: Any publicly accessible video link
- File Upload: Upload video files directly from your device
Analyze Specific Segments:
Focus on specific portions using start_millis and end_millis parameters.
This helps target key moments and optimize credit usage.
How It Works:
- Submit your video and receive an immediate response with a video ID
- Video is queued for processing (typically completes within minutes)
- Optionally receive a webhook notification via
callback_urlwhen complete - Retrieve results using the video ID
Supported Formats: MP4, AVI, MOV, WebM, MPEG
Credit Usage: Billed on success; the amount is recorded after the run and is not quoted on this request. Each video is billed at least 10 credits. A 402 is returned before processing starts when admission is refused.
Moments:
Set moments to run Moments on this video as part of the same request. It
is billed with the analysis, and a single 402 covers both: when your balance
cannot cover them together, nothing is charged and the video is not queued.
If the video's first analysis fails, Moments is cancelled and you are not
billed for it; once the video has been reprocessed, a later failure does not
cancel it. Leave it off to request Moments later.
Request
Responses
- 200
- 422
Successful Response
Validation Error