MaaS-Seedream
| Model | Billing Item |
|---|---|
| MaaS_Seedream_5.5 | input_image output_image output_image_2.61-4.63mp |
| MaaS_Seedream_5.0_pro |
input_image_first input_image_additional output_image output_image_>2.61mp layer_decomposition layer_decomposition_>2.61mp |
| MaaS_Seedream_5.0_flash | image |
| MaaS_Seedream_5.0_lite | image |
| MaaS_Seedream_4.5 | image |
| MaaS_Seedream_4.0 | image |
| MaaS_SeedEdit_3.0_i2i | image |
| competence | Seedream 5.5 | Seedream 5.0 Pro | Seedream 5.0 Flash | Seedream 5.0 Lite | Seedream 4.5 | Seedream 4.0 |
|---|---|---|---|---|---|---|
| Text-to-Image (Single Image) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Single Image to Image | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Multi-image to Image (Reference Images) | 2–10 sheets | 2–10 sheets | 2–10 sheets | 2–14 sheets | 2–14 sheets | 2–14 sheets |
| Layer Splitting | Base map + up to 99 layers | Base map + up to 16 layers | Base map + up to 16 layers | ❌ | ❌ | ❌ |
| Rich Text OCR (text_recognition) | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Interactive Editing | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
| Sequential Image Generation (sequential_image_generation) | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ |
| Streaming Output (stream) | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ |
| Custom Output Format (output_format) | ✅(default: png) | ✅(default: JPEG) | ✅(default: JPEG) | ✅(default: JPEG) | ❌(default: JPEG) | ❌(default: JPEG) |
| Alpha Channel (background) | ✅(auto by default) | ✅(default: opaque) | ✅(default: opaque) | ❌ | ❌ | ❌ |
Instructions for Layer Split Mode
-
Only a single image to be split is supported for input; an error will be returned if multiple images are passed in.
-
If any layer fails to be generated, the entire request will report an error, and partial success is not supported.
-
If the number of splits required by the prompt exceeds the upper limit, some layer information may be lost.
-
In the data field of the response structure, the position and content information of each output layer will be returned, including the layer order (z_index), bounding box information (bounding_box), name (name) and description (description).
-
Seedream 5.0 Flash has the same capabilities as 5.0 Pro, including single/multi-image to image generation, layer splitting, and interactive editing; it does not support image batch generation, web search, or streaming output.
-
Seedream 5.5: Supports the configuration of layer_decomposition_options. max_images: the maximum total number of images (including the base image) that can be generated in this request, with a value range of [2,100] and a default value of 30; text_recognition: additionally returns rich-text OCR results (data[]. text_recognition) for structured text layers, defaulting to false.
Interface and Request Parameters
Image Generation API
POST {endpointPath}/seedream/image/generations
Request Parameters
| Attribute Name | Type | Required or Not | Description |
|---|---|---|---|
| prompt | string |
Yes | Prompts used to generate images or specify layer splitting intent. Chinese and English are supported;Seedream 5.5 / 5.0 Pro / 5.0 Flash additionally support Russian, Arabic, Filipino, Thai, Turkish, Korean, Malay, Spanish, Portuguese, Indonesian, French, German, Vietnamese, and Japanese. It is recommended that the Chinese input does not exceed 300 characters and the English input does not exceed 600 words. Excessive content will easily lead to scattered information, and the model may thus ignore details and only focus on key points, resulting in missing elements in the generated image. |
| image |
string/array |
No |
The input image information supports URL or Base64 encoding. Among them, seedream-5.0-lite/5.0-pro/5.0-flash/4.5/4.0 support single-image or multi-image input. (If the total size of the image exceeds 10MB, it is recommended to transmit it via URL.)
When the layer decomposition mode is enabled (i. e., layer_decomposition is set to true), the image parameter is mandatory, and only a single image is supported as input (an error will be thrown if multiple images are passed). Requirements for single image input:
|
| layer_decomposition |
boolean | No | Controls whether to enable the layer splitting function. The default value is false. Layer splitting automatically decomposes elements such as the subject, background, and text of a single image into 1 base map and up to 16 independently editable layers. Each layer is a PNG image with an alpha channel.
|
| size |
string |
No |
Specify the size information of the generated image; the following two methods are supported and cannot be used interchangeably.
In the layer splitting scenario (seedream-5.0-pro / seedream-5.0-flash) Only setting via specifying the resolution gear is supported. The resolution rules for the output image are as follows:
In auto mode, the model will generate output based on the original dimensions of the base image and each layer in the input image:
|
| seed | integer | No | Default value: -1. |
| sequential_image_generation |
string |
No | Only seedream-5.0-lite/4.5/4.0 supports this parameter Seedream 5.0 Pro / 5.0 Flash is not supported Controls whether to disable the image group function, with the default value being disabled
|
| sequential_image_generation_options |
object | No | Only seedream-5.0-lite/4.5/4.0 supports this parameter, which is the configuration for the image batch function. It only takes effect when sequential_image_generation is set to auto. Seedream 5.0 Pro / 5.0 Flash is not supported |
| sequential_image_generation_options.max_images |
integer |
No |
Specify the maximum number of images that can be generated for this request; the default value is 15.
The actual number of images that can be generated is not only affected by max_images, but also by the number of input reference images. The total number of input reference images plus the number of finally generated images shall not exceed 15. |
| stream | boolean | No | Only seedream-5.0-lite/4.5/4.0 supports this parameter Defaults to false, which controls whether to enable the streaming output mode.
|
| tools | Array | No | Only seedream-5.0-lite supports this parameter |
| tools.type | string |
No | Only seedream-5.0-lite supports this parameter
|
| guidance_scale |
float |
No |
seedream-3.0-t2i default value 2.5 seededit-3.0-i2i default value 5.5 seedream-5.0-lite/4.5/4.0 is not supported The degree of consistency between the model's output results and the prompt, as well as the degree of freedom in image generation, is also known as text weight; the larger the value, the smaller the model's degree of freedom, and the stronger the correlation with the user's input prompt. Value range: [1,10]. |
| response_format |
string | No | Specify the return format of the generated image; the default value is url. The generated image is in JPEG format and supports the following two return methods:
|
| watermark |
boolean | No | Whether to add a watermark to the generated image, the default value is true.
|
| output_format | string |
No | Only seedream-5.5/ 5.0-lite/5.0-pro/5.0-flash support this parameter (png is the default for 5.5, while jpeg is the default for the others)
|
| background |
string | No | Used to control whether to generate images with an alpha channel. The default value is opaque, and the optional values are as follows:
|
| optimize_prompt_options | object |
No | Configuration of the Prompt Optimization Function |
| optimize_prompt_options.mode |
string |
No | Set the mode used by the prompt optimization function; the default value is standard.
|
| layer_decomposition_options | object | No | The configuration of the layer splitting function takes effect only when layer_decomposition is set to true, and it is only supported by Seedream 5.5. |
| layer_decomposition_options.max_images | integer | No | The maximum total number of images (including the base image) to be generated in this request, with a value range of [2,100] and a default value of 30. When the prompt does not specify the splitting method, the model will reasonably plan the splitting result based on max_images and the complexity of the input image. |
| layer_decomposition_options.text_recognition | boolean | No | Whether to additionally return rich text OCR results (data[]. text_recognition) for regular text layers. The default value is false. No results will be returned for non-text layers and irregular text layers such as artistic text and handwriting. |
| safety_identifier | string | No | A unique identifier for end users, used to assist the platform in detecting violating users; it is an English string that is fixed and unique for a single user, with a length not exceeding 64 characters, and is returned as-is in the response. Supported models: Seedream 5.5 / 5.0 Pro / 5.0 Flash. |
| size | string | No | Image generation scenario: resolution levels are selectable as 1K / 1.5K / 2K (2K by default); or you can specify pixel values for width and height (width x height), with the total pixel range being [1280x720 (921600), 4624220] and the aspect ratio range being [1/16,16]. Layer splitting scenario: only resolution levels are supported, with auto as the default option, and selectable options include 1K / 1.5K / 2K / auto. |
- Appendix 1: Recommended width and height pixel values for seedream4.5
| aspect ratio | width and height pixel values |
|---|---|
| 1:1 | 2048x2048 |
| 4:3 | 2304x1728 |
| 3:4 | 1728x2304 |
| 16:9 | 2560x1440 |
| 9:16 | 1440x2560 |
| 3:2 | 2496x1664 |
| 2:3 | 1664x2496 |
| 21:9 | 3024x1296 |
Appendix 2: seedream4.0
| resolution | aspect ratio | width and height pixel values |
|---|---|---|
| 1k | 1:1 | 1024x1024 |
| 4:3 | 1152x864 | |
| 3:4 | 864x1152 | |
| 16:9 | 1280x720 | |
| 9:16 | 720x1280 | |
| 3:2 | 1248x832 | |
| 2:3 | 832x1248 | |
| 21:9 | 1512x648 | |
| 2k | 1:1 | 2048x2048 |
| 4:3 | 2304x1728 | |
| 3:4 | 1728x2304 | |
| 16:9 | 2848x1600 | |
| 9:16 | 1600x2848 | |
| 3:2 | 2496x1664 | |
| 2:3 | 1664x2496 | |
| 21:9 | 3136x1344 | |
| 4k | 1:1 | 4096x4096 |
| 4:3 | 4704x3520 | |
| 3:4 | 3520x4704 | |
| 16:9 | 5504x3040 | |
| 9:16 | 3040x5504 | |
| 3:2 | 4992x3328 | |
| 2:3 | 3328x4992 | |
| 21:9 | 6240x2656 |
- Appendix 3: seedream5.0 lite
| resolution | aspect ratio | width and height pixel values |
|---|---|---|
| 2k | 1:1 | 2048x2048 |
| 4:3 | 2304x1728 | |
| 3:4 | 1728x2304 | |
| 16:9 | 2848x1600 | |
| 9:16 | 1600x2848 | |
| 3:2 | 2496x1664 | |
| 2:3 | 1664x2496 | |
| 21:9 | 3136x1344 | |
| 3k | 1:1 | 3072x3072 |
| 4:3 | 3456x2592 | |
| 3:4 | 2592x3456 | |
| 16:9 | 4096x2304 | |
| 9:16 | 2304x4096 | |
| 3:2 | 3744x2496 | |
| 2:3 | 2496x3744 | |
| 21:9 | 4704x2016 | |
| 4k | 1:1 | 4096x4096 |
| 4:3 | 4704x3520 | |
| 3:4 | 3520x4704 | |
| 16:9 | 5504x3040 | |
| 9:16 | 3040x5504 | |
| 3:2 | 4992x3328 | |
| 2:3 | 3328x4992 | |
| 21:9 | 6240x2656 |
- Appendix 4: Recommended Width and Height Pixel Values for seedream 5.0 pro / 5.0 flash (Consistent Rules for Both Models)
| resolution | aspect ratio | width and height pixel values |
|---|---|---|
| 1k | 1:1 | 1024x1024 |
| 4:3 | 1152x864 | |
| 3:4 | 864x1152 | |
| 16:9 | 1424x800 | |
| 9:16 | 800x1424 | |
| 3:2 | 1248x832 | |
| 2:3 | 832x1248 | |
| 21:9 | 1568x672 | |
| 1.5K | 1:1 | 1536x1536 |
| 4:3 | 1792x1344 | |
| 3:4 | 1344x1792 | |
| 16:9 | 2048x1152 | |
| 9:16 | 1152x2048 | |
| 3:2 | 1872x1248 | |
| 2:3 | 1248x1872 | |
| 21:9 | 2352x1008 | |
| 2k | 1:1 | 2048x2048 |
| 4:3 | 2368x1776 | |
| 3:4 | 1776x2368 | |
| 16:9 | 2816x1584 | |
| 9:16 | 1584x2816 | |
| 3:2 | 2496x1664 | |
| 2:3 | 1664x2496 | |
| 21:9 | 3136x1344 |
Request Body Example
Text-to-Image
curl https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/seedream/image/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"prompt": "A vibrant close-up editorial portrait of a model with a sharp gaze, wearing a sculptural hat, with rich color blocking, crisp focus on the eyes and a shallow depth of field, in the aesthetic style of a Vogue magazine cover, shot in medium format with strong studio lighting.",
"size": "2K",
"watermark": false
}'
Image-to-Image
curl -X https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/seedream/image/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ARK_API_KEY" \
-d '{
"prompt": "Keep the pose of the model and the flowing shape of the liquid garment unchanged. Change the garment material from silver metal to completely transparent clear water (or glass). Through the flowing water, the skin details of the model are visible. The lighting and shadows change from reflection to refraction.",
"image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imageToimage.png",
"size": "2K",
"watermark": false
}'
Multi-image to Image
curl -X https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/seedream/image/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ARK_API_KEY" \
-d '{
"prompt": "Replace the clothing in image 1 with the clothing in image 2",
"image": ["https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimage_1.png", "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imagesToimage_2.png"],
"sequential_image_generation": "disabled",
"size": "2K",
"watermark": false
}'
Layer Splitting
curl -X https://{YOUR_DOMAIN}/v1/ai/{YOUR_ENDPOINT}/seedream/image/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ARK_API_KEY" \
-d '{
"prompt": "Split the layers",
"layer_decomposition": true,
"image": "https://arkdocs.tos-cn-beijing.volces.com/images/image-generation/layer_auto.png"
}'
Example of Non-Streaming Response
Raw Image Scenario
{
"model": "doubao-seedream-4-5-251128", // When calling via an endpoint, the endpoint locks the model; changing the model parameter has no effect.
"created": 1757323224,
"data": [
{
"url": "https://...",
"output_format": "jpeg",
"size": "1760x2368"
}
],
"usage": {
"generated_images": 1,
"output_tokens": 16280,
"input_images": 3,
"total_tokens": 16280
}
}
Layer Splitting Scenarios
bounding_box refers to the bounding box information of the area occupied by the output layer in the coordinate system of the output base map. This field is only returned for layers; since the base map covers the entire canvas, it does not return this field.
-
bounding_box represents the relative position and aspect ratio of the layer in the image to be split, as well as the coordinates after being scaled proportionally to the coordinate system of the output base map.
-
If you need to restore the layer to the output base map, it is recommended to prioritize using absolute coordinates.
-
If you need to restore a layer to any custom canvas, you can use normalized coordinates.
{
"model": "MaaS_Seedream_5.0_pro", // When calling via an endpoint, the endpoint locks the model; changing the model parameter has no effect.
"created": 1787033167,
"data": [
{
"zindex": 0,
"url": "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/dola-seedream-5-0-pro/9fe51cf3908af1475408624e76ce4f4af56843468520330787120/Image/3000618968/02178703302586434865fa4f4ec67e4268045741fa8093fc15ef9_base.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260818%2Fap-southeast-1%2Ftos%2Frequest&X-Tos-Date=20260818T060549Z&X-Tos-Expires=86400&X-Tos-Signature=8af51d903653b65da84e452cf0912cd599339e51dba548c422a47e7171bb5f7c&X-Tos-SignedHeaders=host",
"output_format": "jpeg",
"size": "1760x2176",
"z_index": 0
},
{
"zindex": 1,
"url": "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/dola-seedream-5-0-pro/9fe51cf3908af1475408624e76ce4f4af56843468520330787120/Image/3000618968/02178703302586434865fa4f4ec67e4268045741fa8093fc15ef9_layer_1.png?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260818%2Fap-southeast-1%2Ftos%2Frequest&X-Tos-Date=20260818T060604Z&X-Tos-Expires=86400&X-Tos-Signature=2582d29740bfbb8401e45b50c8c0a7b769d07e091de05a115376ad4fc6c9b5d9&X-Tos-SignedHeaders=host",
"output_format": "png",
"size": "2496x761",
"z_index": 1,
"name": "Foreground scene base",
"description": "A foreground scene base containing grass, a stream and small pebbles, excluding all objects above it",
"bounding_box": {
"absolute": [
0,
1639,
1760,
2176
],
"normalized": [
0,
753,
999,
1000
]
}
},
{
"zindex": 2,
"url": "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/dola-seedream-5-0-pro/9fe51cf3908af1475408624e76ce4f4af56843468520330787120/Image/3000618968/02178703302586434865fa4f4ec67e4268045741fa8093fc15ef9_layer_2.png?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260818%2Fap-southeast-1%2Ftos%2Frequest&X-Tos-Date=20260818T060607Z&X-Tos-Expires=86400&X-Tos-Signature=c6b7fc250ab403fc2818315b685a7406cf8a1f79f1538890c852e7af94c8cb5a&X-Tos-SignedHeaders=host",
"output_format": "png",
"size": "2128x1756",
"z_index": 2,
"name": "Background blue-green backdrop",
"description": "A blue-green backdrop with a pleated texture, excluding all foreground objects in front of it",
"bounding_box": {
"absolute": [
0,
0,
1760,
1449
],
"normalized": [
0,
0,
999,
665
]
}
},
{
"zindex": 3,
"url": "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/dola-seedream-5-0-pro/9fe51cf3908af1475408624e76ce4f4af56843468520330787120/Image/3000618968/02178703302586434865fa4f4ec67e4268045741fa8093fc15ef9_layer_3.png?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260818%2Fap-southeast-1%2Ftos%2Frequest&X-Tos-Date=20260818T060557Z&X-Tos-Expires=86400&X-Tos-Signature=56c4ec0ee3fb2b6d9e49eb608a7ac4123fbdf7da983cb8b9b7b7a3303afb43c6&X-Tos-SignedHeaders=host",
"output_format": "png",
"size": "2052x739",
"z_index": 3,
"name": "Wooden stage platform",
"description": "A stump-textured wooden platform carrying the stage equipment, excluding all objects other than the scattered particles resting on the platform",
"bounding_box": {
"absolute": [
274,
1492,
1571,
1959
],
"normalized": [
156,
686,
892,
900
]
}
},
......
],
"usage": {
"generated_images": 17,
"input_images": 1,
"output_tokens": 134757,
"total_tokens": 134757
}
}
Response Parameters (Non-streaming)
| Attribute Name | Type | Description |
|---|---|---|
| created | integer | The Unix timestamp (in seconds) indicating the creation time of this request. |
| data | array | Output image information. Common return fields: url/b64_json, size, output_format, background; in the layer splitting scenario, additional fields z_index, name, description, bounding_box will be returned. |
| data.url | string | Image download link, returned when response_format is set to url; the link will expire within 24 hours after the image is generated, please save it in time. |
| data.b64_json | string | Image encoded in Base64, returned when response_format is set to b64_json. |
| data.output_format | string | Output image format (png / jpeg). In layer splitting scenarios, this only controls the format of the base map, while layers are always in png. Supported models: 5.5 / 5.0 Pro / 5.0 Flash. |
| data.background | string | Actual transparency type of the image: transparent (with transparent/semi-transparent pixels), opaque (fully opaque overall). Supported model: Seedream 5.5. |
| data.size | string | Width and height of the image in pixels, in the format of width x height, e. g. 2048x2048. |
| data.z_index | integer | Layer stacking order: The base map is fixed at 0, layers increment from 1, and a higher number indicates a higher layer. Supported models: 5.5 / 5.0 Pro / 5.0 Flash. |
| data.name / data.description | string | The name/label of the layer split element and its detailed semantic description. |
| data.bounding_box | object | The bounding box of the layer in the output base map coordinate system, returned only for layers; it includes absolute (absolute pixel coordinates [left, top, right, bottom]) and normalized (coordinates normalized to the range [0,1000]). |
| data.text_recognition | object | Standardize the rich-text OCR results of the text layer (including the full text content, line-by-line positions and style fragments runs: similar_font_family, foreground_color, bold, italic, underline, strikethrough, shadow, and translucent).Both layer_decomposition and layer_decomposition_options.text_recognition must be true, and the content must be determined to be regular text. Only applicable to Seedream 5.5. |
| data.error | object | The error message (code / message) when a certain image fails to be generated, which will not affect other successfully generated images. |
| usage.generated_images | integer | The number of images successfully generated by the model (excluding failed ones), which serves as the basis for per-image billing. |
| usage.input_images | integer | Number of images input to the model. Supported models: 5.5 / 5.0 Pro / 5.0 Flash. |
| usage.output_tokens / usage.total_tokens | integer | Number of tokens consumed for image generation (rounded value of sum (width × height)/256); input tokens are not counted for now, and total_tokens is consistent with output_tokens. |
| error | object | The error information (code / message) when an error occurs in this request. |
| safety_identifier | string | Returned as-is when set in the request. Supported models: 5.5 / 5.0 Pro / 5.0 Flash. |
Example of Streaming Response
Seedream 5.5 / 5.0 Pro / 5.0 Flash does not support streaming output
event: image_generation.partial_succeeded
data: {
"type": "image_generation.partial_succeeded",
"model": "doubao-seedream-4-5-251128", // When calling via an endpoint, the endpoint locks the model; changing the model parameter has no effect.
"created": 1757396757,
"image_index": 0,
"url": "https://...",
"size": "2496x1664"
}
event: image_generation.partial_succeeded
data: {
"type": "image_generation.partial_succeeded",
"model": "doubao-seedream-4-5-251128", // When calling via an endpoint, the endpoint locks the model; changing the model parameter has no effect.
"created": 1757396785,
"image_index": 1,
"url": "https://...",
"size": "2496x1664"
}
event: image_generation.partial_succeeded
data: {
"type": "image_generation.partial_succeeded",
"model": "doubao-seedream-4-5-251128", // When calling via an endpoint, the endpoint locks the model; changing the model parameter has no effect.
"created": 1757396825,
"image_index": 2,
"url": "https://...",
"size": "2496x1664"
}
event: image_generation.completed
data: {
"type": "image_generation.completed",
"model": "doubao-seedream-4-5-251128", // When calling via an endpoint, the endpoint locks the model; changing the model parameter has no effect.
"created": 1757396825,
"usage": {
"generated_images": 3,
"output_tokens": 48672,
"total_tokens": 48672
}
}
data: [DONE]
Description of Streaming Response Events
| Event Type | Description |
|---|---|
| image_generation.partial_succeeded | In streaming response mode, this event is returned when any image is successfully generated |
| image_generation.partial_failed |
In the streaming response mode, this event is returned when the generation of any image fails.
|
| image_generation.completed | It is the last response event of this streaming return, which is returned after all the requested images (whether successful or failed) have been processed. |