工作流 /
图像 /
Ideogram 4.6 精准编辑

Ideogram 4.6 精准编辑
Api Ideogram V4 6 Precise Image Edit
用 Ideogram 4.6 只改动图像的一部分,其余保持原样:把图像 1 和指令一起发送,可选地涂上蒙版并最多附加四张参考图,结果按原图的精确尺寸返回。可用 context window 控件在原始分辨率下编辑大图的某个区域。适合替换产品的材质或颜色、修正照片中的某个细节,以及重复同一编辑而画面其余部分不漂移。
图像
10 个节点 1 个输入 ComfyUI ≥ 0.46.1 ComfyUI 14 KB
节点构成
MarkdownNote
× 3
LoadImage
× 1
BuildJsonPromptIdeogram
× 1
CreateBoundingBoxes
× 1
PreviewAny
× 1
SaveImageAdvanced
× 1
ImageCompare
× 1
IdeogramPreciseEditApi
× 1
官方标注的模型
Ideogram
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "b9a4879b-6e6a-4acb-a0c0-b4f8375f608c",
3 "revision": 0,
4 "last_node_id": 21,
5 "last_link_id": 27,
6 "nodes": [
7 {
8 "id": 2,
9 "type": "LoadImage",
10 "pos": [
11 -670,
12 630
13 ],
14 "size": [
15 390,
16 720
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "IMAGE",
25 "type": "IMAGE",
26 "links": [
27 21,
28 23,
29 24
30 ]
31 },
32 {
33 "name": "MASK",
34 "type": "MASK",
35 "links": null
36 }
37 ],
38 "properties": {
39 "Node name for S&R": "LoadImage"
40 },
41 "widgets_values": [
42 "carbon_fibre_controller.png",
43 "image"
44 ],
45 "widgets_values_named": {
46 "image": "carbon_fibre_controller.png",
47 "upload": "image"
48 }
49 },
50 {
51 "id": 3,
52 "type": "BuildJsonPromptIdeogram",
53 "pos": [
54 310,
55 760
56 ],
57 "size": [
58 400,
59 270
60 ],
61 "flags": [],
62 "order": 5,
63 "mode": 0,
64 "inputs": [
65 {
66 "name": "element",
67 "type": "ARRAY",
68 "link": 1
69 }
70 ],
71 "outputs": [
72 {
73 "name": "prompt",
74 "type": "DICT",
75 "links": [
76 4
77 ]
78 }
79 ],
80 "properties": {
81 "Node name for S&R": "BuildJsonPromptIdeogram"
82 },
83 "widgets_values": [
84 "Edit @Image1: change ONLY the two side grip panels of the controller. Replace their carbon-fibre weave\nwith anodised aluminium: a fine bead-blasted, satin metallic surface in deep graphite grey, uniform and\nmatte, with a very subtle micro-texture, softly diffused anisotropic highlight running along the length\nof each grip, and crisp machined bevels where the panels meet the body. The metal must read as one solid\nmachined part, not a wrap or a sticker: no carbon weave, no fabric, no brushed lines crossing the shape.\nKeep the lighting exactly as shot: the existing cool rim light from the upper right produces one soft\nelongated highlight ridge per grip, nothing new is lit. The glossy black centre body, the joysticks,\nbuttons, D-pad, centre touchpad, seams, screws, every reflection and the entire background stay\npixel-identical and untouched. No text, no logo, no scratches, no fingerprints.",
85 "",
86 "none",
87 "",
88 "",
89 "",
90 []
91 ],
92 "widgets_values_named": {
93 "high_level_description": "Edit @Image1: change ONLY the two side grip panels of the controller. Replace their carbon-fibre weave\nwith anodised aluminium: a fine bead-blasted, satin metallic surface in deep graphite grey, uniform and\nmatte, with a very subtle micro-texture, softly diffused anisotropic highlight running along the length\nof each grip, and crisp machined bevels where the panels meet the body. The metal must read as one solid\nmachined part, not a wrap or a sticker: no carbon weave, no fabric, no brushed lines crossing the shape.\nKeep the lighting exactly as shot: the existing cool rim light from the upper right produces one soft\nelongated highlight ridge per grip, nothing new is lit. The glossy black centre body, the joysticks,\nbuttons, D-pad, centre touchpad, seams, screws, every reflection and the entire background stay\npixel-identical and untouched. No text, no logo, no scratches, no fingerprints.",
94 "background": "",
95 "style": "none",
96 "aesthetics": "",
97 "lighting": "",
98 "medium": "",
99 "color_palette": []
100 }
101 },
102 {
103 "id": 4,
104 "type": "CreateBoundingBoxes",
105 "pos": [
106 -190,
107 630
108 ],
109 "size": [
110 470,
111 720
112 ],
113 "flags": [],
114 "order": 4,
115 "mode": 0,
116 "inputs": [
117 {
118 "name": "background",
119 "shape": 7,
120 "type": "IMAGE",
121 "link": 21
122 },
123 {
124 "name": "bboxes",
125 "shape": 7,
126 "type": "BOUNDING_BOX,ARRAY,STRING",
127 "link": null
128 }
129 ],
130 "outputs": [
131 {
132 "name": "preview",
133 "type": "IMAGE",
134 "links": null
135 },
136 {
137 "name": "bboxes",
138 "type": "BOUNDING_BOX",
139 "links": null
140 },
141 {
142 "name": "elements",
143 "type": "ARRAY",
144 "links": [
145 1
146 ]
147 }
148 ],
149 "properties": {
150 "Node name for S&R": "CreateBoundingBoxes"
151 },
152 "widgets_values": [
153 1536,
154 2720,
155 [],
156 []
157 ],
158 "widgets_values_named": {
159 "width": 1536,
160 "height": 2720,
161 "editor_state": [],
162 "last_incoming": []
163 },
164 "color": "#322",
165 "bgcolor": "#533"
166 },
167 {
168 "id": 5,
169 "type": "PreviewAny",
170 "pos": [
171 750,
172 760
173 ],
174 "size": [
175 430,
176 400
177 ],
178 "flags": [],
179 "order": 6,
180 "mode": 0,
181 "inputs": [
182 {
183 "name": "source",
184 "type": "*",
185 "link": 4
186 }
187 ],
188 "outputs": [
189 {
190 "name": "STRING",
191 "type": "STRING",
192 "links": [
193 26
194 ]
195 }
196 ],
197 "properties": {
198 "Node name for S&R": "PreviewAny"
199 },
200 "widgets_values": [],
201 "widgets_values_named": []
202 },
203 {
204 "id": 7,
205 "type": "SaveImageAdvanced",
206 "pos": [
207 1680,
208 630
209 ],
210 "size": [
211 440,
212 520
213 ],
214 "flags": [],
215 "order": 8,
216 "mode": 0,
217 "inputs": [
218 {
219 "name": "images",
220 "type": "IMAGE",
221 "link": 25
222 }
223 ],
224 "outputs": [
225 {
226 "name": "images",
227 "type": "IMAGE",
228 "links": [
229 8
230 ]
231 }
232 ],
233 "properties": [],
234 "widgets_values": [
235 "api_ideogram_v4_6_precise_image_edit",
236 "png",
237 "8-bit",
238 "sRGB",
239 "auto"
240 ],
241 "widgets_values_named": {
242 "filename_prefix": "api_ideogram_v4_6_precise_image_edit",
243 "format": "png",
244 "format.bit_depth": "8-bit",
245 "format.input_color_space": "sRGB",
246 "format.channels": "auto"
247 }
248 },
249 {
250 "id": 8,
251 "type": "ImageCompare",
252 "pos": [
253 2170,
254 630
255 ],
256 "size": [
257 540,
258 530
259 ],
260 "flags": [],
261 "order": 9,
262 "mode": 0,
263 "inputs": [
264 {
265 "name": "image_a",
266 "shape": 7,
267 "type": "IMAGE",
268 "link": 23
269 },
270 {
271 "name": "image_b",
272 "shape": 7,
273 "type": "IMAGE",
274 "link": 8
275 }
276 ],
277 "outputs": [],
278 "properties": {
279 "Node name for S&R": "ImageCompare"
280 },
281 "widgets_values": [],
282 "widgets_values_named": []
283 },
284 {
285 "id": 18,
286 "type": "MarkdownNote",
287 "pos": [
288 -180,
289 1590
290 ],
291 "size": [
292 470,
293 140
294 ],
295 "flags": [],
296 "order": 1,
297 "mode": 0,
298 "inputs": [],
299 "outputs": [],
300 "properties": [],
301 "widgets_values": [
302 "- 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"
303 ],
304 "widgets_values_named": {
305 "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"
306 },
307 "color": "#222",
308 "bgcolor": "#000"
309 },
310 {
311 "id": 19,
312 "type": "MarkdownNote",
313 "pos": [
314 -1140,
315 630
316 ],
317 "size": [
318 400,
319 300
320 ],
321 "flags": [],
322 "order": 2,
323 "mode": 0,
324 "inputs": [],
325 "outputs": [],
326 "properties": [],
327 "widgets_values": [
328 "## Input Asset\n\n- [carbon_fibre_controller.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/carbon_fibre_controller.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"
329 ],
330 "widgets_values_named": {
331 "text": "## Input Asset\n\n- [carbon_fibre_controller.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/carbon_fibre_controller.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"
332 },
333 "color": "#222",
334 "bgcolor": "#000"
335 },
336 {
337 "id": 20,
338 "type": "IdeogramPreciseEditApi",
339 "pos": [
340 1230,
341 630
342 ],
343 "size": [
344 400,
345 316
346 ],
347 "flags": [],
348 "order": 7,
349 "mode": 0,
350 "inputs": [
351 {
352 "name": "model.images.image_1",
353 "type": "IMAGE",
354 "link": 24
355 },
356 {
357 "name": "model.images.image_2",
358 "shape": 7,
359 "type": "IMAGE",
360 "link": null
361 },
362 {
363 "name": "model.prompt",
364 "type": "STRING",
365 "widget": {
366 "name": "model.prompt"
367 },
368 "link": 26
369 },
370 {
371 "name": "model.context_window_bboxes",
372 "shape": 7,
373 "type": "BOUNDING_BOX",
374 "link": null
375 },
376 {
377 "name": "model.mask",
378 "shape": 7,
379 "type": "MASK",
380 "link": null
381 }
382 ],
383 "outputs": [
384 {
385 "name": "IMAGE",
386 "type": "IMAGE",
387 "links": [
388 25
389 ]
390 }
391 ],
392 "properties": {
393 "Node name for S&R": "IdeogramPreciseEditApi"
394 },
395 "widgets_values": [
396 "ideogram-4.6",
397 "",
398 "medium",
399 1496257313,
400 "randomize",
401 "auto",
402 "randomize",
403 2048
404 ],
405 "widgets_values_named": {
406 "model": "ideogram-4.6",
407 "model.prompt": "",
408 "model.quality": "medium",
409 "model.seed": 1496257313,
410 "control_after_generate#2": "randomize",
411 "model.context_window": "auto",
412 "control_after_generate#1": "randomize",
413 "control_after_generate": 2048
414 },
415 "color": "#432",
416 "bgcolor": "#653"
417 },
418 {
419 "id": 21,
420 "type": "MarkdownNote",
421 "pos": [
422 1238.9264643449235,
423 1080.8908963986328
424 ],
425 "size": [
426 394.43923211212143,
427 158.1637813438415
428 ],
429 "flags": [],
430 "order": 3,
431 "mode": 0,
432 "inputs": [],
433 "outputs": [],
434 "title": "Note: context window",
435 "properties": [],
436 "widgets_values": [
437 "# Ideogram 4.6 Precise Edit — `context_window`\n\nEdits **only one region of image 1** at its native resolution. Without it the whole image is capped at ~4 MP (2048×2048), so anything bigger comes back downscaled. With a region, only the region changes, the rest is copied through, and the output keeps the source's exact size.\n\n| Option | Uses | Effect |\n|---|---|---|\n| `none` | — | Whole image, downscaled above ~4 MP. Default. |\n| `auto` | `context_window_mask` | Fits a region around the white mask area. Mask > 4 MP falls back to `none`. |\n| `custom` | `context_window_bboxes` | Region = union of your boxes. Sides under 256 px are padded to 256. |\n\nRegion must be 256–4608 px per side, ≤ 4 MP, ≤ 6:1, inside image 1. Max 4 reference images, 3 with a mask. Price is unchanged — one image at the chosen `quality`.\n"
438 ],
439 "widgets_values_named": {
440 "text": "# Ideogram 4.6 Precise Edit — `context_window`\n\nEdits **only one region of image 1** at its native resolution. Without it the whole image is capped at ~4 MP (2048×2048), so anything bigger comes back downscaled. With a region, only the region changes, the rest is copied through, and the output keeps the source's exact size.\n\n| Option | Uses | Effect |\n|---|---|---|\n| `none` | — | Whole image, downscaled above ~4 MP. Default. |\n| `auto` | `context_window_mask` | Fits a region around the white mask area. Mask > 4 MP falls back to `none`. |\n| `custom` | `context_window_bboxes` | Region = union of your boxes. Sides under 256 px are padded to 256. |\n\nRegion must be 256–4608 px per side, ≤ 4 MP, ≤ 6:1, inside image 1. Max 4 reference images, 3 with a mask. Price is unchanged — one image at the chosen `quality`.\n"
441 },
442 "color": "#222",
443 "bgcolor": "#000"
444 }
445 ],
446 "links": [
447 [
448 4,
449 3,
450 0,
451 5,
452 0,
453 "DICT"
454 ],
455 [
456 8,
457 7,
458 0,
459 8,
460 1,
461 "IMAGE"
462 ],
463 [
464 21,
465 2,
466 0,
467 4,
468 0,
469 "IMAGE"
470 ],
471 [
472 23,
473 2,
474 0,
475 8,
476 0,
477 "IMAGE"
478 ],
479 [
480 1,
481 4,
482 2,
483 3,
484 0,
485 "ARRAY"
486 ],
487 [
488 25,
489 20,
490 0,
491 7,
492 0,
493 "IMAGE"
494 ],
495 [
496 24,
497 2,
498 0,
499 20,
500 0,
501 "IMAGE"
502 ],
503 [
504 26,
505 5,
506 0,
507 20,
508 2,
509 "STRING"
510 ]
511 ],
512 "groups": [],
513 "config": [],
514 "extra": {
515 "ds": {
516 "scale": 0.40520930232558294,
517 "offset": [
518 1592.379301564676,
519 265.66460624034465
520 ]
521 },
522 "frontendVersion": "1.59.1"
523 },
524 "version": 0.4
525}