Doubao Seedream parameters and API differences
Reference images, image series, layer decomposition and output parameters for Seedream.
See Create / edit images for the full request structure.
Applicable models
| Model | Supported APIs |
|---|---|
| doubao-seedream-5-0-flash-260915 doubao-seedream-5-0-pro-260628 doubao-seedream-5-0-260128 | Create / edit images |
Flash/Pro
| Field | Differences |
|---|---|
image | Up to 10 reference images for generation or editing. With layer_decomposition: true, provide one PNG or JPEG only. |
size | Generation supports 1K, 1.5K and 2K, defaulting to 2K. You may also use WIDTHxHEIGHT, with 921,600–4,624,220 pixels and an aspect ratio of 1:16–16:1. For decomposition, use a resolution preset or the default auto. |
prompt | Select edit locations with <point>x y</point> or <bbox>x1 y1 x2 y2</bbox>. Coordinates range from 0–999, with the origin at the top-left corner. |
background | transparent edits one image with an alpha channel and outputs PNG. Combining it with output_format: "jpeg" returns an error. |
layer_decomposition | Returns a base image and up to 16 PNG layers. Stack by ascending z_index and position layers on the base using bounding_box.absolute. If any layer fails, the entire request fails. |
optimize_prompt_options.mode | Flash and Pro support standard. Only Pro supports fast. |
Lite
| Field | Differences |
|---|---|
image | Up to 14 reference images. |
size | Supports 2K, 3K, 4K or WIDTHxHEIGHT, defaulting to 2048x2048. Custom sizes require 3,686,400–16,777,216 pixels and an aspect ratio of 1:16–16:1. |
sequential_image_generation | With auto, the model decides whether to generate a series. Set the output limit with sequential_image_generation_options.max_images. Reference and output images combined must not exceed 15. |
stream | Set true to receive results one image at a time. Applies to single images and series. |
tools | Pass [{"type":"web_search"}] to allow web search. Actual searches are reported in usage.tool_usage.web_search. |