Skip to main content
POST
Create an image-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-5-251128
Example:

"doubao-seedream-4-5-251128"

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"

image
string[]
required

List of reference image URLs for image-to-image. Required for image-to-image.

Example:
sequential_image_generation
enum<string>

Sequential image generation mode. Set to 'auto' to generate multiple images in a batch.

Available options:
auto
sequential_image_generation_options
object

Sequential image generation options.

size
enum<string>

Output image size.

Available options:
2048x2048,
1728x2304,
2304x1728,
2848x1600,
1600x2848,
2496x1664,
1664x2496,
3136x1344,
4096x4096,
3520x4704,
4704x3520,
5504x3040,
3040x5504,
3328x4992,
4992x3328,
6240x2656
Example:

"2048x2048"

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-5-251128"

created
integer

Creation timestamp (Unix seconds).

Example:

1775029815

data
object[]

List of generated images.

usage
object

Token usage.