Skip to content

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.)
  • Image URL: Please ensure that the image URL is accessible.
  • Base64 Encoding: Please follow the format data: image/<image format>;base64,<Base64 encoded content>. Note that <image format> must be in lowercase, for example: data: image/png;base64,<base64_image>
Image Generation Scenarios:
  • The incoming image needs to meet the following requirements:

    • Image formats: jpeg, png (the seedream-5.0-lite/4.5/4.0 models add support for webp, bmp, tiff, and gif formats)

    • Aspect Ratio (Width/Height) Range:

      • [1/16,16](Applicable models: seedream-5.0-lite/4.5/4.0)
    • Width and height (px) > 14

    • Size: No more than 30MB

    • Total pixels: No more than 6000x6000 = 36,000,000 px (this is a limit on the product of the width and height in pixels for a single image, rather than a separate limit on the width or height alone)

    • seedream-5.0-lite/4.5/4.0 supports a maximum of 14 reference images as input.

    • Seedream 5.5 / 5.0 Pro / 5.0 Flash supports passing in up to 10 reference images

Layer Splitting Scenarios:
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:
  • Image formats: png, jpeg
  • Aspect Ratio: [1/16,16]
  • Size: No more than 30MB
  • Total pixel (width × height) range: [512×512 (262144), 6000×6000 (36 million)](This is a restriction on the product of the width and height in pixels of a single image, not a restriction on the individual values of width or height)
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.
  • true: Layer splitting mode. The model decomposes the input image into a base map and multiple layers.
  • false: Image generation mode, no layer splitting will be performed.
  • Supported models: Seedream 5.5 / 5.0 Pro / 5.0 Flash. Seedream 5.5 can output a maximum of 1 base image plus 99 layers; 5.0 Pro / 5.0 Flash can output a maximum of 1 base image plus 16 layers.
size
string
No
Specify the size information of the generated image; the following two methods are supported and cannot be used interchangeably.
  • Method 1 | Specify the resolution of the generated image, and describe the aspect ratio, shape or intended use of the image in natural language in the prompt; the model will ultimately determine the size of the generated image.

    • Optional values: seedream-5.0-pro (1K, 1.5K, 2K; 2K is the default. 1.5K has the same price as 1K but delivers better image generation quality), seedream-5.0-flash (1K, 1.5K, 2K; 2K is the default, with the same rules as seedream-5.0-pro), seedream-5.0-lite (2K, 3K, 4K), doubao-seedream-4.5 (2K, 4K), doubao-seedream-4.0 (1K, 2K, 4K)
  • Mode 2 | Specify the pixel values for the width and height of the generated image; refer to the attached table for common recommended values:

    • Default value:(2048x2048)
    • Total pixel value range: seedream-5.0-pro ([1280x720 (921600), 2048x2048x1.1025 (4624220)]), seedream-5.0-flash (same as seedream-5.0-pro), seedream-5.0-lite ([2560x1440=3686400, 3072x3072x1.1025=10404496]), seedream-4.5 ([2560x1440=3686400, 4096x4096=16777216]), seedream-4.0 ([1280x720=921600, 4096x4096=16777216])
    • Aspect ratio value range: [1/16,16]
Note: When Mode 2 is adopted, both the total pixel value range and the aspect ratio value range shall be satisfied simultaneously. The total pixel here refers to the product limit of the pixels of the width and height, rather than a limit on the individual value of either the width or the height.

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:
  • Base map: The resolution of the output base map is consistent with the resolution specified by size; the aspect ratio of the output base map is consistent with that of the original image to be split.
  • Each layer: The resolution of the output layer is close to the resolution specified by size; each output layer has the same aspect ratio as its counterpart in the original image.
Default and optional values of size:
  • Default value: auto
  • Optional values: 1K, 1.5K, 2K, auto (the output will be generated based on the size and aspect ratio of the input image)
auto adaptation rules
In auto mode, the model will generate output based on the original dimensions of the base image and each layer in the input image:
  • If the original dimensions of the base map and each layer in the input image fall within the range [1280x720 (921600), 2048x2048x1.1025 (4624220)], output the base map and each layer in their original dimensions while maintaining their respective aspect ratios as in the original image.
  • If the original dimensions of the base image and each layer in the input image are smaller than 1K, output the base image and each layer at 1K, while respectively maintaining their aspect ratios in the original image.
  • If the original dimensions of the base map and each layer in the input image are larger than 2K, output the base map and each layer at 2K resolution while respectively maintaining their aspect ratios as in the original image.
seed integer No Default value: -1. This parameter is only supported by seededit-3.0-i2i. It refers to a random seed, which is used to control the randomness of the content generated by the model. The value range is [-1,2147483647].
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
  • auto: Auto-detection mode, in which the model will independently determine whether to return a set of images and the number of images included in the set based on the prompts provided by the user.
  • disabled: Disable the image group function, and the model will only generate one image.
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.
  • Value range: [1,15]
Note:
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.
  • false: Non-streaming output mode, which waits until all images are fully generated before returning all information at once.
  • true: Streaming output mode, which returns the output result of each image in real time. This mode takes effect in both single-image and multi-image generation scenarios.
tools Array No Only seedream-5.0-lite supports this parameter
tools.type string
No Only seedream-5.0-lite supports this parameter
  • web_search (the only currently available value)
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:
  • url: returns the image download link;the link is valid within 24 hours after the image is generated, please download the image in time.
  • b64_json: Returns image data in JSON format as a Base64-encoded string.
watermark
boolean No Whether to add a watermark to the generated image, the default value is true.
  • false: Do not add a watermark.
  • true: Add a watermark label reading "AI-generated" at the bottom right corner of the image
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)
  • jpeg (default)
  • png
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:
  • transparent: Transparent background mode, which outputs images with a transparent background.
  • opaque: An opaque background mode that generates a regular solid background image.
Restrictions on Use
  • Only the image-to-image scenario is supported, and only 1 image with an alpha channel can be input;
  • In transparent background mode, the output image defaults to PNG format; if output_format is simultaneously configured as JPEG, an error will be triggered.
  • If a file format that does not support alpha channel (such as JPEG) is passed in, an error will be triggered.
Supported models: seedream-5.5 / 5.0-pro / 5.0-flash. For version 5.5, the default mode is auto (supports text-to-RGBA and image-to-RGBA); for 5.0 Pro / 5.0 Flash, the default mode is opaque (only supports image-to-RGBA, and the input image must have an alpha channel).
optimize_prompt_options object
No Configuration of the Prompt Optimization Function
seededit-3.0-i2i does not support this parameter
optimize_prompt_options.mode
string
No Set the mode used by the prompt optimization function; the default value is standard.
  • standard: Standard mode, which generates higher-quality content but takes longer.
  • fast: Fast mode, which takes less time to generate content but delivers average quality. Not supported by seedream-5.0-flash/5.0-lite/4.5; for latency-sensitive use cases, you can choose the fast mode of 5.0 Pro or 5.0 Flash.
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.
  • If the failure is caused by failed review: the system will still proceed to request the next image generation task, which means it will not affect the generation process of other images within the same request.
  • If the failure is caused by an internal service exception (500), the system will not proceed to request the next image generation task.
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.

Example of response when an error occurs

"error": {
  "code":"BadRequest",
  "message":"The request failed because it is missing one or multiple required parameters. Request ID: {id}"
}