The Multi-Keyframe Video Stitching workflow in ComfyUI is designed to transform a series of static images into a fluid video sequence. Utilizing six key frames, this workflow automatically generates the transitional frames needed to create a seamless video. At the core of this process is the Wan2.2 model, which excels at interpreting motion between images to ensure smooth transitions. The workflow begins with the LoadImage and ImageBatch nodes, which prepare the key frames for processing. The intermediate nodes, such as 11ac0cb0-38fb-41d4-9a55-7c44422b2516 and 1c5f4533-5d1e-4449-97ca-9027b9ea9c11, handle the interpolation of frames by predicting and filling in the motion paths. Finally, the CreateVideo and SaveVideo nodes compile the frames into a cohesive video file.
This workflow is particularly useful for creators looking to produce animations or video content from still images without requiring extensive manual editing. By automating the interpolation process, it saves time and ensures consistency in the motion between frames. The use of advanced nodes and the Wan2.2 model allows for high-quality video output that maintains the integrity of the original images while providing a natural flow of motion.
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 "Multi-Keyframe Video Stitching" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("templates-6-key-frames_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("62", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("146")[0].toFile("output.png"); // SaveVideoThe 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.
FAQ














