ComfyPilotComfyPilot
工作流 / 图像 / MiniMax-H3-Image:图像编辑(API)
MiniMax-H3-Image:图像编辑(API)

MiniMax-H3-Image:图像编辑(API)

MiniMax-H3-Image: Image Edit (API)

通过合作伙伴 API 使用 MiniMax-H3-Image,描述要改的内容即可编辑图像。原图读作 <Picture 1>,只重写指令要求的部分,因此可以替换道具、服装或布景而不破坏画面其余部分。适合增删主体、更换材质,或在成品渲染上调整构图。

图像 4 个节点 1 个输入 ComfyUI ≥ 0.45.1 ComfyUI 7 KB

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

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

节点构成

LoadImage × 1
MinimaxH3ImageNode × 1
SaveImage × 1
MarkdownNote × 1

官方标注的模型

MiniMax H3 Image

工作流 JSON

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

1{
2 "id": "0901dce0-d1c5-4434-bd75-78db450a9c9f",
3 "revision": 0,
4 "last_node_id": 5,
5 "last_link_id": 3,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "LoadImage",
10 "pos": [
11 81.68435146888453,
12 136.02885356594848
13 ],
14 "size": [
15 371.38413260821767,
16 395.86843958897776
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 "surreal_rendering_modern.png",
41 "image"
42 ],
43 "widgets_values_named": {
44 "image": "surreal_rendering_modern.png",
45 "upload": "image"
46 }
47 },
48 {
49 "id": 3,
50 "type": "MinimaxH3ImageNode",
51 "pos": [
52 501.0684840771022,
53 136.02885356594848
54 ],
55 "size": [
56 400,
57 252
58 ],
59 "flags": [],
60 "order": 2,
61 "mode": 0,
62 "inputs": [
63 {
64 "name": "images.image_1",
65 "shape": 7,
66 "type": "IMAGE",
67 "link": 1
68 },
69 {
70 "name": "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 3
82 ]
83 },
84 {
85 "name": "revised_prompt",
86 "type": "STRING",
87 "links": null
88 }
89 ],
90 "properties": {
91 "Node name for S&R": "MinimaxH3ImageNode"
92 },
93 "widgets_values": [
94 "MiniMax-H3-Image",
95 "Add one woman reclining across the sculptural chair in a fashion-editorial pose: she lies back along the chair's curve with her torso twisted toward the camera, one arm thrown up above her head, the other hanging loose toward the floor, chin lifted and eyes closed, long hair falling off the seat, one bare foot pointed. She wears a flowing terracotta silk dress whose skirt spills over the chair and pools on the orange floor, the fabric catching the sun with a soft sheen so the body reads as one long diagonal from the raised wrist to the pointed foot. Add nothing else and keep the monstera plant and the side table with the vase exactly where they are. Keep everything else exactly as it is: the orange walls and floor, the arched window with its bright blue daytime sky and white clouds, the orange furry leaf-shaped object hanging from the coiled cord, the pale sculptural chair, the shadows and the same camera angle.",
96 "2K",
97 "3:4",
98 true,
99 1356705972,
100 "randomize"
101 ],
102 "widgets_values_named": {
103 "model": "MiniMax-H3-Image",
104 "prompt": "Add one woman reclining across the sculptural chair in a fashion-editorial pose: she lies back along the chair's curve with her torso twisted toward the camera, one arm thrown up above her head, the other hanging loose toward the floor, chin lifted and eyes closed, long hair falling off the seat, one bare foot pointed. She wears a flowing terracotta silk dress whose skirt spills over the chair and pools on the orange floor, the fabric catching the sun with a soft sheen so the body reads as one long diagonal from the raised wrist to the pointed foot. Add nothing else and keep the monstera plant and the side table with the vase exactly where they are. Keep everything else exactly as it is: the orange walls and floor, the arched window with its bright blue daytime sky and white clouds, the orange furry leaf-shaped object hanging from the coiled cord, the pale sculptural chair, the shadows and the same camera angle.",
105 "size": "2K",
106 "size.aspect_ratio": "3:4",
107 "enhance_prompt": true,
108 "seed": 1356705972,
109 "control_after_generate": "randomize"
110 },
111 "color": "#432",
112 "bgcolor": "#653"
113 },
114 {
115 "id": 4,
116 "type": "SaveImage",
117 "pos": [
118 949.0684840771022,
119 136.02885356594848
120 ],
121 "size": [
122 437.74378480347946,
123 367.0786672931771
124 ],
125 "flags": [],
126 "order": 3,
127 "mode": 0,
128 "inputs": [
129 {
130 "name": "images",
131 "type": "IMAGE",
132 "link": 3
133 }
134 ],
135 "outputs": [
136 {
137 "name": "images",
138 "type": "IMAGE",
139 "links": null
140 }
141 ],
142 "properties": [],
143 "widgets_values": [
144 "api_minimax_h3_image_image_edit"
145 ],
146 "widgets_values_named": {
147 "filename_prefix": "api_minimax_h3_image_image_edit"
148 }
149 },
150 {
151 "id": 5,
152 "type": "MarkdownNote",
153 "pos": [
154 -364.14483956897266,
155 136.02885356594848
156 ],
157 "size": [
158 397.8291910378572,
159 337.9938053075167
160 ],
161 "flags": [],
162 "order": 1,
163 "mode": 0,
164 "inputs": [],
165 "outputs": [],
166 "properties": [],
167 "widgets_values": [
168 "## Input Asset\n\n- [surreal_rendering_modern.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/surreal_rendering_modern.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"
169 ],
170 "widgets_values_named": {
171 "text": "## Input Asset\n\n- [surreal_rendering_modern.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/surreal_rendering_modern.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"
172 },
173 "color": "#222",
174 "bgcolor": "#000"
175 }
176 ],
177 "links": [
178 [
179 3,
180 3,
181 0,
182 4,
183 0,
184 "IMAGE"
185 ],
186 [
187 1,
188 1,
189 0,
190 3,
191 0,
192 "IMAGE"
193 ]
194 ],
195 "groups": [],
196 "config": [],
197 "extra": {
198 "ds": {
199 "scale": 0.5563050204646028,
200 "offset": [
201 1483.7181710793318,
202 332.85072061380646
203 ]
204 },
205 "frontendVersion": "1.58.5"
206 },
207 "version": 0.4
208}