Seedream 4.0 (Text-to-Image)
Model Overview
Setup your API Key
API Schema
post
Body
modelstring · enumRequiredPossible values:
image_sizeany ofOptionalDefault:
The size of the generated image.
square_hdstring · enumOptionalPossible values:
seedinteger · min: 1Optional
The same seed and the same prompt given to the same version of the model will output the same image every time.
sync_modebooleanOptionalDefault:
If set to true, the function will wait for the image to be generated and uploaded before returning the response. This will increase the latency of the function but it allows you to get the image directly in the response without going through the CDN.
falseenable_safety_checkerbooleanOptionalDefault:
If set to True, the safety checker will be enabled.
truepromptstring · max: 4000Required
The text prompt describing the content, style, or composition of the image to be generated.
num_imagesnumber · min: 1 · max: 4OptionalDefault:
The number of images to generate.
1Responses
200Success
application/json
post
/v1/images/generations200Success
Quick Example

"A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses."Last updated
Was this helpful?