> ## 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：ComfyUI 编辑

> 使用 ComfyUI 中的 MiniMax H3 Max 编辑 API 节点，在已完成片段中替换角色、重新构图、延长或插入镜头、对口型，并环绕相机。

六个 MiniMax H3 Max 编辑节点以视频或静态图像为起点，并对该素材进行编辑。与其他 H3 API 节点一样，它们通过你的 Comfy API 账户运行，于 ComfyUI 0.44.0 中加入。

其中三个自带工作流模板：**Cast Swap**（`api_minimax_h3_max_recast`）、**Aspect Ratio Reframe**（`api_minimax_h3_max_reframe`）和 **Camera Control**（`api_minimax_h3_max_camera_control`）。其余三个位于节点库中的 **合作节点 > 视频 > MiniMax** 分类下，可直接拖入你的工作流。前两个模板见下文；[Camera Control 模板](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_max_camera_control.json)会让相机围绕静态图像环绕，并为片段配上音乐。

如需使用 MiniMax H3、H3 Max 和 H3 Max Turbo 生成，请参阅 [MiniMax H3 API 视频生成](https://docs.comfy.org/zh/tutorials/partner-nodes/minimax/minimax-h3.md)。

> [!TIP]
>
> 使用 API 节点需要保证你已经正常登录，并在受许可的网络环境下使用，请参考[API 节点总览](https://docs.comfy.org/zh/tutorials/partner-nodes/overview.md)部分文档来了解使用 API 节点的具体使用要求。

> [!TIP]
>
> > [tab] 本地用户
> >
> > 请确保你的 ComfyUI 已经更新。
> >
> > * [ComfyUI 下载](https://www.comfy.org/download)
> > * [ComfyUI 更新教程](https://docs.comfy.org/zh/installation/update_comfyui.md)
> >
> > 本指南里的工作流可以在[工作流模板](https://docs.comfy.org/zh/interface/features/template.md)中找到。如果找不到，可能是 ComfyUI 没有更新。
> >
> > 如果加载工作流时有节点缺失，可能原因有：
> >
> > 1. 你用的不是最新版（每夜版）。
> > 2. 启动时有些节点导入失败。
>
> > [tab] 云端用户
> >
> > * [Cloud](https://cloud.comfy.org) 会在 ComfyUI 稳定版本发布后更新。
> >
> > 所以，如果你发现本文档中有任何核心节点缺失，可能是因为新核心节点尚未在最新稳定版中发布。请等待下一个稳定版发布。

## MiniMax H3 Max：角色替换

无需重新拍摄，就能替换已完成视频片段中的人物：Recast 节点会保留动作、构图、剪辑和原始音频，并根据你的参考照片生成新的人物。

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

> [card] [在 Comfy Cloud 上运行](https://cloud.comfy.org/?template=api_minimax_h3_max_recast\&utm_source=docs\&utm_medium=referral\&utm_campaign=minimax-h3-api)
>
> 在 Comfy Cloud 中打开

> [card] [下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_max_recast.json)
>
> 下载 JSON，或在模板库中搜索 "Cast Swap: MiniMax H3 Max"

> [card] [来源片段：ad\_video\_demo.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/ad_video_demo.mp4)
>
> 该工作流使用的来源片段，也可以使用你自己的片段。

> [card] [替换人物：woman\_in\_red.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/woman_in_red.png)
>
> 新人物的人像参考照片，也可以使用你自己的照片。

加载你自己的片段，并连接一到四张照片，每个新人物一张。默认情况下，照片会从左到右依次替换片段中的主要人物，因此请按你想要的顺序连接它们。提示词是可选的：用 `@Image1` 到 `@Image4` 指代照片，说明谁替换谁，以及任何必须保持不变的内容。

* **来源片段**：时长 5 至 30 秒，单个镜头不超过 15 秒，宽高比在 0.4 到 2.5 之间
* **参考照片**：至少 256 x 256 像素，最多四张
* **分辨率**：768P 或 1080P
* **增强真实感**：默认关闭。开启后可获得更自然的皮肤质感，并更好地融入场景

## MiniMax H3 Max：宽高比重构

将片段适配到不同的宽高比，同时不裁剪主体。来源片段在新的画布上保留其位置、时间与音频，由模型生成周围的画面。

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

> [card] [在 Comfy Cloud 上运行](https://cloud.comfy.org/?template=api_minimax_h3_max_reframe\&utm_source=docs\&utm_medium=referral\&utm_campaign=minimax-h3-api)
>
> 在 Comfy Cloud 中打开

> [card] [下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_minimax_h3_max_reframe.json)
>
> 下载 JSON，或在模板库中搜索“Aspect Ratio Reframe: MiniMax H3 Max”

> [card] [来源片段：futurist\_pilot.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/futurist_pilot.mp4)
>
> 该工作流使用的来源片段，也可以使用你自己的片段。

内置演示将一段竖直人像片段转换为 16:9 画面。加载你自己的片段，选择目标宽高比与分辨率，并用提示词描述新区域中填充的内容，例如延续主体两侧已有的背景。

* **来源片段**：0.5 至 300 秒
* **宽高比**：16:9、9:16、1:1、4:3、3:4、21:9 或 9:21
* **分辨率**：480P、768P 或 1080P

## MiniMax H3 Max 编辑节点

| 节点 | 功能 | 起始媒体 |
| :- | :- | :- |
| **MiniMax H3 Max Recast** | 用参考照片中的人物替换视频中的人物，保留来源视频的运动、相机、剪辑和声音 | 5-30 秒视频，1-4 张照片 |
| **MiniMax H3 Max Extend Video** | 用提示词中描述的新素材延续视频 | 1.625-60 秒视频，可选 H3 Max 或 H3 Max Turbo |
| **MiniMax H3 Max Reframe Video** | 将视频适配到新的比例，并生成其周围区域，保留时间节奏和声音 | 0.5-300 秒视频 |
| **MiniMax H3 Max Insert Video** | 用新生成的场景替换两个时间戳之间的片段 | 最长 60 秒的视频，外加起始时间和恢复时间 |
| **MiniMax H3 Max Lip Sync** | 让静态图像动起来，使嘴型跟随音频轨道 | 一张图像，5-899 秒音频 |
| **MiniMax H3 Max Camera Control** | 让相机围绕静态图像中的主体环绕运动 | 一张图像，外加结束角度和距离 |

在 Recast、Extend Video 和 Insert Video 的提示词中，请以 `@Image1`、`@Video1` 或 `@Audio1` 指代已连接的参考，编号遵循连接顺序。Recast 检查 `@Image` 标签，Extend Video 检查 `@Audio` 标签，Insert Video 检查 `@Image` 和 `@Video` 标签；受检查类型的标签若指向超出该类型已连接的参考数量，运行将因错误而停止，其他类型则原样传递。[Reference to Video](https://docs.comfy.org/zh/tutorials/partner-nodes/minimax/minimax-h3.md#minimax-h3-参考转视频) 生成节点会解析这三种标签。

各节点和各分辨率的费率见 [Minimax 价格表](https://docs.comfy.org/zh/tutorials/partner-nodes/pricing.md)。


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