ComfyPilotComfyPilot
工作流 / 图像 / Grok:图像编辑
Grok:图像编辑

Grok:图像编辑

Grok: Image Edit

上传图片,使用 Grok 模型编辑,生成更具表现力与电影感的修改版本。

图像 4 个节点 1 个输入 2,348 次使用 ComfyUI ≥ 0.21.1 ComfyUI 6 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

节点构成

SaveImage × 1
LoadImage × 1
GrokImageEditNodeV2 × 1
MarkdownNote × 1

官方标注的模型

Grok

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "14af6003-d4ee-4dee-8e3d-cbff2e5519b3",
3 "revision": 0,
4 "last_node_id": 10,
5 "last_link_id": 9,
6 "nodes": [
7 {
8 "id": 3,
9 "type": "SaveImage",
10 "pos": [
11 1924,
12 4620
13 ],
14 "size": [
15 480,
16 430
17 ],
18 "flags": [],
19 "order": 3,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "images",
24 "type": "IMAGE",
25 "link": 8
26 }
27 ],
28 "outputs": [
29 {
30 "name": "images",
31 "type": "IMAGE",
32 "links": null
33 }
34 ],
35 "properties": {
36 "cnr_id": "comfy-core",
37 "ver": "0.11.0",
38 "enableTabs": false,
39 "tabWidth": 65,
40 "tabXOffset": 10,
41 "hasSecondTab": false,
42 "secondTabText": "Send Back",
43 "secondTabOffset": 80,
44 "secondTabWidth": 65,
45 "Node name for S&R": "SaveImage"
46 },
47 "widgets_values": [
48 "Grok"
49 ],
50 "widgets_values_named": {
51 "filename_prefix": "Grok"
52 }
53 },
54 {
55 "id": 6,
56 "type": "LoadImage",
57 "pos": [
58 1138,
59 4620
60 ],
61 "size": [
62 290,
63 400
64 ],
65 "flags": [],
66 "order": 0,
67 "mode": 0,
68 "inputs": [],
69 "outputs": [
70 {
71 "name": "IMAGE",
72 "type": "IMAGE",
73 "links": [
74 9
75 ]
76 },
77 {
78 "name": "MASK",
79 "type": "MASK",
80 "links": null
81 }
82 ],
83 "properties": {
84 "cnr_id": "comfy-core",
85 "ver": "0.11.0",
86 "Node name for S&R": "LoadImage",
87 "enableTabs": false,
88 "tabWidth": 65,
89 "tabXOffset": 10,
90 "hasSecondTab": false,
91 "secondTabText": "Send Back",
92 "secondTabOffset": 80,
93 "secondTabWidth": 65
94 },
95 "widgets_values": [
96 "cyberpunk_robot.png",
97 "image"
98 ],
99 "widgets_values_named": {
100 "image": "cyberpunk_robot.png",
101 "upload": "image"
102 }
103 },
104 {
105 "id": 9,
106 "type": "GrokImageEditNodeV2",
107 "pos": [
108 1476,
109 4620
110 ],
111 "size": [
112 400,
113 262
114 ],
115 "flags": [],
116 "order": 2,
117 "mode": 0,
118 "inputs": [
119 {
120 "name": "model.images.image_1",
121 "type": "IMAGE",
122 "link": 9
123 },
124 {
125 "name": "model.images.image_2",
126 "shape": 7,
127 "type": "IMAGE",
128 "link": null
129 }
130 ],
131 "outputs": [
132 {
133 "name": "IMAGE",
134 "type": "IMAGE",
135 "links": [
136 8
137 ]
138 }
139 ],
140 "properties": {
141 "cnr_id": "comfy-core",
142 "ver": "0.34.0",
143 "Node name for S&R": "GrokImageEditNodeV2"
144 },
145 "widgets_values": [
146 "Keep the original robot design and framing.\nTransform the scene into a cyberpunk night environment.\nReplace the lighting with high-contrast neon lighting, including blue and orange accent lights.\nAdd glowing light strips and illuminated panels on the robot’s body and fingers.\nDarken the background significantly, with subtle smoke and light bloom effects.\nEnhance metallic reflections and sharp edges to give a high-tech, futuristic feel.\n",
147 "grok-imagine-image",
148 "1K",
149 1,
150 "auto",
151 0,
152 "randomize"
153 ],
154 "widgets_values_named": {
155 "prompt": "Keep the original robot design and framing.\nTransform the scene into a cyberpunk night environment.\nReplace the lighting with high-contrast neon lighting, including blue and orange accent lights.\nAdd glowing light strips and illuminated panels on the robot’s body and fingers.\nDarken the background significantly, with subtle smoke and light bloom effects.\nEnhance metallic reflections and sharp edges to give a high-tech, futuristic feel.\n",
156 "model": "grok-imagine-image",
157 "model.resolution": "1K",
158 "model.number_of_images": 1,
159 "model.aspect_ratio": "auto",
160 "seed": 0,
161 "control_after_generate": "randomize"
162 },
163 "color": "#432",
164 "bgcolor": "#653"
165 },
166 {
167 "id": 10,
168 "type": "MarkdownNote",
169 "pos": [
170 790,
171 4620
172 ],
173 "size": [
174 300,
175 290
176 ],
177 "flags": [],
178 "order": 1,
179 "mode": 0,
180 "inputs": [],
181 "outputs": [],
182 "title": "Note: Input Asset",
183 "properties": [],
184 "widgets_values": [
185 "## Input Asset\n\n- [cyberpunk_robot.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/cyberpunk_robot.png)\n\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"
186 ],
187 "widgets_values_named": {
188 "text": "## Input Asset\n\n- [cyberpunk_robot.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/cyberpunk_robot.png)\n\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"
189 },
190 "color": "#222",
191 "bgcolor": "#000"
192 }
193 ],
194 "links": [
195 [
196 8,
197 9,
198 0,
199 3,
200 0,
201 "IMAGE"
202 ],
203 [
204 9,
205 6,
206 0,
207 9,
208 0,
209 "IMAGE"
210 ]
211 ],
212 "groups": [],
213 "config": [],
214 "extra": {
215 "ds": {
216 "scale": 0.6422348426084583,
217 "offset": [
218 -114.18677781996438,
219 -4195.133264467925
220 ]
221 },
222 "frontendVersion": "1.51.9",
223 "workflowRendererVersion": "LG",
224 "VHS_latentpreview": false,
225 "VHS_latentpreviewrate": 0,
226 "VHS_MetadataImage": true,
227 "VHS_KeepIntermediate": true
228 },
229 "version": 0.4
230}