Generate AI Backgrounds via API Without Requiring User Prompts?

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.

Hi there,

I am sharing our documentation on how you can leverage AI Backgrounds in our API here. Let us know if you have any questions on how to implement this?

Best,