media trim
media_trimCut a clip out of an audio or video file: give start and end (seconds or hh:mm:ss) or duration. mode=precise re-encodes for frame-exact cuts (default); mode=fast copies streams instantly but cuts on keyframes. Costs $0.012 USDC per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| url | No | https URL of the file (max 20 MB) | |
| mode | No | precise (default) or fast | |
| start | No | Seconds or hh:mm:ss, default 0 | |
| store | No | Return 7-day share links instead of base64 (+$0.001); automatic above 3 MB | |
| format | No | binary = raw file bytes (single output) | |
| duration | No | Seconds (instead of end) | |
| filename | No | Name with extension, helps detect the type | |
| file_base64 | No | Or the file as base64 / data URI |