# Generate AI Backgrounds via API Without Requiring User Prompts?

**URL:** <https://photoroom.discourse.group/t/generate-ai-backgrounds-via-api-without-requiring-user-prompts/242>\
**Category:** API General Questions\
**Tags:** api-implementation, image-editing\
**Created:** [August 21, 2025, 12:20pm UTC](https://photoroom.discourse.group/t/generate-ai-backgrounds-via-api-without-requiring-user-prompts/242 "2025-08-21T12:20:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![turman](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@turman](https://photoroom.discourse.group/u/turman)\
**Post date:** [August 21, 2025, 12:20pm UTC](https://photoroom.discourse.group/t/generate-ai-backgrounds-via-api-without-requiring-user-prompts/242/1 "2025-08-21T12:20:04Z")

</div>

Hi everyone,

I’m integrating Photoroom’s API into my application to allow users to edit product images by removing the background and adding an AI-generated background — similar to how it works in PhotoRoom’s web app.

Using the API Playground, I can generate the code, but when it comes to the AI background feature, the Playground requires a “Describe the background” prompt. This works fine for manual usage, but in our case, we want a fully automated experience for non-technical users.

**The goal:**

The user uploads an image → Click a button and we call the API → The final image with a realistic AI-generated background is returned — **without the user needing to write a prompt**. This is possible in the web app.

Please see the screenshots attached for better understand. Looking forward to hearing from you.

 ![Screenshot 2025-08-21 at 14.18.14](https://us1.discourse-cdn.com/flex002/uploads/photoroom/original/1X/ed54979c2b8cdb10889979e59d646607f5fc94fb.jpeg)

---

<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 25, 2025, 3:49pm UTC](https://photoroom.discourse.group/t/generate-ai-backgrounds-via-api-without-requiring-user-prompts/242/2 "2025-08-25T15:49:26Z")

</div>

Hi there,

I am sharing our documentation on how you can [leverage AI Backgrounds in our API here](https://docs.photoroom.com/image-editing-api-plus-plan/ai-backgrounds). Let us know if you have any questions on how to implement this?

Best,
