Skip to main content
POST
Create a text-to-image task

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Model ID

Available options:
doubao-seedream-4-0-250828
Example:

"doubao-seedream-4-0-250828"

prompt
string
required

Image generation prompt.

Example:

"Generate an image of a girl and a cow plush happily riding a roller coaster at an amusement park"

size
enum<string>

Output image size.

Available options:
1024x1024,
864x1152,
1152x864,
1312x736,
736x1312,
832x1248,
1248x832,
1568x672,
2048x2048,
1728x2304,
2304x1728,
2848x1600,
1600x2848,
2496x1664,
1664x2496,
3136x1344,
4096x4096,
3520x4704,
4704x3520,
5504x3040,
3040x5504,
3328x4992,
4992x3328,
6240x2656
Example:

"1024x1024"

watermark
boolean
default:false

Whether to add a watermark.

seed
integer

Random seed, used to reproduce results.

logo_info
object

Custom logo watermark configuration.

Response

Image generated successfully

model
string

The model to use.

Example:

"doubao-seedream-4-0-250828"

created
integer

Creation timestamp (Unix seconds).

Example:

1775029815

data
object[]

List of generated images.

usage
object

Token usage.