视频|MiniMax Hailuo 视频生成
Text, first-frame, and first+last frame video in one node
- 首帧图
- 尾帧图
- 📁_本地保存路径
- 🆔_任务ID
- 🔗_视频云端直链
- 📄_完整日志
- 🎬_视频输出
MiniMax Hailuo is one of the closed Chinese video services the community points at in "what made this?" threads, and this node brings three of its modes into one canvas: text-to-video, first-frame image-to-video, and first+last-frame video (bookend a clip with two images). It defaults to MiniMax-Hailuo-2.3, with MiniMax-Hailuo-02 as the alternative - and the tooltip drops the one rule you need to remember: first+last-frame mode requires switching to the 02 model. Leave it on 2.3 and the mode selector will fight you.
The pack's README mentions something worth knowing about this integration: the node auto-validates upstream limits like the 10-second/1080P cap and the tail-frame rule, so it refuses early instead of burning money on a request Hailuo would reject anyway. That's a small mercy in a pack where most failure handling is "check the log."
How it works
生成模式 picks text2video, image2video (needs 首帧图), or first+last-frame (needs both 首帧图 and 尾帧图). 提示词优化 defaults to on - Hailuo's own prompt_optimizer, which rewrites your prompt server-side and generally helps more than it hurts. The node submits to MiniMax's video endpoint, polls, downloads, and returns the standard five outputs: 🎬_视频输出, 📁_本地保存路径, 🆔_任务ID, 🔗_视频云端直链, 📄_完整日志.
The inputs that matter
生成模式- text2video / image2video / first+last-frame.模型版本- 2.3 for text and first-frame; switch to 02 for first+last-frame.生成指令- subject, action, camera, style. The default cinematic template is a fine base.视频时长- 6s or 10s (the 10s/1080P cap is the auto-validation mentioned above).分辨率- 768P default; 1080P is slower and pricier.首帧图/尾帧图- required per mode, as above.
Install and first run
cd ComfyUI/custom_nodes
git clone https://github.com/htrert/ComfyUI-Tikpan-Pro
Restart (or Manager → "Tikpan"), paste your sk- key from https://tikpan.com, and for the simplest test set text2video + 6s + 768P. Once that renders, try first-frame with a good still - image-to-video is where Hailuo earns its reputation.
Common issues
The pack-wide failure family (401/402/429, task timeouts with recovery via 任务ID, charges-with-no-file - check 完整日志). Hailuo-specific: the model/mode mismatch is the classic newbie trap (first+last-frame on 2.3), and trying to exceed the 10-second/1080P ceiling gets you a rejection rather than a graceful crop - that's the auto-validation doing its job, so pick a compliant config. Preview problems are usually local, not the model's fault: if the VIDEO output won't render but 本地保存路径 has a file, your ComfyUI just lacks a video-preview extension.
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| 💰_福利_💰 | COMBO | 1 options: 🔥 0.6元RMB兑1美元余额 | 全网底价 👉 https://tikpan.com | |
| 获取密钥请访问 | COMBO | 1 options: 👉 https://tikpan.com (官方授权Key获取点) | |
| API_密钥 | STRING | sk- | Tikpan 平台的 API 密钥,以 sk- 开头,从 https://tikpan.com 获取 |
| 生成模式 | COMBO | 文生视频|text2video | MiniMax/Hailuo 视频模式:文生、首帧图生、首尾帧 |
| 模型版本 | COMBO | MiniMax-Hailuo-2.3 最新质量|MiniMax-Hailuo-2.3 | 默认使用 MiniMax-Hailuo-2.3;首尾帧模式请切换 MiniMax-Hailuo-02 |
| 生成指令 | STRING | A cinematic short video, smooth camera movement, realistic lighting, high detail. | 描述视频主体、动作、镜头、风格,推荐英文或中英混合 |
| 视频时长 | COMBO | 6秒|6 | MiniMax/Hailuo duration 参数 |
| 分辨率 | COMBO | 768P | MiniMax/Hailuo resolution 参数;1080P 更慢更贵 |
| 首帧图opt | IMAGE | 图生视频/首尾帧模式必填:视频第一帧 | |
| 尾帧图opt | IMAGE | 首尾帧模式必填:视频最后一帧 | |
| 提示词优化opt | BOOLEAN | true | MiniMax prompt_optimizer 参数 |
| 中转站地址opt | COMBO | https://tikpan.com | Tikpan 中转站地址,一般保持默认即可 |
| 最长等待秒数opt | INT | 120060–7200 | 等待视频生成完成的最长秒数 |
| 查询间隔秒数opt | INT | 85–60 | 轮询任务状态的间隔秒数 |
| 校验HTTPS证书opt | BOOLEAN | false | 默认关闭以兼容部分网络;遇到 SSL 问题可保持关闭 |
| 跳过错误opt | BOOLEAN | false | 开启后异常时返回空,不打断后续工作流 |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| 📁_本地保存路径 | STRING | — |
| 🆔_任务ID | STRING | — |
| 🔗_视频云端直链 | STRING | — |
| 📄_完整日志 | STRING | — |
| 🎬_视频输出 | VIDEO | — |