> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# HappyHorseVideoEditApi - ComfyUI Built-in Node Documentation

> Complete documentation for the HappyHorseVideoEditApi node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/HappyHorseVideoEditApi/en.md)

## Overview

Edit a video using text instructions or reference images with the HappyHorse model. The output duration is 3-15 seconds and matches the input video; inputs longer than 15 seconds are truncated.

## Inputs

| Parameter   | Data Type | Required | Range           | Description                                                                                                          |
| ----------- | --------- | -------- | --------------- | -------------------------------------------------------------------------------------------------------------------- |
| `model`     | DICT      | Yes      | See below       | Model configuration containing the model selection, prompt, resolution, aspect ratio, and optional reference images. |
| `video`     | VIDEO     | Yes      | -               | The video to edit.                                                                                                   |
| `seed`      | INT       | Yes      | 0 to 2147483647 | Seed to use for generation (default: 0).                                                                             |
| `watermark` | BOOLEAN   | No       | True / False    | Whether to add an AI-generated watermark to the result (default: False).                                             |

### `model` Parameter Details

The `model` parameter is a dictionary with the following fields:

| Field              | Data Type | Required | Range                                                         | Description                                                                             |
| ------------------ | --------- | -------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| `model`            | STRING    | Yes      | `"happyhorse-1.0-video-edit"`                                 | The HappyHorse video editing model to use.                                              |
| `prompt`           | STRING    | Yes      | -                                                             | Editing instructions or style transfer requirements. Must be at least 1 character long. |
| `resolution`       | STRING    | Yes      | `"720P"`<br />`"1080P"`                                       | The output resolution.                                                                  |
| `ratio`            | STRING    | Yes      | `"16:9"`<br />`"9:16"`<br />`"1:1"`<br />`"4:3"`<br />`"3:4"` | Aspect ratio. If not changed, approximates the input video ratio.                       |
| `reference_images` | DICT      | No       | 0 to 5 images                                                 | Optional reference images (image1, image2, image3, image4, image5) to guide the edit.   |

## Outputs

| Output Name | Data Type | Description              |
| ----------- | --------- | ------------------------ |
| `video`     | VIDEO     | The edited video output. |

***

**Source fingerprint (SHA-256):** `eadb446a8dbcc524a8bb6a2ee48941136f8c1ec2cb64aa9061fb1fa22e1b683d`
