$ man video-trim
/video-trim(1)
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
media
STATUS
● live
NAME
video-trim — video trimmer / video cutter / video clip tool
SYNOPSIS
POST https://x402.org/v1/video-trim
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Video trimmer / video cutter / video clip tool. Pass start + end OR start + duration. HH:MM:SS, MM:SS, or seconds. CloudConvert + x264 re-encode.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| video_url | string | Public URL of a video file. | required |
| trim_start | any | Start time. HH:MM:SS, MM:SS, or seconds. | required |
| trim_end | any | End time. HH:MM:SS, MM:SS, or seconds. Use this OR duration. | optional |
| duration | any | Length to keep from trim_start. HH:MM:SS, MM:SS, or seconds. | optional |
| output_format | string | Output format. Default: same as input. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| video_url | string | Signed URL to download the trimmed MP4 clip (x264 re-encoded). |
| file_size_bytes | number | Size of the trimmed output video in bytes. |
| trim_start | string | Start timestamp applied to the cut, echoed in HH:MM:SS form. |
| trim_end | string | End timestamp applied to the cut, echoed in HH:MM:SS form. |
| input_format | string | Container/codec of the source video (e.g. mp4, mov, webm). |
| output_format | string | Container of the returned clip, typically mp4 with x264 video. |
| source_url | string | Original video URL that was fetched and trimmed. |
| job_id | string | CloudConvert job identifier for the trim/re-encode task. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/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 once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the video-trim tool to ..."
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
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| audio-loudnorm | Audio loudness normalizer (EBU R128 LUFS). | $0.02 |
| csv-to-jsonl | CSV to JSON / CSV to JSONL converter / data pipeline preprocessor. | $0.02 |
| image-translate | Image translator: vision-OCR + Venice translate. | $0.02 |
| image-upscale | Image upscale / 2x upscaler / 4x upscaler / super-resolution / sharpen image / enlarge image without loss. | $0.02 |
| pdf-watermark | PDF watermark / image watermark / video watermark — text or image overlay on PDFs, PNG/JPG/GIF, or MP4/MOV/WEBM. | $0.02 |
| video-to-subtitles | SRT / VTT subtitle generator from video or audio. | $0.02 |
| watermark | PDF / image / video watermarking — text or image overlay. | $0.02 |
| watermark-pdf | Add watermark to PDF. | $0.02 |
SEE ALSO