Skip to main content
Use doubao-seedream-5-0-pro-260628 with the same synchronous endpoint for text-to-image and image-to-image generation.
Select the Special-Ns resource group for specific content requests.
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
The image-generation prompt.
string
1K, 2K, or an explicit pixel size such as 2048x1024. Explicit dimensions must meet the documented total-pixel and aspect-ratio limits.
string
default:"url"
url or b64_json. URLs are temporary and should be saved promptly.
string
default:"jpeg"
png or jpeg.
boolean
default:true
Whether to add an AI-generated watermark.
string
default:"standard"
Prompt optimization mode. Only standard is supported.

Size limits

Resolution tiers are 1K and 2K. For explicit widthxheight values, the total pixel range is 1280x720 through 2048x2048x1.1025, and the aspect ratio range is [1/16, 16].

Headers

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

Response

200
string
The model ID used for the request. Upstream responses may return a provider-side model name.
integer
Creation time as a Unix timestamp in seconds.
object[]
Generated images.
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.
object
Per-image error information when one generated image fails.
string
Per-image error code.
string
Per-image error message.
integer
Number of generated images.
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

The request body is invalid or contains an unsupported parameter value.