ComfyUI Node
SAM 3 Smart Region Selector (FAL API)
Select one semantic region using SAM 3 through FAL. Includes body, garment, vehicle, and object/custom presets.
SAM 3 Smart Region Selector (FAL API)
- image
- mask
- mask_image
- info
- center_x
- center_y
- crop_width
- crop_height
◄region_typeobject►
◄custom_text►
◄selection_modelargest►
◄padding_percent0.0►
◄return_rect_maskfalse►
◄api_key►
◄api_key_env_varFAL_KEY►
◄mask_blur_percent0.0►
◄upload_max_dimension2048►
◄return_multiple_maskstrue►
◄max_masks3►
◄include_scorestrue►
◄include_boxestrue►
◄point_prompts_json►
◄box_prompts_json►
Categoryinpaint/api
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| region_type | COMBO | object | 19 options: face, upper_body, lower_body, full_body, hair, glasses, +13 |
| custom_textopt | STRING | — | |
| selection_modeopt | COMBO | largest | 3 options: largest, first, merge_all |
| padding_percentopt | FLOAT | 0.00–100 | — |
| return_rect_maskopt | BOOLEAN | false | — |
| api_keyopt | STRING | — | |
| api_key_env_varopt | STRING | FAL_KEY | — |
| mask_blur_percentopt | FLOAT | 0.00–100 | Soft blur applied to the returned SAM mask. |
| upload_max_dimensionopt | INT | 2048512–4096 | — |
| return_multiple_masksopt | BOOLEAN | true | — |
| max_masksopt | INT | 31–32 | — |
| include_scoresopt | BOOLEAN | true | — |
| include_boxesopt | BOOLEAN | true | — |
| point_prompts_jsonopt | STRING | — | |
| box_prompts_jsonopt | STRING | — |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| mask_image | IMAGE | — |
| info | STRING | — |
| center_x | INT | — |
| center_y | INT | — |
| crop_width | INT | — |
| crop_height | INT | — |