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

# MinimaxHailuo03FirstLastFrameNode - ComfyUI Built-in Node Documentation

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

This node generates a video from a first frame image and an optional last frame image using the MiniMax H3 model. The video follows the aspect ratio of the supplied images and, when a last frame is provided, animates from the first frame toward the last frame.

## Inputs

| Parameter     | Description                                                                                                                                                                                                                                           | Data Type | Required | Range           |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | --------------- |
| `model`       | Model to use for video generation. This combo includes the model choice ("MiniMax H3"), a text prompt describing the video to generate, the output resolution, and the video duration. The prompt must contain at least one non-whitespace character. | COMBO     | Yes      | "MiniMax H3"    |
| `first_frame` | First frame image for the video. The aspect ratio of the generated video follows this image. Must be at least 256x256 pixels with a width-to-height aspect ratio between 0.4 and 2.5.                                                                 | IMAGE     | Yes      | -               |
| `last_frame`  | Optional last frame image for the video. When provided, the video starts from the first frame and ends at this image. Must meet the same size and aspect ratio requirements as `first_frame`.                                                         | IMAGE     | No       | -               |
| `seed`        | Random seed. The same request with the same seed gives similar, but not guaranteed identical, results. Includes a "control after generate" option to randomize after each generation. Default: 42.                                                    | INT       | Yes      | 0 to 4294967295 |
| `watermark`   | Whether to add an AIGC watermark to the video. This is an advanced parameter. Default: False.                                                                                                                                                         | BOOLEAN   | Yes      | True<br />False |

**Note on constraints:**

* The text prompt inside the `model` combo cannot be empty; whitespace-only prompts are rejected.
* Any provided frame image (`first_frame` and, if used, `last_frame`) must be at least 256 pixels wide and 256 pixels tall, with a width-to-height aspect ratio between 0.4 and 2.5 (approximately 2:5 to 5:2).
* `last_frame` is optional. When omitted, the video is generated from the first frame only.
* The aspect ratio of the output video is determined by the supplied images, not by a separate ratio setting.

## Outputs

| Output Name | Description                                                                                          | Data Type |
| ----------- | ---------------------------------------------------------------------------------------------------- | --------- |
| `video`     | The generated video created from the first frame and optional last frame using the MiniMax H3 model. | 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/MinimaxHailuo03FirstLastFrameNode/en.md)

***

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