Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man video-trim

/video-trim

agentutility / mediakit / video-trim
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakit
CATEGORY
media
STATUS
live
NAME
video-trim cuts a clip out of a source video by start and end point, so you don't need a video editor to pull a highlight or shorten a file
SYNOPSIS
POST https://x402.agentutility.ai/video-trim
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Cuts a clip out of a source video by start and end point, so you don't need a video editor to pull a highlight or shorten a file. Send video_url plus trim_start and either trim_end or duration, each as HH:MM:SS, MM:SS, or plain seconds; an optional output_format lets you change the container on the way out. The trimmed segment is re-encoded with an x264 pipeline, preserving audio, and the response returns the new video_url with the resolved trim_start and trim_end. Use it as a video trimmer, video cutter, clip extraction API, or video editing tool for shortening uploads and pulling highlight clips.

INPUTrequest schema
propertytypedescriptionreq?
video_urlstringSource video URL. Extension must be a supported format (mp4, mov, webm, mkv, avi, m4v, flv, wmv, 3gp, mpeg, mpg, ts, ogv).required
trim_startanyClip start time as HH:MM:SS, MM:SS, or seconds.required
trim_endanyClip end time as HH:MM:SS, MM:SS, or seconds. Provide this or duration.optional
durationanyClip length as HH:MM:SS, MM:SS, or seconds, added to trim_start. Provide this or trim_end.optional
output_formatstringOutput container format. Optional; defaults to the input format.optional
OUTPUTresponse shape
fieldtypedescription
video_urlstringSigned URL to download the trimmed MP4 clip (x264 re-encoded).
file_size_bytesnumberSize of the trimmed output video in bytes.
trim_startstringStart timestamp applied to the cut, echoed in HH:MM:SS form.
trim_endstringEnd timestamp applied to the cut, echoed in HH:MM:SS form.
input_formatstringContainer/codec of the source video (e.g. mp4, mov, webm).
output_formatstringContainer of the returned clip, typically mp4 with x264 video.
source_urlstringOriginal video URL that was fetched and trimmed.
job_idstringCloudConvert job identifier for the trim/re-encode task.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/video-trim \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the video-trim tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
videotrimcutedit
env
CLOUD_CONVERT_API_KEY
methods
POST
cluster
mediakit
price
$0.02 USDC per call
ADJACENTother endpoints in mediakit
endpointdescriptionprice
add-watermarkStamp a text or image watermark onto a PDF, image, or video file.$0.02
audio-loudnormNormalize audio loudness to a target LUFS level for podcasts, YouTube, and Spotify delivery.$0.02
csv-to-jsonlConverts CSV or TSV data into JSON, JSONL/NDJSON, or column-oriented arrays.$0.02
image-translateImage translator.$0.02
image-upscaleUpscales an image 2x or 4x via Venice's image/upscale endpoint (default model: venice-sd35).$0.02
image-watermarkImage watermark / add text or logo watermark to image files.$0.02
mp4-to-mp3Converts MP4, MOV, WebM, MKV, AVI, M4V, and FLV video files to MP3 via CloudConvert, with selectable bitrate (96/128/192 kbps).$0.02
mp4-to-mp3-apiConverts MP4, MOV, WEBM, MKV, AVI, M4V, or FLV URLs into hosted MP3 output with selectable 96, 128, or 192 kbps bitrate.$0.02
SEE ALSO
agentutility · mediakit · x402 · mcp · llms.txt · registry.json · bazaar.x402.org