工作流 /
视频 /
Kling 4.0:视频编辑

Kling 4.0:视频编辑
Kling 4.0: Video Edit
使用 Kling 4.0 一次性编辑现有 CLIP:说明要更改的内容并列出必须保留的部分,模型仅重写该部分,同时保持主体、服装、镜头数量、相机运动和时序不变。输出继承输入的长度和比例,立体声音频会重新生成以匹配新场景。非常适合在已剪辑好的素材上更换环境、服装或风格。
视频
4 个节点 1 个输入 196 次使用 ComfyUI ≥ 0.43.0 ComfyUI 10 KB
节点构成
LoadVideo
× 1
Kling4EditVideoNode
× 1
SaveVideo
× 1
MarkdownNote
× 1
官方标注的模型
Kling 4.0
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "0b36af86-a7ff-4b4c-ae99-77096abf0bae",
3 "revision": 0,
4 "last_node_id": 4,
5 "last_link_id": 2,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "LoadVideo",
10 "pos": [
11 80,
12 140
13 ],
14 "size": [
15 330,
16 470
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [
22 {
23 "localized_name": "file",
24 "name": "file",
25 "type": "COMBO",
26 "widget": {
27 "name": "file"
28 },
29 "link": null
30 },
31 {
32 "localized_name": "choose file to upload",
33 "name": "upload",
34 "type": "IMAGEUPLOAD",
35 "widget": {
36 "name": "upload"
37 },
38 "link": null
39 }
40 ],
41 "outputs": [
42 {
43 "localized_name": "VIDEO",
44 "name": "VIDEO",
45 "type": "VIDEO",
46 "links": [
47 1
48 ]
49 }
50 ],
51 "properties": {
52 "Node name for S&R": "LoadVideo"
53 },
54 "widgets_values": [
55 "kling4_gown_input.mp4",
56 "image"
57 ],
58 "widgets_values_named": {
59 "file": "kling4_gown_edit_input.mp4",
60 "upload": "image"
61 }
62 },
63 {
64 "id": 2,
65 "type": "Kling4EditVideoNode",
66 "pos": [
67 560,
68 140
69 ],
70 "size": [
71 400,
72 272
73 ],
74 "flags": [],
75 "order": 1,
76 "mode": 0,
77 "inputs": [
78 {
79 "localized_name": "model",
80 "name": "model",
81 "type": "COMFY_DYNAMICCOMBO_V3",
82 "widget": {
83 "name": "model"
84 },
85 "link": null
86 },
87 {
88 "localized_name": "video_1",
89 "name": "model.video_1",
90 "type": "VIDEO",
91 "link": 1
92 },
93 {
94 "localized_name": "video_2",
95 "name": "model.reference_videos.video_2",
96 "shape": 7,
97 "type": "VIDEO",
98 "link": null
99 },
100 {
101 "localized_name": "image_1",
102 "name": "model.reference_images.image_1",
103 "shape": 7,
104 "type": "IMAGE",
105 "link": null
106 },
107 {
108 "localized_name": "prompt",
109 "name": "model.prompt",
110 "type": "STRING",
111 "widget": {
112 "name": "model.prompt"
113 },
114 "link": null
115 },
116 {
117 "localized_name": "resolution",
118 "name": "model.resolution",
119 "type": "COMBO",
120 "widget": {
121 "name": "model.resolution"
122 },
123 "link": null
124 },
125 {
126 "localized_name": "aspect_ratio",
127 "name": "model.aspect_ratio",
128 "type": "COMBO",
129 "widget": {
130 "name": "model.aspect_ratio"
131 },
132 "link": null
133 },
134 {
135 "localized_name": "seed",
136 "name": "model.seed",
137 "type": "INT",
138 "widget": {
139 "name": "model.seed"
140 },
141 "link": null
142 }
143 ],
144 "outputs": [
145 {
146 "localized_name": "VIDEO",
147 "name": "VIDEO",
148 "type": "VIDEO",
149 "links": [
150 2
151 ]
152 }
153 ],
154 "properties": {
155 "Node name for S&R": "Kling4EditVideoNode"
156 },
157 "widgets_values": [
158 "kling-4.0",
159 "Edit @Video1: replace the frozen lake and the overcast sky with a rainy neon city street at night. Wet asphalt mirroring pink and cyan signage, rain streaks cutting through the light, low mist at street level. Keep the woman, her black tiered gown, the wide black hat, the gloves and jewellery unchanged, keep her movements, the three shots and the camera work exactly as they are, and keep the same rim-light direction so she still reads as a silhouette against the glow. Sound: rain on asphalt and distant traffic replace the wind.",
160 "720p",
161 "adaptive",
162 42,
163 "fixed",
164 "fixed"
165 ],
166 "widgets_values_named": {
167 "model": "kling-4.0",
168 "model.prompt": "Edit @Video1: replace the frozen lake and the overcast sky with a rainy neon city street at night. Wet asphalt mirroring pink and cyan signage, rain streaks cutting through the light, low mist at street level. Keep the woman, her black tiered gown, the wide black hat, the gloves and jewellery unchanged, keep her movements, the three shots and the camera work exactly as they are, and keep the same rim-light direction so she still reads as a silhouette against the glow. Sound: rain on asphalt and distant traffic replace the wind.",
169 "model.resolution": "720p",
170 "model.aspect_ratio": "adaptive",
171 "model.seed": 42,
172 "control_after_generate#1": "fixed",
173 "control_after_generate": "fixed"
174 },
175 "color": "#432",
176 "bgcolor": "#653"
177 },
178 {
179 "id": 3,
180 "type": "SaveVideo",
181 "pos": [
182 1020,
183 140
184 ],
185 "size": [
186 270,
187 106
188 ],
189 "flags": [],
190 "order": 2,
191 "mode": 0,
192 "inputs": [
193 {
194 "localized_name": "video",
195 "name": "video",
196 "type": "VIDEO",
197 "link": 2
198 },
199 {
200 "localized_name": "filename_prefix",
201 "name": "filename_prefix",
202 "type": "STRING",
203 "widget": {
204 "name": "filename_prefix"
205 },
206 "link": null
207 },
208 {
209 "localized_name": "format",
210 "name": "format",
211 "type": "COMFY_DYNAMICCOMBO_V3",
212 "widget": {
213 "name": "format"
214 },
215 "link": null
216 },
217 {
218 "localized_name": "codec",
219 "name": "format.codec",
220 "type": "COMFY_DYNAMICCOMBO_V3",
221 "widget": {
222 "name": "format.codec"
223 },
224 "link": null
225 },
226 {
227 "localized_name": "codec",
228 "name": "codec",
229 "shape": 7,
230 "type": "COMFY_DYNAMICCOMBO_V3",
231 "widget": {
232 "name": "codec"
233 },
234 "link": null
235 }
236 ],
237 "outputs": [
238 {
239 "localized_name": "video",
240 "name": "video",
241 "type": "VIDEO",
242 "links": null
243 }
244 ],
245 "properties": [],
246 "widgets_values": [
247 "video/kling4_video_edit",
248 "mp4",
249 "auto",
250 "auto"
251 ],
252 "widgets_values_named": {
253 "filename_prefix": "video/kling4_edit/kling4_gown_rain",
254 "format": "mp4",
255 "format.codec": "auto",
256 "codec": "auto"
257 }
258 },
259 {
260 "id": 4,
261 "type": "MarkdownNote",
262 "pos": [
263 80,
264 680
265 ],
266 "size": [
267 420,
268 420
269 ],
270 "flags": [],
271 "order": 3,
272 "mode": 0,
273 "inputs": [],
274 "outputs": [],
275 "title": "Note: Input Asset & Editing",
276 "properties": [],
277 "widgets_values": [
278 "**Input Asset**\n\n- [kling4_gown_input.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/kling4_gown_input.mp4) — required workflow input (`input/kling4_gown_input.mp4`, 5 s)\n\n## How to edit\n\nThe prompt must open with `Edit @Video1:` and then name the change; everything after that is your keep-list. Listing what must survive — subject, costume, movement, shot count, camera work, light direction — is what stops the model from quietly redesigning the person or re-staging the camera.\n\nThe output inherits the input: same length, same aspect ratio (`adaptive`), same three shots. Input clips must be 3–30 s. Extra `reference_images` / `reference_videos` inputs can be connected when the new element has to look like something specific (a garment, a product, a location).\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)"
279 ],
280 "widgets_values_named": {
281 "text": "**Input Asset**\n\n- [kling4_gown_input.mp4](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/kling4_gown_input.mp4) — required workflow input (`input/kling4_gown_input.mp4`, 5 s)\n\n## How to edit\n\nThe prompt must open with `Edit @Video1:` and then name the change; everything after that is your keep-list. Listing what must survive — subject, costume, movement, shot count, camera work, light direction — is what stops the model from quietly redesigning the person or re-staging the camera.\n\nThe output inherits the input: same length, same aspect ratio (`adaptive`), same three shots. Input clips must be 3–30 s. Extra `reference_images` / `reference_videos` inputs can be connected when the new element has to look like something specific (a garment, a product, a location).\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)"
282 },
283 "color": "#222",
284 "bgcolor": "#000"
285 }
286 ],
287 "links": [
288 [
289 1,
290 1,
291 0,
292 2,
293 1,
294 "VIDEO"
295 ],
296 [
297 2,
298 2,
299 0,
300 3,
301 0,
302 "VIDEO"
303 ]
304 ],
305 "groups": [],
306 "config": [],
307 "extra": {
308 "ds": {
309 "scale": 0.9,
310 "offset": [
311 416,
312 110
313 ]
314 }
315 },
316 "version": 0.4
317}