Parameters
Union[str, Image.Image, np.ndarray]
required
RGB image.
List[List[int]]
required
List of
[x, y] pixel coordinates.List[int]
required
1 = foreground, 0 = background per prompt.
bool
default:"False"
If True returns multiple masks.
str
default:"'image'"
Endpoint mode; only “image” currently supported.
float | None
HTTP timeout.