I need help setting up my API call

This is my api input:

{
“key”: “background.color”,
“value”: “FFFFFFFF”,
“fieldType”: “text”
},
{
“key”: “outputSize”,
“value”: “1800x2400”,
“fieldType”: “text”
},
{
“key”: “background.negativePrompt”,
“value”: “metal hook, curved hook, top hook, neck hook, hanger wire, suspension, hanging wire, string, wall hook, ceiling hook”,
“fieldType”: “text”
},
{
“key”: “verticalAlignment”,
“value”: “top”,
“fieldType”: “text”
},
{
“key”: “referenceBox”,
“value”: “subjectBox”,
“fieldType”: “text”
},
{
“key”: “shadow.mode”,
“value”: “ai.soft”,
“fieldType”: “text”
},
{
“key”: “horizontalAlignment”,
“value”: “center”,
“fieldType”: “text”
},
{
“key”: “paddingTop”,
“value”: “0%”,
“fieldType”: “text”
},
{
“key”: “paddingBottom”,
“value”: “5%”,
“fieldType”: “text”
},
{
“key”: “paddingLeft”,
“value”: “5%”,
“fieldType”: “text”
},
{
“key”: “paddingRight”,
“value”: “5%”,
“fieldType”: “text”
},
{
“key”: “marginTop”,
“value”: “0%”,
“fieldType”: “text”
},
{
“key”: “marginBottom”,
“value”: “0%”,
“fieldType”: “text”
},
{
“key”: “marginLeft”,
“value”: “0%”,
“fieldType”: “text”
},
{
“key”: “marginRight”,
“value”: “0%”,
“fieldType”: “text”
},
{
“key”: “outputFormat”,
“value”: “jpg”,
“fieldType”: “text”
}
],
“useQuerystring”: false,
“followAllRedirects”: false,
“rejectUnauthorized”: true
}
]

This is the photo that I need the api to edit:

I’d like to keep the wooden part of the hanger fully visible, but make sure the metal hook above it is removed. The image should be cropped so that it starts exactly at the top of the wooden hanger — no space above, and no visible hook. The shirt should be centered horizontally, and the wooden hanger should align perfectly with the top edge of the final image.

We always use a clean white background, so consistency in framing and white space is important.

You can take a look at our website — first11shirts.com — to see the exact look and style we’re aiming for.

What’s the best way to achieve this through the API — what do I have to edit in my api call?

Hi @First11shirts ,

First of all I want to apologize for the delay in response - for some reason this was flagged as Spam and was hidden.

What I would suggest for your above request is to leverage our Text Guided Segmentation to achieve this. I’ve attached the documentation here for your review. If you have any further questions on this don’t hesitate to reach back out.