Lumina AIModel guides

Seedream 5.0 Pro layer decomposition API integration

Separate a poster into reviewable layers with seedream-v5.0-pro/layer-decomposition. Prepare the assets, submit the request and check the result.

Separate a poster into reviewable layers

Start with a flattened poster at its original dimensions. Keep it as a comparison image. Open the returned layers individually, then stack them and check lettering, translucent objects and shadows against the original.

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/layers' \
  -H "Authorization: Bearer $LUMINA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'JSON'
{
  "model": "seedream-v5.0-pro/layer-decomposition",
  "image": "https://example.org/reference.png"
}
JSON

Fields for this request

FieldType, limits or values
imagestring
sizeauto / 1K / 1.5K / 2K · default "auto"
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"

Once the task reaches SUCCESS, inspect the returned layers and artifact list. Save the files to your project and check the composite at the original dimensions.