Build with Segment Mask.
Track an object through a video from a text prompt (Meta SAM 3) and get back a black and white mask video: white where the object is, black everywhere else.
Best for
Track an object through a video from a text prompt (Meta SAM 3) and get back a black and white mask video: white where the object is, black everywhere else. Use the playground to set up a single step, then open a workflow when you want to connect more tools.
Inputs explained
- Video (required)
- Set the video used by this model. Type: video.
- Prompt (optional)
- What to mask. Defaults to `face`. Separate several objects with commas, e.g. `face, hands` or `person`. Type: text. Default: "face".
- Detection Threshold (optional)
- Lower finds more (and less precise) matches, higher only confident ones. Type: number. Minimum: 0.1. Maximum: 1. Default: 0.5.
Tips before you run
Start with the default settings and change one input at a time. Keep the result you like on your board so the next step can use it.
If you add a reference file, use a link the workflow can read. Check the inputs and credit estimate on the board before starting a run.
Working with this model
What comes out
A black and white video the same size and length as the clip: white where the prompt matched, black everywhere else. It is the mask itself, not your clip with a colored overlay. Track several things at once by separating them with commas (face, hands), or use person for the whole body. If a small or turned face is missed, lower Detection Threshold; if it grabs things it should not, raise it.
What it is not, yet
It does not hide anything on its own. Laying the mask over the clip with Video Blend changes the colors of the whole frame (see the note on Video Blend), so it is not a clean face hide. A masked merge that keeps the rest of the frame untouched is not shipped yet.
Common questions
How do I use Segment Mask on Wireflow?
Set the inputs above and choose Open in a workflow. Sign in to save your board, then check its credit estimate before you run.
Can I use Segment Mask through an API?
Yes. Save a workflow with this model, then call the Wireflow run API with its workflow ID. The API tab has examples you can copy.
What changes the credit price?
The price shown uses the model defaults. Your inputs and model settings can change the total. The workflow shows an estimate before you run.
Can I connect this to another model?
Yes. Open it in a workflow and connect its output to another node with a matching input type.