SegmentationArtworkResponse
Possible values: [segmentation]
parameters
object
required
URL of the image to segment.
Possible values: >= -16384 and <= 16384
Default value: 0
Expands masks by given value.
Applies smoothing to the corners of the masks during expansion.
Possible values: >= 0.1 and <= 100
Default value: 0.1
Controls the strength of the blur around the masks.
Possible values: <= 100
Default value: 0
Controls the area of the blur around the masks.
Optional webhook URL. When provided, the server will POST the final artwork result to this URL upon completion.
Possible values: [text, points]
Segmentation method: 'text' or 'points'.
Text prompt for object detection. Required when method is 'text'.
Possible values: <= 1
Default value: 0.2
Detection confidence threshold (text mode only).
Possible values: >= -1 and <= 100
Default value: -1
Max detections, -1 for unlimited (text mode only).
Default value: true
Merge all detected masks into one (text mode only).
pointsPositive
object
Positive points marking what to mask (points mode only).
Possible values: >= 2, <= 2
List of [x, y] coordinate pairs (0.0 to 1.0).
List of labels corresponding to each point.
pointsNegative
object
Negative points marking what to exclude (points mode only).
Possible values: >= 2, <= 2
List of [x, y] coordinate pairs (0.0 to 1.0).
List of labels corresponding to each point.
Possible values: <= 10
Default value: 0
Refinement steps for initial mask (points mode only).
Default value: true
Generate multiple candidate masks (points mode only).
Default value: true
Select only the highest-quality mask (points mode only).
Possible values: [starting, processing, succeeded, failed, canceled]