Trim video
Cut a segment from a video by specifying start time and either end time or duration. Returns a job that you poll for completion.
Set precise: true for frame-accurate cuts (re-encodes, slower). Default is fast keyframe-aligned cutting.
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"
Start time in seconds
x >= 05
End time in seconds (mutually exclusive with duration)
x >= 015
Duration in seconds (mutually exclusive with end)
x >= 0Frame-accurate cuts (re-encodes) vs fast keyframe-aligned
Response
Job created
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"