doubao-seedream-5-0-260128 with the same synchronous endpoint for text-to-image and image-to-image generation.
- Text to image
- Image to image
Create an image
POST /v1/images/generationscURL
string
required
Must be
doubao-seedream-5-0-260128.string
required
The image-generation prompt.
string
Output size such as
2048x2048 or 2K.boolean
default:false
Whether to add a watermark.
integer
Random seed.
object
Custom logo watermark settings.
boolean
Whether to add a logo.
integer
Logo position.
integer
Logo language.
number
Logo opacity.
Supported sizes
The documented explicit sizes are2048x2048, 1728x2304, 2304x1728, 2848x1600, 1600x2848, 2496x1664, 1664x2496, 3136x1344, 3072x3072, 2592x3456, 3456x2592, 4096x2304, 2304x4096, 2496x3744, 3744x2496, and 4704x2016.
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.
integer
Creation time as a Unix timestamp in seconds.
object[]
Generated images.
string
Generated image URL.
string
Generated image dimensions.
integer
Number of generated images.
integer
Output token count.
integer
Total token count.
Error responses
401 Unauthorized— The API key is missing or invalid.429 Rate limit exceeded— The request exceeded the applicable rate limit.