"Keep the product identical": the Sume docs background-swap prompt
Sume docs use one prompt for a product edit: keep the product identical, swap the background. The request, the fields it needs, and what to check afterward.

Sume documents a plain product-photo edit: send the product image as a reference and prompt "Keep the product identical; swap the background to a soft daylight studio". It is one request with one reference photo, and it works as a starting point for any background swap. The result still needs a visual check, because the model can alter labels, edges and shadows.
The request
The Image 1.0 page in the Sume docs uses that prompt on the legacy route. Image 1.0 is retiring, so here is the same idea on POST /v1/images. References go in input_references as image_url objects, and aspect_ratio "auto" matches the reference shape.
curl -X POST https://api.sume.com/v1/images \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-2.5",
"prompt": "Keep the product identical; swap the background to a soft daylight studio",
"input_references": [
{"type": "image_url", "image_url": {"url": "https://example.com/product.png"}}
],
"aspect_ratio": "auto",
"quality": "medium"
}'Why those fields
The reference URL must be public HTTPS; Sume rejects localhost, private-network and non-HTTPS URLs before submission. On edit calls, aspect_ratio "auto" matches the reference, and omitting the field is not the same. Quality medium is a middle setting; use high for finals and dense text. The docs example for Image 1.0 uses medium with a 4:3 ratio.
What to check in the result
A background swap changes pixels you did not ask about more often than people expect.
- Logo, label and barcode text: compare with the original.
- Edge halos around the product after the swap.
- Shadow direction against the new background light.
- Colors: compare a swatch of the product with the source photo.
Sources
Related posts
More in Use cases
- Kling motion control silent clip with a Lyria music bed for a Short
Set keep_original_sound to false, generate a track with the Music Router, and join them on a timeline. Cost for a 12-second clip, and the YouTube rule to know.
- Korean BBQ restaurant reel: korean-ad captions on spoken Hangul
Caption a restaurant reel with Korean speech using Sume's korean-ad style, language ko, and why slam or punch fails with Hangul. Request body and font choices.
- Landscape listing photos in a vertical reel: cover, contain or blur?
A 3:2 photo in a 9:16 reel shows only 37.5% of its width with fit cover. Pick the fit per photo in Timeline 1.0: eight photos and a bed cost $0.225 on Sume.
- Live stream avatar: queue pre-rendered reaction clips instead
For a stream overlay, render ten short Sume avatar clips ahead of time and trigger them from chat events. Ten 6-second clips cost $14.70 on plus.
Written by Sume