← Node reference

SAM 3 Image

AI generationMeta

Single-frame segmentation - extract masks from images with text prompts.

Runs
On our servers
Typical time
5-30s
Inputs
2
Outputs
1

Inputs

PortTypeID
Prompttextprompt-in
Imageimageimage-in

Outputs

PortTypeID
Imageimageimage-out

Settings

SettingTypeDefaultOptions
Output ModeCutout returns the subject on a transparent background. Alpha Mask returns a black-and-white matte to use in Merge, Keymix, or Copy. Ignored when Multiple Masks is on (each object comes back as its own matte).selecttrueCutout (object only), Alpha Mask (B&W matte)
Multiple MasksSingle: one combined matte. Multiple: a separate B&W matte per comma-separated subject and per instance ("wheel" returns each wheel), up to Max Masks - one Read per matte in Nuke, selectable outputs in Studio. Mattes load into the red channel in Nuke: aim a mask picker at .red or Shuffle red to alpha. Overrides Output Mode.selectfalseSingle mask, Multiple masks
Max MasksCap on how many instance mattes come back when Multiple Masks is on (provider range 1-32).slider31 to 32

Prompting

Name your subject - or comma-separate several ("giraffe, truck") for a matte each. Avoid "A and B" phrasing: that merges into one...

Maximum prompt length: 500 characters.

What this connects into (24)

Computed from the port compatibility rules, so it stays correct as nodes change.

Node ID sam3-image. Open it in Studio with Tab, then type the name.