# I need help setting up my API call

**URL:** <https://photoroom.discourse.group/t/i-need-help-setting-up-my-api-call/183>\
**Category:** API General Questions\
**Tags:** api-implementation, image-editing\
**Created:** [July 29, 2025, 8:56am UTC](https://photoroom.discourse.group/t/i-need-help-setting-up-my-api-call/183 "2025-07-29T08:56:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![First11shirts](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@First11shirts](https://photoroom.discourse.group/u/First11shirts)\
**Post date:** [July 29, 2025, 8:56am UTC](https://photoroom.discourse.group/t/i-need-help-setting-up-my-api-call/183/1 "2025-07-29T08:56:13Z")

</div>

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:

 ![Photoroom api input](https://us1.discourse-cdn.com/flex002/uploads/photoroom/original/1X/bdfb252a6f52a085d5e209a8e5f7983a7f85b65e.jpeg)

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](https://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?

---

<div class="post-metadata">

**Author:** ![discourse\_ai\_spam](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@discourse\_ai\_spam](https://photoroom.discourse.group/u/discourse_ai_spam)\
**Post date:** [July 29, 2025, 8:56am UTC](https://photoroom.discourse.group/t/i-need-help-setting-up-my-api-call/183/2 "2025-07-29T08:56:17Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/photoroom/original/1X/75cbc4ac34379f4edd6123f6af18db26d6ce109f.jpeg) [@system](https://photoroom.discourse.group/u/system)\
**Post date:** [August 6, 2025, 7:28am UTC](https://photoroom.discourse.group/t/i-need-help-setting-up-my-api-call/183/3 "2025-08-06T07:28:59Z")

</div>



---

<div class="post-metadata">

**Author:** ![Photoroom](https://sea2.discourse-cdn.com/flex002/user_avatar/photoroom.discourse.group/photoroom/32/6_2.png) [@Photoroom](https://photoroom.discourse.group/u/Photoroom)\
**Post date:** [August 6, 2025, 7:31am UTC](https://photoroom.discourse.group/t/i-need-help-setting-up-my-api-call/183/4 "2025-08-06T07:31:19Z")

</div>

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.](https://docs.photoroom.com/image-editing-api-plus-plan/alpha-text-guided-segmentation) If you have any further questions on this don’t hesitate to reach back out.
