工作流 /
图像 /
Kling 4.0: 图像编辑

Kling 4.0: 图像编辑
Kling 4.0: Image Edit
用 Kling 4.0 Image 改写一张参考人像:保留同一张脸与构图,再用提示词更换发型、妆容、服装或整体造型;最多可加十张参考图并以 @Image1 起依次引用。
图像
4 个节点 1 个输入 ComfyUI ≥ 0.13.0 ComfyUI 5 KB
节点构成
LoadImage
× 1
Kling4ImageNode
× 1
SaveImageAdvanced
× 1
MarkdownNote
× 1
官方标注的模型
KlingKling 4.0
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "ca6c66f1-5cdc-4303-b3b3-bf270acc3f15",
3 "revision": 0,
4 "last_node_id": 4,
5 "last_link_id": 2,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "LoadImage",
10 "pos": [
11 -63.32756709500248,
12 293.0535761769132
13 ],
14 "size": [
15 404.0891902693886,
16 579.8402099819542
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "IMAGE",
25 "type": "IMAGE",
26 "links": [
27 1
28 ]
29 },
30 {
31 "name": "MASK",
32 "type": "MASK",
33 "links": null
34 }
35 ],
36 "properties": {
37 "Node name for S&R": "LoadImage"
38 },
39 "widgets_values": [
40 "kling4_image_edit_portrait.png",
41 "image"
42 ],
43 "widgets_values_named": {
44 "image": "portrait_makeup-graphic_00001_.png [output]",
45 "upload": "image"
46 }
47 },
48 {
49 "id": 2,
50 "type": "Kling4ImageNode",
51 "pos": [
52 388.76162317438616,
53 293.0535761769132
54 ],
55 "size": [
56 400,
57 228
58 ],
59 "flags": [],
60 "order": 2,
61 "mode": 0,
62 "inputs": [
63 {
64 "name": "reference_images.image_1",
65 "shape": 7,
66 "type": "IMAGE",
67 "link": 1
68 },
69 {
70 "name": "reference_images.image_2",
71 "shape": 7,
72 "type": "IMAGE",
73 "link": null
74 }
75 ],
76 "outputs": [
77 {
78 "name": "IMAGE",
79 "type": "IMAGE",
80 "links": [
81 2
82 ]
83 }
84 ],
85 "properties": {
86 "Node name for S&R": "Kling4ImageNode"
87 },
88 "widgets_values": [
89 "Keep the same person exactly: same face, facial features, eye shape, skin tone and centred frontal framing, same plain white backdrop and same head-and-shoulders crop. Restyle into a voluminous fluffy look: huge bouncy brushed-out curls with volume at the crown, soft diffused makeup with a nude lip, and an oversized cream mohair sweater with a chunky knit collar.",
90 "2K",
91 "auto",
92 "disabled",
93 42,
94 "randomize"
95 ],
96 "widgets_values_named": {
97 "prompt": "Keep the same person exactly: same face, facial features, eye shape, skin tone and centred frontal framing, same plain white backdrop and same head-and-shoulders crop. Restyle into a voluminous fluffy look: huge bouncy brushed-out curls with volume at the crown, soft diffused makeup with a nude lip, and an oversized cream mohair sweater with a chunky knit collar.",
98 "resolution": "2K",
99 "aspect_ratio": "auto",
100 "series_amount": "disabled",
101 "seed": 42,
102 "control_after_generate": "randomize"
103 },
104 "color": "#432",
105 "bgcolor": "#653"
106 },
107 {
108 "id": 3,
109 "type": "SaveImageAdvanced",
110 "pos": [
111 836.7616231743862,
112 293.0535761769132
113 ],
114 "size": [
115 617.0040662916185,
116 454.55065086573296
117 ],
118 "flags": [],
119 "order": 3,
120 "mode": 0,
121 "inputs": [
122 {
123 "name": "images",
124 "type": "IMAGE",
125 "link": 2
126 }
127 ],
128 "outputs": [
129 {
130 "name": "images",
131 "type": "IMAGE",
132 "links": null
133 }
134 ],
135 "properties": [],
136 "widgets_values": [
137 "api_kling4_image_edit",
138 "png",
139 "8-bit",
140 "sRGB",
141 "auto"
142 ],
143 "widgets_values_named": {
144 "filename_prefix": "Kling4.0_image_edit",
145 "format": "png",
146 "format.bit_depth": "8-bit",
147 "format.input_color_space": "sRGB",
148 "format.channels": "auto"
149 }
150 },
151 {
152 "id": 4,
153 "type": "MarkdownNote",
154 "pos": [
155 -489.18134633094314,
156 298.87677639479324
157 ],
158 "size": [
159 420,
160 560
161 ],
162 "flags": [],
163 "order": 1,
164 "mode": 0,
165 "inputs": [],
166 "outputs": [],
167 "properties": [],
168 "widgets_values": [
169 "## Input Assets\n\n- [kling4_image_edit_portrait.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/kling4_image_edit_portrait.png)\n\nKeep this reference face in the LoadImage node and change only the clothing, hair or makeup in the prompt. The node passes it in as `@Image1`.\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)\n"
170 ],
171 "widgets_values_named": {
172 "text": "notehee"
173 },
174 "color": "#432",
175 "bgcolor": "#653"
176 }
177 ],
178 "links": [
179 [
180 1,
181 1,
182 0,
183 2,
184 0,
185 "IMAGE"
186 ],
187 [
188 2,
189 2,
190 0,
191 3,
192 0,
193 "IMAGE"
194 ]
195 ],
196 "groups": [],
197 "config": [],
198 "extra": {
199 "ds": {
200 "scale": 0.3918125185712776,
201 "offset": [
202 2078.1779178806364,
203 718.091990679518
204 ]
205 },
206 "frontendVersion": "1.59.1"
207 },
208 "version": 0.4
209}