Skip to content
Prompt Library · Image

Change a Product Photo's Background Without Altering the Product

Background replacementPortrait 4:5 · Instagram posts and carouselsE-commerceContent creators
Before · input
Input: four speckled ceramic mugs stacked on a green wooden shelf
In-house product photo (AI-generated for the industry showcase).AI-generated · made by us
After · result
Output: the same four mugs in front of a sunny kitchen window, with a linen curtain and a blurred garden in the background
AI-generated · made by us

Prompt for the model

Change only the background of this product photo. Keep the product exactly the same: [the stack of four speckled ceramic mugs] - same shape, same number of items, same colors, glaze, speckles, handles and proportions; do not redraw or restyle it. New background: [a sunlit kitchen windowsill with a soft linen curtain and a blurred garden outside]. Match the lighting direction and color temperature of the product to the new scene and add a realistic contact shadow under the product. Photorealistic, no text, no logos.

Replace the gold [bracketed] parts to match your own product, space or brand.

Keep unchanged

The prompt tells the model not to change these. Check the result anyway: these are the parts that break most often.

  • Product shape
  • Count
  • Color and glaze
  • Handles
  • Proportions

When not to use it

If the product itself has changed (count, color, handle, logo, label), don't use it; generate it again with a new attempt.

For products such as food or cosmetics, don't publish it if the scene shows the product differently from what it is (ingredients it doesn't contain, a size it doesn't have).

What it does and how to adapt it

Aims to change only the background of a product photo: the product is meant to stay the same while the scene changes. The model may redraw the product; check its shape, count and color before using it. A quick way to show a product in different settings for social media and e-commerce.

Replace two parts: the product description (the more detail you write, the less the model changes; always include the count) and the new background. If the background's lighting is similar to the light the product was shot in, the result looks more realistic.

The example was generated with GPT Image 2.5 via Higgsfield.

Generation log

Model
GPT Image 2.5 (OpenAI)
Date generated
October 2, 2026
Attempts
Got it on the first try
Aspect ratio
4:5
Quality
medium
Generated via
Higgsfield API
[Fields] in the example
product: the stack of speckled ceramic mugs · background: a sunlit kitchen windowsill with a soft linen curtain and a blurred garden outside
Resolution
2k
Job ID
529f6285-d328-4026-9289-f7533ddc586a

What happened across attempts: On the first attempt, the four mugs, the speckles and the black rims were preserved. The handles got slightly thinner and the color turned a little grayer. Before using it in a sales image, zoom in and compare it with the real product. The example prompt did not state the count; "four" was then added to the template.

Even with the same prompt and the same settings, you won't get an identical result: models generate something different every time. The example shows what kind of result this prompt produces; it is not a guarantee.

If you'll use this image in an adIn Turkey, AI-generated ad content falls under a labeling rule: when a label is required and how to word it.

Image generation tools

Similar prompts