---
title: Trim Video File API
slug: trim-video-file-api
url: https://apyhub.com/freedailypro/service/trim-video-file-api
provider: FreeDailyPro
tags: [video, trim video, cut video, video trimmer, clip video, video editing, video processing]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Trim Video File API

Cut a segment out of a video by start and end time in seconds. Upload up to 100 MB and get the trimmed clip back as a binary file.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/trim-video-file-api/video-trim` | What it does Trims a video by taking an uploaded file and cutting it between the specified start an… | 10 |

## Endpoint reference

### Trim a video

`POST https://api.eu.apyhub.com/freedailypro/trim-video-file-api/video-trim` · 10 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | The video. Up to 100 MB. |
| `endSeconds` | body | number | yes | End time in seconds |
| `startSeconds` | body | number | yes | Start time in seconds |

#### Quickstart

Trim a video by uploading the file and choosing the start and end times in seconds.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/trim-video-file-api/video-trim" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/video.mp4" \
  -F "startSeconds=10" \
  -F "endSeconds=30"
```

#### What you'll get back

Returns the trimmed video as a binary file (`string` with `format: binary`), not JSON.

## About

## What it does
Video Trimmer lets you send a video file and cut out a segment by specifying start and end times in seconds. It returns the trimmed clip as a binary file, ready to store, re-upload, or pass into another media workflow.

Use it when you need to isolate a highlight from a longer recording, prepare a short preview from a full-length asset, or remove unwanted lead-in and tail sections before further processing. The request body accepts three fields: `file` for the video upload, `startSeconds`, and `endSeconds`.

The response is the trimmed video itself, not a JSON wrapper. That makes it a good fit for pipelines that expect a file output, such as media ingestion, review tools, or automated content preparation steps.

If your product handles user-uploaded video, Video Trimmer gives you a simple way to normalize clips before analysis, sharing, or archiving.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/freedailypro/service/trim-video-file-api
