API Reference
Image segmentation
POST
/
v1
/
images
/
segmentation
Image segmentation
curl --request POST \
--url https://api.synapsai.cloud/v1/images/segmentation \
--header 'Content-Type: application/json' \
--data '
{
"inputs": "<string>",
"subtask": "panoptic",
"threshold": 0.9,
"mask_threshold": 0.5,
"overlap_mask_area_threshold": 0.5,
"timeout": 123
}
'import requests
url = "https://api.synapsai.cloud/v1/images/segmentation"
payload = {
"inputs": "<string>",
"subtask": "panoptic",
"threshold": 0.9,
"mask_threshold": 0.5,
"overlap_mask_area_threshold": 0.5,
"timeout": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"masks": [
"<string>"
],
"scores": [
123
]
}Body
application/json
Request parameters for image segmentation pipelines.
Image or list of images to segment. Required.
Segmentation subtask type (e.g., 'panoptic', 'instance', 'semantic').
Confidence threshold to include predicted segments.
Pixel-level mask threshold for binarizing predicted masks.
Threshold controlling how overlapping masks are handled.
Maximum time for fetching remote images or processing.
⌘I
Image segmentation
curl --request POST \
--url https://api.synapsai.cloud/v1/images/segmentation \
--header 'Content-Type: application/json' \
--data '
{
"inputs": "<string>",
"subtask": "panoptic",
"threshold": 0.9,
"mask_threshold": 0.5,
"overlap_mask_area_threshold": 0.5,
"timeout": 123
}
'import requests
url = "https://api.synapsai.cloud/v1/images/segmentation"
payload = {
"inputs": "<string>",
"subtask": "panoptic",
"threshold": 0.9,
"mask_threshold": 0.5,
"overlap_mask_area_threshold": 0.5,
"timeout": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"masks": [
"<string>"
],
"scores": [
123
]
}