Skip to main content
Glama

post-segment-inferences

Segment images to create masks and extract objects using AI models, generating new assets with customizable parameters for contours, dilation, and background opacity.

Instructions

Trigger the segmentation of an image. The process will create a new Asset with the segmentation mask as a child.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originalAssetsNoIf set to true, returns the original asset without transformation
dryRunNo
checkpointNoThe checkpoint to use
imageYesThe input image to process. Must reference an existing AssetId or be a data URL.
resultContoursNoBoolean to output the contours.
dilateNoThe number of pixels to dilate the result masks.
bboxNo
backgroundOpacityNoInt to set between 0 and 255 for the opacity of the background in the result images.
betterQualityNoRemove small dark spots (i.e. “pepper”) and connect small bright cracks.
textNoA textual description / keywords describing the object of interest.
resultImageNoBoolean to able output the cut out object.
pointsNo
resultMaskNoBoolean to able return the masks (binary image) in the response.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pasie15/scenario.com-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server