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-3-0-t2i-250415
Example:

"doubao-seedream-3-0-t2i-250415"

prompt
string
required

Image generation prompt.

Example:

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

size
string

Output image size. Supported values vary by model.

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-3-0-t2i-250415"

created
integer

Creation timestamp (Unix seconds).

Example:

1775029815

data
object[]

List of generated images.

usage
object

Token usage.