All models
Segment Anything 2 (Masks)
Segment every region of an image into one combined mask.
Edit & Analyze Imagev1.0.04 inputsIMAGE


Every region segmented into one mask
Segment every region of an image into one combined mask.


Every region segmented into one mask
Fill the inputs the node publishes and run it on your own account. The same ports, defaults and types the studio uses.
Fill in the inputs and run the node to see its output here.
The same node, called by id from any surface. Every tab pins this node and passes the ports below.
import { BlitClient } from "@blitflow/sdk";
const { runNode } = new BlitClient({ apiKey: process.env.BLITFLOW_TOKEN });
const { outputs } = await runNode("sam-2", {
image: { ref: "https://..." },
pointsPerSide: { value: 32 },
iouThreshold: { value: 0.88 },
stabilityThreshold: { value: 0.95 },
});# Install once, then sign in
npm install -g blitflow
blitflow login
blitflow node sam-2 \
-i image=@https://... \
-i pointsPerSide=32 \
-i iouThreshold=0.88 \
-i stabilityThreshold=0.95{
"name": "runs_node",
"arguments": {
"node": "sam-2",
"inputs": {
"image": {
"ref": "https://..."
},
"pointsPerSide": {
"value": 32
},
"iouThreshold": {
"value": 0.88
},
"stabilityThreshold": {
"value": 0.95
}
}
}
}curl https://studio.blitflow.com/api/v1/runs/node \
-H "Authorization: Bearer $BLITFLOW_TOKEN" \
-H "Content-Type: application/json" \
-d '{"node":"sam-2","inputs":{"image":{"ref":"https://..."},"pointsPerSide":{"value":32},"iouThreshold":{"value":0.88},"stabilityThreshold":{"value":0.95}}}'Every port this node publishes, with its type, its hint and the default it runs with. sam-2 is the id you call.
| image* | IMAGE | ||
| pointsPerSide | INT | 32 | |
| iouThreshold | FLOAT | 0.88 | |
| stabilityThreshold | FLOAT | 0.95 |
| mask | IMAGE |