Parameters
RGB image.
List of
[x, y] pixel coordinates.1 = foreground, 0 = background, one per prompt point.If
True, returns multiple candidate masks.Endpoint mode; only
"image" currently supported.Optional HTTP timeout.
Returns
np.ndarray — Binary segmentation mask of shape (H, W) with dtype uint8. Foreground pixels are 255, background is 0.
Example Output
