> ## 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 Max Editing in ComfyUI

> Swap the cast, reframe, extend or insert shots, lip sync, and orbit the camera in finished clips with the MiniMax H3 Max editing API nodes in ComfyUI.

Six MiniMax H3 Max editing nodes take a video or a still image as their starting point and edit that material. They run through your Comfy API account like the other H3 API nodes, and were added in ComfyUI 0.44.0.

Three of them ship with workflow templates: **Cast Swap** (`api_minimax_h3_max_recast`), **Aspect Ratio Reframe** (`api_minimax_h3_max_reframe`) and **Camera Control** (`api_minimax_h3_max_camera_control`). The other three are in the node library under **Partner Nodes > video > MiniMax**, ready to drop into your own workflow. The first two are walked through below; the [Camera Control template](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_max_camera_control.json) orbits a still image and lays a music bed under the clip.

For generation with MiniMax H3, H3 Max, and H3 Max Turbo, see [MiniMax H3 API Video Generation](https://docs.comfy.org/tutorials/partner-nodes/minimax/minimax-h3.md).

> [!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](https://docs.comfy.org/tutorials/partner-nodes/overview.md) section of the documentation to understand the specific requirements for using the Partner Nodes.

> [!TIP]
>
> > [tab] Local users
> >
> > Make sure your ComfyUI is updated.
> >
> > * [Download ComfyUI](https://www.comfy.org/download)
> > * [Update Guide](https://docs.comfy.org/installation/update_comfyui.md)
> >
> > Workflows in this guide can be found in the [Workflow Templates](https://docs.comfy.org/interface/features/template.md).
> > 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] 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.

## MiniMax H3 Max: Cast Swap

Replace the people in a finished clip without a reshoot: the node keeps the motion, the framing, the cuts and the original audio, and generates the new people from your reference photos.

<video controls src="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_minimax_h3_max_recast.mp4" />

> [card] [Run on Comfy Cloud](https://cloud.comfy.org/?template=api_minimax_h3_max_recast\&utm_source=docs\&utm_medium=referral\&utm_campaign=minimax-h3-api)
>
> Open in Comfy Cloud

> [card] [Download Workflow](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_max_recast.json)
>
> Download JSON or search "Cast Swap: MiniMax H3 Max" in Template Library

> [card] [Source clip: ad\_video\_demo.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/ad_video_demo.mp4)
>
> Source clip for the workflow, or use your own.

> [card] [Replacement person: woman\_in\_red.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/woman_in_red.png)
>
> Reference photo of the new person, or use your own.

Load your own clip and connect one to four photos, one per new person. By default the photos replace the main people in the clip from left to right, so connect them in the order you want. The prompt is optional: name the photos as `@Image1` to `@Image4` and say who becomes whom, plus anything that has to stay the same.

* **Source clip**: 5 to 30 seconds, with no single shot longer than 15 seconds, and an aspect ratio between 0.4 and 2.5
* **Reference photos**: at least 256 x 256 pixels, up to four
* **Resolution**: 768P or 1080P
* **Enhance realism**: off by default. Turn it on for more natural skin texture and a better blend into the scene

## MiniMax H3 Max: Aspect Ratio Reframe

Fit a clip to a different aspect ratio without cropping the subject. The source keeps its position, timing and audio on the new canvas, and the model generates the surrounding picture.

<video controls src="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_minimax_h3_max_reframe.mp4" />

> [card] [Run on Comfy Cloud](https://cloud.comfy.org/?template=api_minimax_h3_max_reframe\&utm_source=docs\&utm_medium=referral\&utm_campaign=minimax-h3-api)
>
> Open in Comfy Cloud

> [card] [Download Workflow](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_max_reframe.json)
>
> Download JSON or search "Aspect Ratio Reframe: MiniMax H3 Max" in Template Library

> [card] [Source clip: futurist\_pilot.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/futurist_pilot.mp4)
>
> Source clip for the workflow, or use your own.

The bundled demo turns a vertical portrait clip into a 16:9 frame. Load your own clip, pick the target aspect ratio and resolution, and use the prompt to describe what fills the new area, for example continuing the background that is already behind the subject on both sides.

* **Source clip**: 0.5 to 300 seconds
* **Aspect ratio**: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 or 9:21
* **Resolution**: 480P, 768P or 1080P

## MiniMax H3 Max editing nodes

| Node | What it does | Starting media |
| :- | :- | :- |
| **MiniMax H3 Max Recast** | Replaces the people in a video with people from reference photos, keeping the motion, camera, cuts and sound of the source | 5-30 second video, 1-4 photos |
| **MiniMax H3 Max Extend Video** | Continues a video with new footage described in the prompt | 1.625-60 second video, on H3 Max or H3 Max Turbo |
| **MiniMax H3 Max Reframe Video** | Fits a video into a new aspect ratio and generates the area around it, keeping timing and sound | 0.5-300 second video |
| **MiniMax H3 Max Insert Video** | Replaces the section between two timestamps with a newly generated scene | Video up to 60 seconds, plus a start and resume time |
| **MiniMax H3 Max Lip Sync** | Animates a still image so the mouth follows an audio track | One image, 5-899 seconds of audio |
| **MiniMax H3 Max Camera Control** | Orbits the camera around the subject in a still image | One image, plus an end angle and distance |

In the Recast, Extend Video and Insert Video prompts, refer to connected references as `@Image1`, `@Video1` or `@Audio1`, numbered in connection order. Recast checks `@Image` tags, Extend Video `@Audio` tags, and Insert Video `@Image` and `@Video` tags; a tag of a checked kind that points past the connected references of that kind stops the run with an error, and other kinds pass through unchanged. The [Reference to Video](https://docs.comfy.org/tutorials/partner-nodes/minimax/minimax-h3.md#minimax-h3-reference-to-video) generation node resolves all three.

Rates per node and resolution are in the [Minimax pricing table](https://docs.comfy.org/tutorials/partner-nodes/pricing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.