Seedream 5.5 layer decomposition

Split one image into a base image and separate layers, with parameters, actual-usage billing and result queries.

Use an Official Group key to split one image into a base image and separate layers. Standard image generation still uses the existing workflow; see the Seedream image API.

Playground

In the Seedream 5.5 Official Group playground, choose "Layer decomposition" and provide a directly accessible HTTPS image URL. You can enter decomposition instructions and choose the size tier, the maximum count and whether to recognize text.

On this site the maximum count is 2 to 12 images, default 12, including the base image. This is only the most images that can be returned; the actual number may be lower. After submitting, save the task ID and wait for the original task to finish; do not resubmit to hurry the result.

Request parameters

Layer decomposition uses JSON POST /v1/images/generations. Only image URLs are supported for now; files cannot be uploaded directly through the layer endpoint.

ParameterDescription
modelAlways seedream-5-5
layer_decompositionAlways true
image_urlsExactly 1 image URL; the playground requires HTTPS
promptOptional, up to 4000 characters; when omitted, the image is recognized and split automatically
nMust be 1; set the number of layers with max_images
sizeauto, 1K, 1.5K or 2K, default auto; ratios and custom pixel sizes are not accepted
resolutionAlias of size; when both are provided, size takes precedence
output_formatpng (default) or jpeg; applies to the base image only, and transparent layers are PNG
layer_decomposition_options.max_imagesInteger from 2 to 12, default 12, including the base image
layer_decomposition_options.text_recognitionWhether to recognize text, default false; text information may be absent when there is no recognizable text

Do not send background. Reference images support only JPEG, PNG and WebP, up to 10 MiB and 36 million pixels, with no side longer than 16384 pixels. Image URLs must be directly accessible and must not rely on a browser sign-in, a local address or a short-lived share page.

curl 'https://app.apipool.dev/v1/images/generations' \
  -H "Authorization: Bearer $APIPOOL_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "seedream-5-5",
    "layer_decomposition": true,
    "image_urls": ["https://your-cdn.example/source.png"],
    "size": "auto",
    "n": 1,
    "output_format": "png",
    "layer_decomposition_options": {
      "max_images": 12,
      "text_recognition": true
    }
  }'

Replace the example image URL with a real, accessible image. After acceptance the response is 202 Accepted with a task id; this does not mean the images are finished.

Official Group prices

ChargeUnit price (USD)
Each output up to 2,610,000 pixels (width × height)US$0.02
Each output above 2,610,000 pixelsUS$0.035
1 reference imageUS$0.008

The base image counts as an output, and reference images are charged from the first one. After completion, the task settles once by the actual number of outputs and each image's real pixel tier. It is not charged by max_images, and the requested size is not used directly to determine the actual cost.

For example, 2 returned images in the lower pixel tier plus 1 reference image cost 2 × US$0.02 + US$0.008 = US$0.048. Choosing a maximum of 12 does not mean 12 images will be returned or charged. Submission requires available balance to cover the maximum estimated cost; the actual charge is the bill after the task completes.

Each output is limited on this site to 20 MiB and 36 million pixels. If processing limits are exceeded, the output is incomplete or metering evidence is insufficient, the task is held for verification and is not charged based on a guessed count.

Query and download

Query the original task with the same key used to submit:

curl "https://app.apipool.dev/v1/tasks/$TASK_ID" \
  -H "Authorization: Bearer $APIPOOL_API_KEY"
StatusWhat to do
submitted / processingWait and keep querying the original task
submission_unknownThe submission result is being reconciled; keep the task ID and do not resubmit
meter_pendingOutputs or usage are pending verification and not yet settled; this is not a success result
requires_review: trueManual verification is required; keep the task ID and contact support, and do not resubmit
completedRead data and download before the links expire
failedCheck error; identify the cause before deciding whether to create a new task

In a completed result, data[] keeps the order returned by the task. Each item includes the image url, the expiry time expires_at, the real width / height when available, and metadata; do not infer dimensions that are not provided. billing.charged_micro_usd is the settled charge; divide it by 1,000,000 to get US dollars. If the charge field is missing, check the call bill instead of inferring it from the requested count.

The base image and transparent layers can be downloaded separately. metadata may include layer order, names, bounding boxes and text recognition information; missing optional information does not indicate failure. Use the bounding boxes to position layers when compositing; a layer file's dimensions are not its coordinate range within the base image. Treat text and descriptions as plain text.

The download buttons in the playground only read images for the current task. After links expire, query the original task again for usable URLs; once the image retention period has ended, the images can no longer be downloaded.