Segment objects into masks (Segment AI)
luw_segmentDetect objects in a photo and return black-and-white masks as image URLs to edit exactly those areas with other tools.
Instructions
Detect objects in a photo and return black-and-white masks as image URLs — every object (wall, floor, sofa, …) or only what you describe in prompt. Feed a mask URL into luw_magic_wand or luw_landscape_design to edit exactly that area. Costs 1 credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Photo to segment (https:// URL, local file path, or data: URI). | |
| labels | No | Keep only masks whose label contains one of these words (e.g. ["floor", "wall"]). | |
| prompt | No | What to segment, e.g. "walls", "the sofa", "lawn". Omit to segment everything. |