本 ComfyUI 工作流将两张静态图片(首帧和末帧)转化为一段平滑动画视频,使用 MiniMax H3(海螺-03)首末帧 API。两个 LoadImage 节点分别加载起始和结束图片,输入到 MinimaxHailuo03FirstLastFrameNode 节点,该节点将图片发送至 MiniMax 服务预测中间帧。节点返回生成的序列,SaveVideo 节点按设定帧率编码为视频文件。
技术上,MinimaxHailuo03FirstLastFrameNode 通过 API 调用 MiniMax H3 的首末帧转视频接口,根据两张输入图片内容预测时序一致的中间帧。由于运动由你的首末帧直接引导,无需训练或手动关键帧,即可获得连贯过渡。非常适合前后对比、场景转场、快速动画分镜等需要主体一致和可控起止状态的场景。
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
常见问题














