All toolstrim video API

Trim Video with an API

Cut a precise segment from a source video using start and end times. Run the preset directly on this page or call the same agent-ready endpoint from your product.

Prefer the shell? Trim a video with FFmpeg, the verified FFmpeg command for this edit.

LIVE TOOL
Run trim video
Drop a video, adjust the defaults if you need to, and download the result here.

or ·

Already have an account? Sign in

BEFORE / AFTER

See what the tool changes.

A real example: the after side is the unedited output of a KinoPipe job. Run the live form above to generate the same result from your own media.

BeforeFull video
00:0000:09
00:00–00:09
AfterSelected clip
Ready
00:0000:02–00:06
00:02–00:06

Demo footage: public-domain timelapses (Bureau of Land Management, Oregon · NASA SVS). Processed by the same pipeline the API and MCP tools call.

Useful defaults, typed options.

The tool slug stays stable while your agent supplies named media inputs and a narrow set of documented options.

  • Millisecond timestamps
  • Fast stream copy when safe
  • Exact duration validation
What this preset does
  1. 01Validate time boundaries
  2. 02Seek to the start point
  3. 03Cut the requested segment
  4. 04Return a playable output
Stable endpointPOST /api/v1/tools/trim-video
Live API request
{
  "inputs": [{ "id": "main", "url": "https://example.com/video.mp4" }],
  "options": { "start": 2.5, "end": 17 }
}
Successful output example
{
  "result": {
    "output": {
      "filename": "trim-video-output.mp4",
      "contentType": "video/mp4",
      "byteSize": 437021,
      "downloadUrl": "https://cdn.kinopipe.com/…"
    }
  }
}

Know the boundaries before you run.

Start and end use seconds and accept decimals.
End must be greater than start and inside the source duration.
Exact cuts can require re-encoding.

About trim video

Stream copy is possible near compatible keyframes. Exact frame cuts may require re-encoding the surrounding segment.

The API accepts seconds as numbers, including decimal values for sub-second precision.

Related media tools