decompose_layers
Separates an image into distinct layers via Seedream, returning task ID, status, and output URLs. Provide an image URL and optional separation prompt.
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 | Declared type: string. Known values: "auto", "1K", "1.5K", "2K". | |
| 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. Declared type: string. | |
| 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. Declared type: string. | |
| timeout_ms | No | ||
| callback_url | No | Declared type: string. | |
| output_format | No | Base image format. Separated layers are PNG. Declared type: string. Known values: "png", "jpeg". | |
| poll_interval_ms | No |