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

# MinimaxHailuo03ContextIRNode - ComfyUI Built-in Node Documentation

> This node uses MiniMax H3 Context IR to analyze your text description and any attached media, then produces a stronger, structured video prompt.

This node uses MiniMax H3 Context IR to analyze your text description and any attached media, then produces a stronger, structured video prompt. The returned prompt is designed to be connected to the prompt input of a MiniMax H3 video node; if you attach media there, attach the same media in the same order, because the enhanced prompt refers to media by position.

## Inputs

| Parameter          | Description                                                                                                                                                                                        | Data Type | Required | Range                                                                                         |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | --------------------------------------------------------------------------------------------- |
| `model`            | Model to use for prompt enhancement.                                                                                                                                                               | COMBO     | Yes      | `"MiniMax H3"`                                                                                |
| `prompt`           | Description of the video you intend to generate. Cannot be empty. (default: `""`)                                                                                                                  | STRING    | Yes      | Any text                                                                                      |
| `duration`         | Duration of the video you intend to generate, in seconds (4-15). (default: 5)                                                                                                                      | INT       | Yes      | 4 to 15                                                                                       |
| `ratio`            | Aspect ratio of the video you intend to generate. `"adaptive"` requires at least one image, video, or audio input. (default: `"adaptive"`)                                                         | COMBO     | Yes      | `"adaptive"`<br />`"16:9"`<br />`"4:3"`<br />`"1:1"`<br />`"3:4"`<br />`"9:16"`<br />`"21:9"` |
| `reference_images` | Subject or style reference images, referred to in the prompt as "Image 1".."Image 9" in connection order. Up to 9 images.                                                                          | IMAGE     | No       | 0 to 9 images                                                                                 |
| `reference_videos` | Motion or scene reference videos, referred to in the prompt as "Video 1".."Video 3" in connection order. Up to 3 videos, 2-15 seconds each, 15 seconds in total.                                   | VIDEO     | No       | 0 to 3 videos                                                                                 |
| `reference_audios` | Audio references, referred to in the prompt as "Audio 1".."Audio 3" in connection order. Up to 3 clips, 2-15 seconds each, 15 seconds in total. Cannot be used without a reference image or video. | AUDIO     | No       | 0 to 3 clips                                                                                  |
| `first_frame`      | First frame of the video you intend to generate. Cannot be combined with reference media.                                                                                                          | IMAGE     | No       | Single image                                                                                  |
| `last_frame`       | Last frame of the video you intend to generate. Cannot be combined with reference media.                                                                                                           | IMAGE     | No       | Single image                                                                                  |

### Parameter constraints

* The `prompt`, `duration`, `ratio`, `reference_images`, `reference_videos`, and `reference_audios` inputs are part of the `model` option group.
* `first_frame` and `last_frame` cannot be combined with any reference media.
* `reference_audios` cannot be used unless at least one `reference_image` or `reference_video` is also connected.
* When no frames and no reference media are connected, `ratio` cannot be set to `"adaptive"`.
* Reference videos must be approximately 2-15 seconds each, with a total duration of no more than 15 seconds. Their frame rate must be between 23.9 and 60.5 FPS.
* Reference audios must be approximately 2-15 seconds each, with a total duration of no more than 15 seconds.
* `first_frame`, `last_frame`, and every reference image must be at least 256x256 pixels and have an aspect ratio between 0.4 and 2.5.

## Outputs

| Output Name | Description                                                                                                                                              | Data Type |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `STRING`    | The enhanced, structured video prompt generated by MiniMax H3 Context IR. It can be connected to the prompt input of a MiniMax H3 video generation node. | STRING    |

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

***

**Source fingerprint (SHA-256):** `73015517f9c0f55f0aceeef935508a372e0d95668e4733d1c8100b53e4afa7e2`
