AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Image generationDoubao Seedream

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

ModelSupported APIs
doubao-seedream-5-0-flash-260915
doubao-seedream-5-0-pro-260628
doubao-seedream-5-0-260128
Create / edit images

Flash/Pro

FieldDifferences
imageUp to 10 reference images for generation or editing. With layer_decomposition: true, provide one PNG or JPEG only.
sizeGeneration 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.
promptSelect 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.
backgroundtransparent edits one image with an alpha channel and outputs PNG. Combining it with output_format: "jpeg" returns an error.
layer_decompositionReturns 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.modeFlash and Pro support standard. Only Pro supports fast.

Lite

FieldDifferences
imageUp to 14 reference images.
sizeSupports 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_generationWith 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.
streamSet true to receive results one image at a time. Applies to single images and series.
toolsPass [{"type":"web_search"}] to allow web search. Actual searches are reported in usage.tool_usage.web_search.

Official references

On this page