Trim Video
trim_videoCut one continuous time range from a video or an audio file. Pass exactly one of video_url or audio_url. Costs 2 credits. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.
Set start_time and either end_time or duration; end_time wins when both are given. With only start_time, 2 seconds are cut from that point; the default start is 1 second. An end past the source is cut at the source's end and check_job returns a warning. A start at or beyond the source is refused. Audio output supports mp3 (default), m4a and wav.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "trim_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Seconds from start_time. Default: 2. Ignored if end_time is given. | |
| end_time | No | End in seconds. Takes precedence over duration. | |
| audio_url | No | Audio to trim, or a video whose soundtrack should be cut. Returns audio only. Pass this or video_url, not both. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| video_url | No | Video to trim. Pass this or audio_url, not both. | |
| start_time | No | Start in seconds. Default: 1. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| audio_format | No | Audio output format when audio_url is given. Default: mp3. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. |