Skip to main content
POST
Create 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

Text prompt for image generation.

Example:

"A girl and a cow doll happily riding a roller coaster in an amusement park"

size
string

Output image size. Supported values vary by model.

Example:

"1024x1024"

watermark
boolean
default:false

Whether to include watermark.

seed
integer

Random seed for reproducibility.

logo_info
object

Custom logo/watermark configuration.

Response

Image generated successfully

model
string

Model used for generation.

Example:

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

created
integer

Creation timestamp (Unix seconds).

Example:

1775029815

data
object[]

Generated image list.

usage
object

Token usage.