> ## 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.

# MiniMaxH3ImageToVideo - ComfyUI Built-in Node Documentation

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

This node prepares the conditioning and empty latent needed to generate a video with the MiniMax H3 model. It takes a text prompt and, optionally, images for the first and/or last frame of the video, and converts them into model inputs. Keyframe images are resized, encoded, and attached to the conditioning at the start and end of the video.

## Inputs

| Parameter     | Description                                                                                                                                                                          | Data Type | Required | Range                           |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | -------- | ------------------------------- |
| `clip`        | CLIP model used to tokenize the prompt and encode the keyframe images into conditioning.                                                                                             | CLIP      | Yes      |                                 |
| `vae`         | VAE model used to encode the keyframe images into latent space when keyframe images are provided.                                                                                    | VAE       | Yes      |                                 |
| `prompt`      | Text prompt describing the video to generate. Supports multiple lines and dynamic prompts.                                                                                           | STRING    | Yes      |                                 |
| `width`       | Width of the video in pixels (default: 1344).                                                                                                                                        | INT       | Yes      | 32 to MAX\_RESOLUTION (step 32) |
| `height`      | Height of the video in pixels (default: 768).                                                                                                                                        | INT       | Yes      | 32 to MAX\_RESOLUTION (step 32) |
| `length`      | Frame count at 24 fps, snapped up to the model's 17k+5 grid (124 = \~5s; trained range is \~124-362, longer is untested) (default: 124).                                             | INT       | Yes      | 5 to 3600 (step 17)             |
| `first_frame` | Optional image used as the first frame of the video. It is stretched to the full canvas size, so its aspect ratio is not preserved. Only the first image of the input batch is used. | IMAGE     | No       |                                 |
| `last_frame`  | Optional image used as the last frame of the video. It is cropped to cover the canvas while preserving its aspect ratio. Only the first image of the input batch is used.            | IMAGE     | No       |                                 |

When `first_frame` and/or `last_frame` are provided, the keyframe images are encoded with the VAE and attached to the conditioning at frame 0 and at the final frame, respectively. When neither is provided, the node works from the prompt alone.

## Outputs

| Output Name | Description                                                                                                                                        | Data Type    |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| `positive`  | Conditioning containing the encoded prompt and, when keyframe images are provided, the encoded keyframes and frame count for the MiniMax H3 model. | CONDITIONING |
| `latent`    | Empty latent representing the video to be generated, with the requested width, height, and frame count.                                            | 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/MiniMaxH3ImageToVideo/en.md)

***

**Source fingerprint (SHA-256):** `46efc87bd46f4a86cb6df37c75f960419a2a98b34480e7dc0023c9d87903870b`
