ComfyUI Node
Mask External Edit
A ComfyUI node in Mask External Edit/Enhance with 20 inputs and 5 outputs.
Mask External Edit
- image
- mask
- image
- debug_crop
- edited_crop
- used_mask
- status
◄provideropenai►
◄taskgeneral_fix►
◄promptFix only the masked area. Preserve the original character, pose, style, lighting, and background.►
◄api_endpoint►
◄api_key_envMASK_EXTERNAL_EDIT_API_KEY►
◄padding160►
◄mask_grow12►
◄feather24►
◄crop_max_size1024►
◄threshold16►
◄timeout_seconds120►
◄blend_modecolor_match►
◄api_key►
◄openai_modelgpt-image-2►
◄mask_modeauto►
◄on_errorraise►
◄openwond_resolution1K►
◄openwond_max_side768►
CategoryMask External Edit/Enhance
Inputs (20)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| provider | COMBO | openai | 4 options: openai, openwond_draw, custom_http, debug_echo |
| task | COMBO | general_fix | 4 options: general_fix, fix_hands, enhance_face, change_expression |
| prompt | STRING | Fix only the masked area. Preserve the original character, pose, style, lighting, and background. | — |
| api_endpoint | STRING | — | |
| api_key_env | STRING | MASK_EXTERNAL_EDIT_API_KEY | — |
| padding | INT | 1600–1024 | — |
| mask_grow | INT | 120–256 | — |
| feather | INT | 240–256 | — |
| crop_max_size | INT | 1024256–4096 | — |
| threshold | INT | 161–255 | — |
| timeout_seconds | INT | 12010–600 | — |
| blend_mode | COMBO | color_match | 2 options: normal, color_match |
| api_key | STRING | — | |
| openai_model | STRING | gpt-image-2 | — |
| mask_mode | COMBO | auto | 3 options: auto, white_edits, black_edits |
| on_error | COMBO | raise | 2 options: raise, return_original |
| openwond_resolution | COMBO | 1K | 3 options: 1K, 2K, 4K |
| openwond_max_side | INT | 768256–2048 | — |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| debug_crop | IMAGE | — |
| edited_crop | IMAGE | — |
| used_mask | MASK | — |
| status | STRING | — |