# Vidu Multi-Frame Video Generation

This node generates a video by creating transitions between multiple keyframes. It starts from an initial image and animates through a sequence of user-defined end images and prompts, producing a single video file as output.

## Inputs

### Common Inputs

| Parameter | Description | Data Type | Required | Range |
|-----------|-------------|-----------|----------|-------|
| `model` | The Vidu model to use for video generation. | COMBO | Yes | "viduq2-pro"<br>"viduq2-turbo" |
| `start_image` | The starting frame image. Aspect ratio must be between 1:4 and 4:1. | IMAGE | Yes | Aspect ratio 1:4 to 4:1 |
| `seed` | A seed value for random number generation to ensure reproducible results (default: 1). | INT | Yes | 0 to 2147483647 |
| `resolution` | The resolution of the output video. | COMBO | Yes | "720p"<br>"1080p" |
| `frames` | Number of keyframe transitions (2-9). Selecting a value dynamically reveals the required inputs for each frame. | DYNAMIC_COMBO | Yes | "2"<br>"3"<br>"4"<br>"5"<br>"6"<br>"7"<br>"8"<br>"9" |

### Frame Inputs (shared by all frame count options)

When `frames` is set to a number, the following three inputs are shown for each frame `i` from 1 to that number. For example, choosing "3" adds `prompt1` / `end_image1` / `duration1`, `prompt2` / `end_image2` / `duration2`, and `prompt3` / `end_image3` / `duration3`.

| Parameter | Description | Data Type | Required | Range |
|-----------|-------------|-----------|----------|-------|
| `prompt{i}` | Text prompt for frame {i} transition. Multiline text field. Maximum 2000 characters. | STRING | Yes | Up to 2000 characters |
| `end_image{i}` | End frame image for segment {i}. Aspect ratio must be between 1:4 and 4:1. | IMAGE | Yes | Aspect ratio 1:4 to 4:1 |
| `duration{i}` | Duration for segment {i} in seconds (default: 4). | INT | Yes | 2 to 7 |

**Notes:**

- All inputs are required. `seed` has a default value but is still a required input.
- `start_image` and every `end_image{i}` must have an aspect ratio between 1:4 and 4:1.
- Every `prompt{i}` has a maximum length of 2000 characters.
- Every `duration{i}` must be between 2 and 7 seconds.
- The number of frames can be between 2 and 9, so the possible frame indices run from 1 to 9.

## Outputs

| Output Name | Description | Data Type |
|-------------|-------------|-----------|
| `output` | The generated video file containing all the animated transitions. | VIDEO |

> 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/ViduMultiFrameVideoNode/en.md)

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