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

# MiniMax H3 API Video Generation in ComfyUI

> Learn how to use the MiniMax H3 API nodes in ComfyUI with cloud workflows for text-to-video, first/last-frame video, and reference-to-video, all with native stereo audio

[MiniMax H3](https://www.minimax.io/blog/minimax-h3) is MiniMax's general-purpose, omni-modal generation model, available in ComfyUI through the MiniMax H3 API nodes. The API workflows run generation on MiniMax's servers, so no model downloads or local GPU is required, and each second of generated video is billed to your Comfy API account.

MiniMax H3 generates video with **native stereo audio**: voice, sound effects, and music are modeled together in a single forward pass instead of being layered on afterward. Output is up to 2K resolution at 5-15 seconds per clip.

<Tip>
  To use the Partner Nodes, you need to ensure that you are logged in properly and using a permitted network environment. Please refer to the [Partner Nodes Overview](/tutorials/partner-nodes/overview) section of the documentation to understand the specific requirements for using the Partner Nodes.
</Tip>

<Tip>
  <Tabs>
    <Tab title="Local users">
      Make sure your ComfyUI is updated.

      * [Download ComfyUI](https://www.comfy.org/download)
      * [Update Guide](/installation/update_comfyui)

      Workflows in this guide can be found in the [Workflow Templates](/interface/features/template).
      If you can't find them in the template, your ComfyUI may be outdated.

      If nodes are missing when loading a workflow, possible reasons:

      1. You are not using the latest ComfyUI version (Nightly version)
      2. Some nodes failed to import at startup
    </Tab>

    <Tab title="Cloud users">
      * [Cloud](https://cloud.comfy.org) will update after ComfyUI stable release.

      So, if you find any core node missing in this document, it might be because the new core nodes have not yet been released in the latest stable version. Please wait for the next stable release.
    </Tab>
  </Tabs>
</Tip>

## MiniMax H3 API workflows

The template library ships with three API example workflows:

* **Text to Video**: Generate videos from text prompts
* **First-Last-Frame to Video**: Generate a video between a first and last frame image
* **Reference to Video**: Generate videos conditioned on reference images, videos, and audio

### MiniMax H3 Text to Video

Generate videos from text prompts through the MiniMax H3 API, with native stereo audio.

<video controls className="w-full aspect-video" src="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_minimax_h3_t2v.mp4" />

<CardGroup cols={2}>
  <Card title="Run in Comfy Cloud" icon="cloud" href="https://cloud.comfy.org/?template=api_minimax_h3_t2v&utm_source=docs&utm_medium=referral&utm_campaign=minimax-h3-api">
    Open in Comfy Cloud
  </Card>

  <Card title="Download Workflow" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_t2v.json">
    Download JSON or search "MiniMax H3 T2V" in Template Library
  </Card>
</CardGroup>

#### Prompting tips

1. **Prompt**: Describe the whole scene and the accompanying audio (dialogue, SFX, music) in one block
2. **Duration**: The duration input supports 5-15 seconds; the workflow ships with a fast 5-second preview
3. **Resolution and ratio**: The API renders at 2K; choose an aspect ratio preset such as `16:9`, `9:16`, or `1:1`
4. **Watermark**: The AIGC watermark is off by default; enable it in the node's advanced settings if required

### MiniMax H3 First-Last-Frame to Video

Generate a video between a first frame and an optional last frame image through the MiniMax H3 API. The aspect ratio of the output follows the input images.

<video controls className="w-full aspect-video" src="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_minimax_h3_flf2v.mp4" />

<CardGroup cols={2}>
  <Card title="Run in Comfy Cloud" icon="cloud" href="https://cloud.comfy.org/?template=api_minimax_h3_flf2v&utm_source=docs&utm_medium=referral&utm_campaign=minimax-h3-api">
    Open in Comfy Cloud
  </Card>

  <Card title="Download Workflow" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_flf2v.json">
    Download JSON or search "MiniMax H3 FLF2V" in Template Library
  </Card>
</CardGroup>

<CardGroup cols={2}>
  <Card title="First Frame: angel-warrior-demon-battle-start.png" icon="image" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/angel-warrior-demon-battle-start.png">
    First frame for the workflow, or use your own image.
  </Card>

  <Card title="Last Frame: angel-warrior-demon-battle-end.png" icon="image" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/angel-warrior-demon-battle-end.png">
    Last frame for the workflow, or use your own image.
  </Card>
</CardGroup>

#### Prompting tips

1. **Frames**: The `first_frame` input is required; `last_frame` is optional. The model generates the motion between them
2. **Aspect ratio**: The output follows the input images, so keep both frames at the same aspect ratio
3. **Image constraints**: Each frame's width and height must be between 256 and 5760 pixels, with an aspect ratio between 2:5 and 5:2
4. **Prompt**: Describe the transition between the frames, and the audio (dialogue, SFX, music) you want

### MiniMax H3 Reference to Video

Generate videos conditioned on reference images, videos, and audio through the MiniMax H3 API.

![MiniMax H3 Reference to Video workflow preview](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_minimax_h3_r2v-1.webp)

<CardGroup cols={2}>
  <Card title="Run in Comfy Cloud" icon="cloud" href="https://cloud.comfy.org/?template=api_minimax_h3_r2v&utm_source=docs&utm_medium=referral&utm_campaign=minimax-h3-api">
    Open in Comfy Cloud
  </Card>

  <Card title="Download Workflow" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_r2v.json">
    Download JSON or search "MiniMax H3 R2V" in Template Library
  </Card>
</CardGroup>

<CardGroup cols={1}>
  <Card title="Reference Image: 9panel_storyboard_golden_hour_clay_court.png" icon="image" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/9panel_storyboard_golden_hour_clay_court.png">
    Storyboard reference for the workflow, or use your own images.
  </Card>
</CardGroup>

#### Prompting tips

1. **Reference by tag**: Refer to each input by its order in the prompt, for example `Image 1`, `Video 1`, or `Audio 1`
2. **Limits**: Up to 9 reference images, 3 reference videos, and 3 reference audio clips. Each video or audio clip must be 2-15 seconds; total reference video and audio is capped at 15 seconds each
3. **Audio needs a visual anchor**: Reference audio cannot be used without at least one reference image or video
4. **Video requirements**: Reference videos must be 23.976-60 FPS
5. **Prompt**: Assign each reference a job (identity, style, motion, voice) and describe the target shot; explicit assignments tend to work much better
