Get video frame
get_video_frameCapture a single frame from a video at a given timestamp. Supports YouTube, Twitter, Instagram, and other platforms. Returns the image and metadata.
Instructions
Capture a single frame from a video at the given timestamp. Provide timecode ("01:23", "00:01:23.500") or seconds; defaults to the first frame. Optional: format (png|jpeg), width (max 1920), quality (jpeg, 2-31). Returns the image plus metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Video URL (supported: YouTube, Twitter/X, Instagram, TikTok, Twitch, Vimeo, Facebook, Bilibili, VK, Dailymotion, Reddit) or YouTube video ID | |
| width | No | Output image width in pixels (default: 1280, max: 1920). Never upscales. | |
| format | No | Image format (default: jpeg) | |
| quality | No | JPEG quality (ffmpeg -q:v): 2 (best) to 31 (worst). Default: 4. Ignored for png. | |
| seconds | No | Timestamp in seconds (alternative to timecode). Default: 0 (first frame) | |
| timecode | No | Timestamp as "MM:SS" or "HH:MM:SS(.mmm)", e.g. "01:23" or "00:01:23.500" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| videoId | Yes | ||
| mimeType | Yes | ||
| sizeBytes | Yes | ||
| timestamp | Yes | ||
| timestampSeconds | Yes |