Seedream 5.0 Pro Layer Decomposition API Integration
Use Seedream 5.0 Pro Layer Decomposition through Rivya Public API v1 with model id seedream-5-pro-layer-decomposition, supported inputs, parameters, Files API rules, credits, and response examples.
seedream-5-pro-layer-decomposition
file
Required for reference modes
per_image · 1K=7 · 1.5K=7 · 2K=14 · auto_reserve=14 · ⌈total⌉
Image
FIXED
5000 characters
Request contract
Send the model id at the top level. Model-specific controls belong in params.
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | seedream-5-pro-layer-decomposition | Use the seedream-5-pro-layer-decomposition API model id. |
| prompt | string | No | - | Maximum 5000 characters for this model. |
| params | object | No | - | Model-specific parameter object. Use the rows below for allowed keys. |
| client_request_id | string | No | - | Optional client-side id for tracing requests in your system. |
Model parameters
| Key | Type | Required | Default | Range | Options | Description |
|---|---|---|---|---|---|---|
| size | select | No | auto | - | auto, 1K, 1.5K, 2K | Output size |
| output_format | select | No | jpeg | - | jpeg, png | This setting controls the base image. Separated layers are returned as PNG files. |
Upload policy
Upload reference files first, then place the returned URL and duration token inside params.referenceMediaItems.
Source image: Upload exactly one PNG, JPEG, WebP, BMP, TIFF, or GIF up to 30 MB; HEIC and HEIF are not supported.
1
image
Video and audio references should carry durationToken from /api/v1/files when duration verification is required.
| kind | Max size | MIME types |
|---|---|---|
| image | 30 MB | image/jpeg, image/png, image/webp, image/bmp, image/gif, image/tiff |
Minimal request
{
"model": "seedream-5-pro-layer-decomposition",
"params": {
"size": "auto",
"output_format": "jpeg"
}
}Reference-file request
{
"model": "seedream-5-pro-layer-decomposition",
"params": {
"size": "auto",
"output_format": "jpeg",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png",
"width": 1024,
"height": 1024,
"sizeBytes": 1048576,
"imageDimensionsToken": "image_dimensions_token_from_original_files_api_upload_response"
}
]
}
}Create response
The create endpoint returns a public task id. Poll the status endpoint until the task succeeds or fails.
{
"id": "task_seedream_5_pro_layer_decomposition_example",
"status": "queued",
"model": "seedream-5-pro-layer-decomposition",
"reserved_credits": 7,
"final_credits": 0,
"settlement_status": "RESERVED",
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}Common errors
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
Some modes require Files API reference uploads.