
Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.
bytedance/seedream-v5.5/layerizeSeedream 5.5 Layerize decomposes a single flattened image into 2–100 editable layers with position, name, and OCR metadata. With the Seedream 5.5 Layerize API, credits pre-held at max_images settle automatically to the actual layers returned.
Drag and drop files, paste from clipboard, or provide a URL. Required. Exactly 1 flattened image to split into layers.
1/1 files added
REST API
Complete your first Seedream 5.5 Layerize API call in three steps.
Create an API key on your server and send it in Authorization: Bearer VIDGO_API_KEY.
https://api.vidgo.ai/api/generate/submitPOST the model ID and input object to /api/generate/submit.
curl --request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedream-v5.5/layerize",
"input": {
"prompt": "Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png"
],
"max_images": 8,
"resolution": "1K",
"output_format": "png",
"text_recognition": true
}
}'Poll status with task_id until finished and read data.files.
GET https://api.vidgo.ai/api/generate/status/{task_id}Poll every 2–5 seconds until finished or failed.
not_startedrunningfinishedfailed{
"code": 200,
"data": {
"task_id": "JTQCYR7TANN6PAZZ",
"status": "not_started",
"created_time": "2026-11-25T11:13:00"
}
}{
"code": 200,
"data": {
"task_id": "JTQCYR7TANN6PAZZ",
"status": "finished",
"files": [
{
"file_url": "https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/layerize/v1/01/layer-01.png",
"file_type": "image"
},
{
"file_url": "https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/layerize/v1/01/layer-02.png",
"file_type": "image"
},
{
"file_url": "https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/layerize/v1/01/layer-03.png",
"file_type": "image"
},
{
"file_url": "https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/layerize/v1/01/layer-04.png",
"file_type": "image"
},
{
"file_url": "https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/layerize/v1/01/layer-05.png",
"file_type": "image"
},
{
"file_url": "https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/layerize/v1/01/layer-06.png",
"file_type": "image"
}
],
"created_time": "2026-11-25T11:13:00",
"error_message": null,
"progress": 100
}
}End-to-end script combining submission, polling, and output handling.
set -euo pipefail
: "${VIDGO_API_KEY:?Set VIDGO_API_KEY in your environment}"
REQUEST_BODY=$(cat <<'JSON'
{
"model": "bytedance/seedream-v5.5/layerize",
"input": {
"prompt": "Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png"
],
"max_images": 8,
"resolution": "1K",
"output_format": "png",
"text_recognition": true
}
}
JSON
)
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
--request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data "$REQUEST_BODY")
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | jq -r '.data.task_id // .task_id // empty')
if [ -z "$TASK_ID" ]; then
printf 'Submit response did not include task_id:
%s
' "$SUBMIT_RESPONSE" >&2
exit 1
fi
while true; do
STATUS_RESPONSE=$(curl --silent --show-error --fail-with-body \
--url "https://api.vidgo.ai/api/generate/status/$TASK_ID" \
--header "Authorization: Bearer $VIDGO_API_KEY")
STATUS=$(printf '%s' "$STATUS_RESPONSE" | jq -r '.data.status // .status // empty')
case "$STATUS" in
finished)
printf '%s' "$STATUS_RESPONSE" | jq -r '(.data.files // .files // [])[]?.file_url'
break
;;
failed)
printf '%s' "$STATUS_RESPONSE" | jq -r '.data.error_message // .error_message // "Generation failed"' >&2
exit 1
;;
not_started|running)
sleep 2
;;
*)
printf 'Unexpected task status: %s
' "$STATUS" >&2
exit 1
;;
esac
donePlace model and optional callback_url at the root, and model parameters inside input.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | — | Fixed to bytedance/seedream-v5.5/layerize. |
| callback_url | string (URL) | No | — | Public HTTP(S) terminal callback URL. |
| input.image_urls | string[] | Yes | — | Array containing exactly 1 public HTTP(S) image URL to decompose. |
| input.prompt | string | No | — | Optional decomposition guidance (up to 2,000 characters). |
| input.resolution | string | No | auto | auto (billed at 2K), 1K, 1.5K, or 2K. |
| input.max_images | integer | No | 30 | Upper limit on returned layers (integer 2–100). |
| input.output_format | string | No | png | png or jpeg. |
| input.text_recognition | boolean | No | false | Extract OCR text metadata for text layers (true or false). |
| input.enable_safety_checker | boolean | No | true | Toggle safety filtering. |
Submit returns task_id; status returns generated image files (Layerize includes per-file layer coordinates, name, and OCR metadata).
| Field | Type | Description |
|---|---|---|
| code | integer | Business code; 0 or 200 indicates success. |
| data.task_id | string | Unique task identifier. |
| data.status | string | not_started | running | finished | failed |
| data.files[].file_url | string | Generated image URL. |
| data.files[].file_type | string | Media type (image). |
| data.files[].layer | object | null | Layer metadata including position, layer name, and OCR text when enabled. |
| data.error_message | string | null | Failure detail when status is failed. |
Poll only while not_started or running; stop on finished or failed.
not_startedQueued to start.
runningProcessing image; continue polling.
finishedComplete; read image URLs from data.files.
failedFailed; inspect error_message and stop.
| Specification | Value | Description |
|---|---|---|
| Model | bytedance/seedream-v5.5/layerize | Decomposes one image into separate layers with position, name, and optional OCR metadata. |
| Resolution | auto | 1K | 1.5K | 2K | Defaults to auto (billed at the 2K rate). |
| max_images | 2–100 | Maximum layer cap (default 30); unused pre-held credits are refunded on completion. |
| Pricing | 4 / 7 credits/layer + 1.6 input | 1K/1.5K: 4 credits/image; 2K/auto: 7 credits/image; plus 1.6 credits for the input image. |
Seedream 5.5 Layerize is a ByteDance image decomposition model that separates flat artwork into editable layers. The Seedream 5.5 Layerize API splits one source image into 2–100 downloadable layers with position, name, and optional OCR metadata in data.files[]. Automatic settlement refunds any unused portion of the max_images pre-hold once layer extraction finishes. You can call it programmatically or try it from the playground above.
It pre-holds resolution rate × max_images + 1.6 credits on submit, then automatically refunds unused layers based on the actual count returned.
Each item in data.files[] can carry a layer object containing position/coordinates, layer name, and OCR text when text_recognition is enabled.
Exactly 1 input image in image_urls.
No. Prompt is optional (up to 2,000 characters) and can be omitted for automatic full-image layer extraction.
Any integer between 2 and 100, defaulting to 30.
resolution auto is billed at the 2K rate (7 credits per returned layer plus 1.6 input credits).