Decompose an image with Seedream
seedream_decompose_imageSplit an image into a base image and editable layers to enable layer-level edits, with optional OCR and support for up to 99 layers.
Instructions
Split an image into a base image and editable layers. Seedream 5.5 supports up to 99 layers and OCR.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image": "<image>"
},
"name": "seedream_decompose_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output size: auto, 1K, 1.5K, or 2K. | auto |
| image | Yes | One PNG or JPEG URL/base64 image to decompose. | |
| model | No | doubao-seedream-5-0-pro-260628 | |
| prompt | No | Optional elements to decompose; omit for automatic decomposition. Supports <bbox> coordinates. | |
| watermark | No | Whether to add an AI-generated watermark. | |
| max_images | No | Seedream 5.5 maximum image count, including the base image. | |
| callback_url | No | Optional webhook URL for async delivery. | |
| output_format | No | Base image format; layers are always PNG. | jpeg |
| text_recognition | No | Return styled OCR for recognized text layers in Seedream 5.5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |