decompose_layers
Break down an uploaded image into separate layers by submitting its public URL to Seedream. Returns a task ID and output URLs; add an optional prompt to specify which elements to isolate.
Instructions
Create a Seedream task on RunAPI (decompose layers). Returns a task id, status, and output URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | No | Optional instructions describing which elements to separate. | |
| image_url | Yes | Exactly one public PNG, JPEG, WebP, BMP, TIFF, or GIF image URL; HEIC and HEIF are unsupported. Maximum 30 MB, 262,144-36,000,000 total pixels, and aspect ratio 1:16-16:1. | |
| timeout_ms | No | ||
| callback_url | No | ||
| output_format | No | Base image format. Separated layers are PNG. | |
| poll_interval_ms | No |