> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-custom-nodes-sdk-v2-frontend.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Kandinsky5ImageToVideo - ComfyUI Built-in Node Documentation

> The Kandinsky5ImageToVideo node prepares conditioning and latent space data for video generation using the Kandinsky model.

The Kandinsky5ImageToVideo node prepares conditioning and latent space data for video generation using the Kandinsky model. It creates an empty video latent tensor and can optionally encode a starting image to guide the initial frames of the generated video, modifying the positive and negative conditioning accordingly.

## Inputs

| Parameter     | Description                                                                                                                                  | Data Type    | Required | Range                 |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------- | --------------------- |
| `positive`    | The positive conditioning prompts to guide the video generation.                                                                             | CONDITIONING | Yes      | N/A                   |
| `negative`    | The negative conditioning prompts to steer the video generation away from certain concepts.                                                  | CONDITIONING | Yes      | N/A                   |
| `vae`         | The VAE model used to encode the optional starting image into the latent space.                                                              | VAE          | Yes      | N/A                   |
| `width`       | The width of the output video in pixels (default: 768).                                                                                      | INT          | Yes      | 16 to 16384 (step 16) |
| `height`      | The height of the output video in pixels (default: 512).                                                                                     | INT          | Yes      | 16 to 16384 (step 16) |
| `length`      | The number of frames in the video (default: 121).                                                                                            | INT          | Yes      | 1 to 16384 (step 4)   |
| `batch_size`  | The number of video sequences to generate simultaneously (default: 1).                                                                       | INT          | Yes      | 1 to 4096             |
| `start_image` | An optional starting image or batch of frames. If provided, it is encoded and used to replace the noisy start of the model's output latents. | IMAGE        | No       | N/A                   |

**Note:** When a `start_image` is provided, it is automatically resized to match the specified `width` and `height` using bilinear interpolation. Only the first `length` frames of the image batch are used for encoding; any additional frames are ignored. If the image batch has fewer than `length` frames, only those frames are used. Only the RGB channels of the image are encoded. The encoded latent is then injected into both the `positive` and `negative` conditioning to guide the video's initial appearance, and the clean encoded frames replace the noisy start of the model's output latents.

## Outputs

| Output Name   | Description                                                                                                                       | Data Type    |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| `positive`    | The modified positive conditioning, potentially updated with encoded start image data.                                            | CONDITIONING |
| `negative`    | The modified negative conditioning, potentially updated with encoded start image data.                                            | CONDITIONING |
| `latent`      | Empty video latent. A latent tensor filled with zeros, shaped for the specified dimensions.                                       | LATENT       |
| `cond_latent` | Clean encoded start images, used to replace the noisy start of the model output latents. Empty when no `start_image` is provided. | LATENT       |

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

***

**Source fingerprint (SHA-256):** `7212f0ea912578d3b72dddf1333a20054a881e3f22c2b8abd9645fc21e75a08b`
