Replace the backdrop in a product photograph
Keep an unchanged copy of the source photograph. Overlay the result at the same size and switch between the two. Check narrow edges around caps or handles, then zoom in on the label lettering.
Production settings
Decide whether the designer needs a transparent cutout or an opaque image before choosing background and the output format. Place the result on both a light and a dark background to inspect the outline.
Submit the task
Set LUMINA_API_KEY on the server to an API key that can call this model. Replace each example media URL with an HTTPS link that serves the actual file.
curl -sS -X POST 'https://luminaai.cloud/lumina/v1/images/edits' \
-H "Authorization: Bearer $LUMINA_API_KEY" \
-H 'Content-Type: application/json' \
--data-binary @- <<'JSON'
{
"model": "gpt-image-2.5-sunburst-developer/edit",
"prompt": "Replace the tabletop and background with a pale grey studio sweep. Keep the product outline, label lettering, material and position. Retain a contact shadow.",
"images": [
"https://example.org/reference.png"
]
}
JSONFields for this request
| Field | Type, limits or values |
|---|---|
| prompt | default "Arrange these products into a lovely gift basket on a marble counter." |
| images | min items 1 · max items 16 |
| size | auto / 1024x1024 / 1024x768 / 768x1024 / 1024x1536 / 1536x1024 / 2048x2048 / 2048x1152 / 1152x2048 / 2560x1088 / 1088x2560 / 2880x2160 / 2160x2880 / 3840x2160 / 2160x3840 · default "1024x1024" |
| output_format | png / jpeg / webp · default "png" |
| n | min 1 · max 10 · default 1 |
Retrieve the result
Save the id from the submission response. Replace TASK_ID below with that value and use the same key. If the status is IN_PROGRESS, poll this task again.
curl -sS 'https://luminaai.cloud/lumina/v1/tasks/TASK_ID' \
-H "Authorization: Bearer $LUMINA_API_KEY"Read the generated files when the task reaches SUCCESS. If it returns FAILURE, retain the task ID and error so you can trace the exact inputs and model used.