
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.
GET https://comfy.org/workflows/download/80434583707e.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "Wan 2.2 14B Fun Inp" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("video_wan2_2_14B_fun_inpaint_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("140", "image", asset) # LoadImage
wf.set_input("99", "text", "your prompt here") # CLIPTextEncode
job = client.run(wf)
for output in job.get_outputs("153"): # SaveVideo
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














