ComfyPilotComfyPilot
工作流 / 图像 / Ideogram 4.6:图像编辑
Ideogram 4.6:图像编辑

Ideogram 4.6:图像编辑

Api Ideogram V4 6 Image Edit

用 Ideogram 4.6 改写或编辑图像:既可以直接写提示词,也可以在图上画出方框并为每个方框描述修改内容;最多接受五张输入图像,第一张是被编辑的图像,其余为参考。输出一张图像,可控制尺寸、质量和种子。适合把照片变成海报艺术、替换材质或表面,以及需要多轮重复而不漂移的编辑。

图像 9 个节点 1 个输入 ComfyUI ≥ 0.46.1 ComfyUI 13 KB

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

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

节点构成

MarkdownNote × 2
IdeogramEditApi × 1
LoadImage × 1
BuildJsonPromptIdeogram × 1
CreateBoundingBoxes × 1
PreviewAny × 1
SaveImageAdvanced × 1
ImageCompare × 1

官方标注的模型

Ideogram

工作流 JSON

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

1{
2 "id": "b9a4879b-6e6a-4acb-a0c0-b4f8375f608c",
3 "revision": 0,
4 "last_node_id": 19,
5 "last_link_id": 23,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "IdeogramEditApi",
10 "pos": [
11 1240,
12 630
13 ],
14 "size": [
15 400,
16 410
17 ],
18 "flags": [],
19 "order": 6,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "model.images.image_1",
24 "type": "IMAGE",
25 "link": 22
26 },
27 {
28 "name": "model.images.image_2",
29 "shape": 7,
30 "type": "IMAGE",
31 "link": null
32 },
33 {
34 "name": "model.prompt",
35 "type": "STRING",
36 "widget": {
37 "name": "model.prompt"
38 },
39 "link": 5
40 }
41 ],
42 "outputs": [
43 {
44 "name": "IMAGE",
45 "type": "IMAGE",
46 "links": [
47 7
48 ]
49 }
50 ],
51 "properties": {
52 "Node name for S&R": "IdeogramEditApi"
53 },
54 "widgets_values": [
55 "ideogram-4.6",
56 "",
57 "auto",
58 2048,
59 2048,
60 "medium",
61 "auto",
62 2083442276,
63 "randomize",
64 "randomize",
65 "randomize"
66 ],
67 "widgets_values_named": {
68 "model": "ideogram-4.6",
69 "model.prompt": "",
70 "model.size": "auto",
71 "model.width": 2048,
72 "model.height": 2048,
73 "model.quality": "medium",
74 "model.background": "auto",
75 "model.seed": 2083442276,
76 "control_after_generate#2": "randomize",
77 "control_after_generate#1": "randomize",
78 "control_after_generate": "randomize"
79 },
80 "color": "#432",
81 "bgcolor": "#653"
82 },
83 {
84 "id": 2,
85 "type": "LoadImage",
86 "pos": [
87 -670,
88 630
89 ],
90 "size": [
91 390,
92 720
93 ],
94 "flags": [],
95 "order": 0,
96 "mode": 0,
97 "inputs": [],
98 "outputs": [
99 {
100 "name": "IMAGE",
101 "type": "IMAGE",
102 "links": [
103 21,
104 22,
105 23
106 ]
107 },
108 {
109 "name": "MASK",
110 "type": "MASK",
111 "links": null
112 }
113 ],
114 "properties": {
115 "Node name for S&R": "LoadImage"
116 },
117 "widgets_values": [
118 "retro_crt_room.png",
119 "image"
120 ],
121 "widgets_values_named": {
122 "image": "retro_crt_room.png",
123 "upload": "image"
124 }
125 },
126 {
127 "id": 3,
128 "type": "BuildJsonPromptIdeogram",
129 "pos": [
130 310,
131 760
132 ],
133 "size": [
134 412.0133027708606,
135 461.52031914754195
136 ],
137 "flags": [],
138 "order": 4,
139 "mode": 0,
140 "inputs": [
141 {
142 "name": "element",
143 "type": "ARRAY",
144 "link": 1
145 }
146 ],
147 "outputs": [
148 {
149 "name": "prompt",
150 "type": "DICT",
151 "links": [
152 4
153 ]
154 }
155 ],
156 "properties": {
157 "Node name for S&R": "BuildJsonPromptIdeogram"
158 },
159 "widgets_values": [
160 "Re-render this photograph as a bold illustrated POSTER, keeping the same composition and every object in place: the window with blinds, the wall of retro horror posters, the wooden desk, the beige CRT television, the keyboard, the cassette stacks, the lava lamp, the plastic toys and the controller.\n\nIllustration style: late-90s anime / cyberpunk poster art. Strong and clearly visible black ink linework with confident varying line weight, hatching and cross-hatching in the shadows, screentone halftone dots as shading, flat cel-shaded colour blocks, deep solid blacks, slight ink misregistration and paper grain like a screen print.\n\nContent: the city picture on the CRT screen has erupted into a dinosaur that is bursting head and shoulders out of the broken glass toward the viewer - jaw wide open in a roar, sharp teeth and tongue, one clawed forelimb planted on the desk, shards of glass and thin speed lines flying around it. Its roar explodes into a giant jagged comic burst balloon containing the words \"IDEOGRAM 4.6\" in heavy poster lettering: cream letters, very thick black outline, halftone fill, sized big but fully inside the frame.\n\nLighting and palette: warm orange from the lava lamp on one side, cold cyan glow from the screen on the other, everything else pushed into deep black - high contrast screen-print poster look. No other words anywhere.",
161 "",
162 "none",
163 "",
164 "",
165 "",
166 []
167 ],
168 "widgets_values_named": {
169 "high_level_description": "Re-render this photograph as a bold illustrated POSTER, keeping the same composition and every object in place: the window with blinds, the wall of retro horror posters, the wooden desk, the beige CRT television, the keyboard, the cassette stacks, the lava lamp, the plastic toys and the controller.\n\nIllustration style: late-90s anime / cyberpunk poster art. Strong and clearly visible black ink linework with confident varying line weight, hatching and cross-hatching in the shadows, screentone halftone dots as shading, flat cel-shaded colour blocks, deep solid blacks, slight ink misregistration and paper grain like a screen print.\n\nContent: the city picture on the CRT screen has erupted into a dinosaur that is bursting head and shoulders out of the broken glass toward the viewer - jaw wide open in a roar, sharp teeth and tongue, one clawed forelimb planted on the desk, shards of glass and thin speed lines flying around it. Its roar explodes into a giant jagged comic burst balloon containing the words \"IDEOGRAM 4.6\" in heavy poster lettering: cream letters, very thick black outline, halftone fill, sized big but fully inside the frame.\n\nLighting and palette: warm orange from the lava lamp on one side, cold cyan glow from the screen on the other, everything else pushed into deep black - high contrast screen-print poster look. No other words anywhere.",
170 "background": "",
171 "style": "none",
172 "aesthetics": "",
173 "lighting": "",
174 "medium": "",
175 "color_palette": []
176 },
177 "color": "#322",
178 "bgcolor": "#533"
179 },
180 {
181 "id": 4,
182 "type": "CreateBoundingBoxes",
183 "pos": [
184 -190,
185 630
186 ],
187 "size": [
188 470,
189 720
190 ],
191 "flags": [],
192 "order": 3,
193 "mode": 0,
194 "inputs": [
195 {
196 "name": "background",
197 "shape": 7,
198 "type": "IMAGE",
199 "link": 21
200 },
201 {
202 "name": "bboxes",
203 "shape": 7,
204 "type": "BOUNDING_BOX,ARRAY,STRING",
205 "link": null
206 }
207 ],
208 "outputs": [
209 {
210 "name": "preview",
211 "type": "IMAGE",
212 "links": null
213 },
214 {
215 "name": "bboxes",
216 "type": "BOUNDING_BOX",
217 "links": null
218 },
219 {
220 "name": "elements",
221 "type": "ARRAY",
222 "links": [
223 1
224 ]
225 }
226 ],
227 "properties": {
228 "Node name for S&R": "CreateBoundingBoxes"
229 },
230 "widgets_values": [
231 1024,
232 1024,
233 [],
234 []
235 ],
236 "widgets_values_named": {
237 "width": 1024,
238 "height": 1024,
239 "editor_state": [],
240 "last_incoming": []
241 },
242 "color": "#322",
243 "bgcolor": "#533"
244 },
245 {
246 "id": 5,
247 "type": "PreviewAny",
248 "pos": [
249 750,
250 760
251 ],
252 "size": [
253 430,
254 400
255 ],
256 "flags": [],
257 "order": 5,
258 "mode": 0,
259 "inputs": [
260 {
261 "name": "source",
262 "type": "*",
263 "link": 4
264 }
265 ],
266 "outputs": [
267 {
268 "name": "STRING",
269 "type": "STRING",
270 "links": [
271 5
272 ]
273 }
274 ],
275 "properties": {
276 "Node name for S&R": "PreviewAny"
277 },
278 "widgets_values": [],
279 "widgets_values_named": []
280 },
281 {
282 "id": 7,
283 "type": "SaveImageAdvanced",
284 "pos": [
285 1680,
286 630
287 ],
288 "size": [
289 440,
290 520
291 ],
292 "flags": [],
293 "order": 7,
294 "mode": 0,
295 "inputs": [
296 {
297 "name": "images",
298 "type": "IMAGE",
299 "link": 7
300 }
301 ],
302 "outputs": [
303 {
304 "name": "images",
305 "type": "IMAGE",
306 "links": [
307 8
308 ]
309 }
310 ],
311 "properties": [],
312 "widgets_values": [
313 "api_ideogram_v4_6_image_edit",
314 "png",
315 "8-bit",
316 "sRGB",
317 "auto"
318 ],
319 "widgets_values_named": {
320 "filename_prefix": "api_ideogram_v4_6_image_edit",
321 "format": "png",
322 "format.bit_depth": "8-bit",
323 "format.input_color_space": "sRGB",
324 "format.channels": "auto"
325 }
326 },
327 {
328 "id": 8,
329 "type": "ImageCompare",
330 "pos": [
331 2170,
332 630
333 ],
334 "size": [
335 540,
336 530
337 ],
338 "flags": [],
339 "order": 8,
340 "mode": 0,
341 "inputs": [
342 {
343 "name": "image_a",
344 "shape": 7,
345 "type": "IMAGE",
346 "link": 23
347 },
348 {
349 "name": "image_b",
350 "shape": 7,
351 "type": "IMAGE",
352 "link": 8
353 }
354 ],
355 "outputs": [],
356 "properties": {
357 "Node name for S&R": "ImageCompare"
358 },
359 "widgets_values": [],
360 "widgets_values_named": []
361 },
362 {
363 "id": 18,
364 "type": "MarkdownNote",
365 "pos": [
366 -193.74922430983213,
367 1420.5738815455823
368 ],
369 "size": [
370 470,
371 140
372 ],
373 "flags": [],
374 "order": 1,
375 "mode": 0,
376 "inputs": [],
377 "outputs": [],
378 "properties": [],
379 "widgets_values": [
380 "- Enable [Nodes2.0](https://docs.comfy.org/interface/nodes-2) if you can't see the editor above\n- Load an image and draw BBox captions on it, like \"remove it\", to edit the image.\n"
381 ],
382 "widgets_values_named": {
383 "text": "- Enable [Nodes2.0](https://docs.comfy.org/interface/nodes-2) if you can't see the editor above\n- Load an image and draw BBox captions on it, like \"remove it\", to edit the image.\n"
384 },
385 "color": "#222",
386 "bgcolor": "#000"
387 },
388 {
389 "id": 19,
390 "type": "MarkdownNote",
391 "pos": [
392 -1140,
393 630
394 ],
395 "size": [
396 400,
397 300
398 ],
399 "flags": [],
400 "order": 2,
401 "mode": 0,
402 "inputs": [],
403 "outputs": [],
404 "properties": [],
405 "widgets_values": [
406 "## Input Asset\n\n- [retro_crt_room.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/retro_crt_room.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"
407 ],
408 "widgets_values_named": {
409 "text": "## Input Asset\n\n- [retro_crt_room.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/retro_crt_room.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"
410 },
411 "color": "#222",
412 "bgcolor": "#000"
413 }
414 ],
415 "links": [
416 [
417 4,
418 3,
419 0,
420 5,
421 0,
422 "DICT"
423 ],
424 [
425 8,
426 7,
427 0,
428 8,
429 1,
430 "IMAGE"
431 ],
432 [
433 21,
434 2,
435 0,
436 4,
437 0,
438 "IMAGE"
439 ],
440 [
441 23,
442 2,
443 0,
444 8,
445 0,
446 "IMAGE"
447 ],
448 [
449 1,
450 4,
451 2,
452 3,
453 0,
454 "ARRAY"
455 ],
456 [
457 7,
458 1,
459 0,
460 7,
461 0,
462 "IMAGE"
463 ],
464 [
465 22,
466 2,
467 0,
468 1,
469 0,
470 "IMAGE"
471 ],
472 [
473 5,
474 5,
475 0,
476 1,
477 2,
478 "STRING"
479 ]
480 ],
481 "groups": [],
482 "config": [],
483 "extra": {
484 "ds": {
485 "scale": 0.1890331300645212,
486 "offset": [
487 2981.4171095287898,
488 1496.9143554698214
489 ]
490 },
491 "frontendVersion": "1.59.1"
492 },
493 "version": 0.4
494}