Slice video into segments
Split a video into time-based segments. Each segment includes a video file, a full-resolution first frame (JPEG), and a 480px thumbnail (WebP).
Exactly one of every, at, count, or ranges must be provided.
every— split at regular intervals (e.g. every 15 seconds)at— split at specific timestampscount— split into N equal partsranges— split at explicit time ranges
Authorizations
API key from varg.ai/dashboard.
Pass as Authorization: Bearer varg_xxx.
Body
URL of the source video
"https://s3.varg.ai/o/my-video.mp4"
copy for fast keyframe-aligned cuts, reencode for frame-accurate
copy, reencode Split every N seconds
0.1 <= x <= 360015
Split at specific timestamps (seconds)
x >= 0[5, 15, 30]Split into N equal parts
2 <= x <= 10004
Explicit time ranges to extract
Extract first_frame (full-res JPEG) and thumbnail (480px WebP) for each segment
Response
Job created. Poll with GET /jobs/{job_id}. Completed job metadata contains segments array.
Unique job identifier
"job_a1b2c3d4"
Current job status
queued, processing, completed, failed, cancelled "completed"
Resolved model identifier (provider:model format)
"fal:kling-v2.5"
When the job was created
"2026-02-13T10:00:00Z"
When the job finished (completed, failed, or cancelled)
"2026-02-13T10:02:30Z"
Job output, present when status is completed
Cache metadata
Error message, present when status is failed
"Provider returned an error"