The Kling O1: Video Edit workflow is designed to transform video editing by leveraging natural language commands. This workflow utilizes the Kling model, allowing users to perform high-quality style transfers, add elements, and modify backgrounds in videos with ease. At the core of this workflow are nodes like LoadImage, SaveVideo, and KlingOmniProEditVideoNode, which facilitate the seamless integration of reference images and videos. The workflow is particularly effective in scenarios where quick and precise video edits are required, making it a valuable tool for both amateur and professional video editors.
Technically, the workflow begins by loading video components using the LoadVideo and GetVideoComponents nodes. Users can input up to four reference images when providing video input, or up to seven when using image input. The KlingOmniProEditVideoNode processes these inputs, applying the desired edits based on natural language commands. Finally, the CreateVideo and SaveVideo nodes compile and save the edited video, ensuring a smooth and efficient editing process. This workflow's ability to interpret and execute complex editing tasks through simple commands makes it a powerful asset in video production.
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 "Kling O1: Video Edit" (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("api_kling_omni_edit_video_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("24", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("3")[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















