happyhorse_edit_video
Edits a source video from a public URL using text instructions and optional reference images while keeping the original duration and aspect ratio.
Instructions
Edit a source video using text and optional reference images.
Duration and aspect ratio follow the source video. Editing is billed by the combined input and output video duration, not the compatibility duration argument.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"video_url": "<video_url>"
},
"name": "happyhorse_edit_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional reproducibility seed. | |
| model | No | Video-edit model. Currently happyhorse-1.0-video-edit. | happyhorse-1.0-video-edit |
| ratio | No | Ignored compatibility parameter: editing inherits the source video aspect ratio. | 16:9 |
| prompt | Yes | Instructions describing the desired changes. | |
| duration | No | Ignored compatibility parameter: editing inherits the source video duration. | |
| video_url | Yes | Public URL of the source video to edit. | |
| watermark | No | Whether to add a Happy Horse watermark. | |
| image_urls | No | Optional style or subject reference images, up to five. | |
| resolution | No | Output resolution: 720P or 1080P. | 1080P |
| callback_url | No | Optional webhook URL. Omit it to receive a task ID for polling. | |
| audio_setting | No | Audio policy: auto, or origin to preserve the source audio. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |