
This ComfyUI workflow, titled 'Wan 2.2 14B Fun Inp', is designed to generate videos by interpolating between start and end frames using the Wan 2.2 model. The workflow leverages a series of nodes including CLIPLoader, VAELoader, and ModelSamplingSD3 to load and process the input images, while the WanFunInpaintToVideo node plays a crucial role in creating the video by applying inpainting techniques. The workflow is particularly useful for creating seamless transitions in videos, making it ideal for artistic video projects or animations where smooth morphing between frames is desired. The use of advanced nodes like KSamplerAdvanced and VAEDecode ensures high-quality video output, while the inclusion of LoraLoaderModelOnly allows for flexible model adjustments.
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 "Wan 2.2 14B Fun Inp" (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("video_wan2_2_14B_fun_inpaint_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("140", "image", asset); // LoadImage
wf.setInput("99", "text", "your prompt here"); // CLIPTextEncode
const job = await client.run(wf);
await job.getOutputs("153")[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













