Skip to main content
Use doubao-seedream-5-0-pro-260628 with the synchronous image generation endpoint. Select a capability tab to view its request and response shape.
This model does not support grouped image generation, web search, or streaming. Do not send sequential_image_generation, sequential_image_generation_options, tools, or stream.

Create an image

POST /v1/images/generations
cURL
string
required
Must be doubao-seedream-5-0-pro-260628.
string
required
Image-generation prompt. Chinese prompts should generally stay within 300 characters and English prompts within 600 words.
string
default:"2K"
1K, 1.5K, 2K, or a valid explicit widthxheight value. Explicit dimensions require 921,600–4,624,220 total pixels and an aspect ratio in [1/16, 16].
string
default:"url"
url or b64_json. URL results expire after 24 hours.
string
default:"jpeg"
jpeg or png.
boolean
default:true
Whether to add the AI-generated watermark.
object
Prompt optimization configuration.
string
default:"standard"
standard or fast. Both values are supported.

Create response

200

Headers

string
required
Bearer authentication in the form Bearer <token>.
string
default:"application/json"
required
Request body format.

Response fields

string
Model used for the request. A provider-side normalized model name may be returned.
integer
Creation time as a Unix timestamp in seconds.
object[]
Generated images, or the background and extracted layers in decomposition mode.
string
Temporary image URL when response_format is url.
string
Base64 image data when response_format is b64_json.
string
Generated image format.
string
Generated image dimensions.
integer
Layer order in decomposition mode. The background uses 0.
string
Generated layer name in decomposition mode.
string
Generated layer description in decomposition mode.
integer[]
Layer bounds as [left, top, right, bottom] in output-image pixels.
integer[]
Layer bounds mapped to a 1000 × 1000 coordinate system.
integer
Number of generated outputs. In decomposition mode this includes the background and layers.
integer
Number of input images.
integer
Output token count.
integer
Total token count.
object
Request-level error information.
string
Request-level error code.
string
Request-level error message.

Error responses

Invalid or unsupported request parameters.