$ man video-trim
/video-trim
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
media
STATUS
● live
NAME
video-trim — trims a video by passing start + end or start + duration, in hh:mm:ss, mm:ss, or seconds
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
Trims a video by passing start + end OR start + duration, in HH:MM:SS, MM:SS, or seconds. CloudConvert + x264 re-encode. Use it as a video trimmer, video cutter, or video clip tool.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| video_url | string | — | required |
| trim_start | any | — | required |
| trim_end | any | — | optional |
| duration | any | — | optional |
| output_format | string | — | 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.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
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| add-watermark | Add watermark to PDF, image, or video. | $0.02 |
| audio-loudnorm | Audio loudness normalizer (EBU R128 LUFS). | $0.02 |
| csv-to-jsonl | Converts CSV or TSV data into JSON, JSONL/NDJSON, or column-oriented arrays. | $0.02 |
| image-translate | Image translator. | $0.02 |
| image-upscale | Upscales an image 2x or 4x via Venice's image/upscale endpoint (default model: venice-sd35). | $0.02 |
| image-watermark | Image watermark / add text or logo watermark to image files. | $0.02 |
| mp4-to-mp3 | Converts 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-api | Converts 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