Trim a supplier product video to 30 seconds with Sume, $0.02

Channels cap video length differently. Cut one clip to the range you need with Sume's video-trim endpoint, $0.02 per job, frame-accurate by default.

5 min readSume
All posts

To cut a product video down to a length a channel accepts, import the clip into Sume, then call POST /v1/video-trim with a start and either an end or a duration. You get a new MP4 containing only that range, the original is untouched, and the job costs $0.02.

The need grows as sellers spread out. Amazon says its Seller Central now links eBay, Shopify, TikTok and Walmart accounts and lets you import and link off-Amazon listings (read 2026-10-04), and every one of those channels sets its own video limits. Check each channel's current page for the number.

What are the trim rules?

From the video-trim docs. The source must already be on Sume's media host, so import first with POST /v1/media-imports. An Idempotency-Key header is required.

Video trim 1.0, from Sume docs, read 2026-10-04
ItemValue
Requiredvideo_url (on media.sume.com), start, and exactly one of end or duration
duration0.2 to 900 seconds
precisionexact (default, frame-accurate re-encode) or keyframe (stream copy, may start earlier)
audiokeep (default) or drop
CapsSource up to 1800 s; output up to 900 s
Price$0.02 per job

What does a trim call look like?

This cuts the first 30 seconds. The default mode is async, so the call returns a job; poll GET /v1/jobs/{id}/status, then read /result for the new video_url.

import os, requests

r = requests.post(
    "https://api.sume.com/v1/video-trim",
    headers={
        "Authorization": "Bearer " + os.environ["SUME_API_KEY"],
        "Idempotency-Key": "trim-sku-1001-30s",
    },
    json={
        "video_url": "https://media.sume.com/artifacts/artf_demo/supplier.mp4",
        "start": 0,
        "duration": 30,
        "audio": "keep",
    },
    timeout=60,
)
print(r.status_code, r.text[:300])

When should you use keyframe instead?

Only when speed matters more than the exact cut point. Keyframe copies the stream and the cut may start up to a group of pictures early, so re-base against actual_start_seconds in the result. For a product clip that opens on the item, take the default.

What about rights and quality?

Trim only footage you have the right to use, such as your own or what a supplier explicitly licenses to you. Trimming does not improve the clip. If the first seconds are weak, a clip generated for the channel may serve better than a cut of someone else's.

Sources

Related posts

More in Media tools

All Media tools posts

Written by Sume