Lumina AIModel guides

Seedream 5.0 Lite image editing API integration

Replace the backdrop in a product photograph with seedream-v5.0-lite/edit. Prepare the assets, submit the request and check the result.

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

Record size with the delivery artboard. For a narrow card placement, preview at the actual card ratio before changing the image dimensions. Check the crop for any loss of product detail.

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": "seedream-v5.0-lite/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"
  ]
}
JSON

Fields for this request

FieldType, limits or values
promptstring
imagesmin items 1 · max items 14
size2048*2048 / 2304*1728 / 1728*2304 / 2848*1600 / 1600*2848 / 2496*1664 / 1664*2496 / 3136*1344 / 3072*3072 / 3456*2592 / 2592*3456 / 4096*2304 / 2304*4096 / 2496*3744 / 3744*2496 / 4704*2016 · default "2048*2048"
output_formatjpeg / png · default "jpeg"

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.