Extract Frames
extract_framesExport frames from a video as images. Costs 2 credits per video. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.
Modes:
timestamps: pass timestamps such as [1, 3, 8] for one image file per position, in the given order (up to 24). Selected automatically when timestamps is given. Each must be before the end of the video.
timeline (default, best for reviewing a video): one overview image of evenly sampled, time-labelled frames. Defaults to 12 frames; max_frames accepts 1 to 24; start_time and end_time inspect a section. Call load_image with timelineUrl from the completed job to look at it.
single: one first, middle or last frame (position, or mode=first/middle/last).
batch: separate files for every Nth video frame (frame_interval 1 to 300, not seconds), up to max_frames (1 to 500, default 100).
output_format (png, jpg, webp; default png) and quality (1 to 100) apply to batch and timestamps; timeline and single return jpg. Out-of-range numbers are rounded and clamped, and check_job returns the adjustment as a warning.
All modes accept FFmpeg-readable video containers up to 5 GiB. Direct videos are read with HTTP byte ranges when the server supports them, so only the needed parts are fetched. Finished (on-demand) HLS playlists (.m3u8) are supported and only the segments of the requested frames are fetched; live streams and encrypted (DRM) streams are not. Do not search the asset library or submit another extraction while this job is running.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"video_url": "<video_url>"
},
"name": "extract_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | timeline (default), timestamps, single, batch, first, middle or last. | |
| quality | No | Batch or timestamps with jpg or webp: 1-100. Default: 95. | |
| end_time | No | Timeline only: end of the section. | |
| position | No | For single mode: first, middle or last. Default: middle. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| video_url | Yes | Video file or finished HLS playlist (.m3u8) to extract frames from. | |
| max_frames | No | Timeline 1-24 (default 12); batch 1-500 (default 100). | |
| start_time | No | Timeline only: start of the section. | |
| timestamps | No | Exact positions in seconds. Selects timestamps mode. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| output_format | No | Batch or timestamps: png (default), jpg or webp. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. | |
| frame_interval | No | Batch only: take every Nth frame (1-300, not seconds). Default: 12. |