Skip to main content
POST
Image generation

Authorizations

Authorization
string
header
required

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

Body

application/json

Use Doubao Seedream 5.0 Pro to generate images from text.

model
enum<string>
required

Required. Forward exposes the model ID. The gateway forwards to the OFOX OpenAI Images compatible interface according to the doubao/seedream model family.

Available options:
volcengine/doubao-seedream-5.0-pro,
volcengine/doubao-seedream-4.5
prompt
string
required

Pictures generate prompt words. Official recommendations are no more than about 300 Chinese characters or 600 English words.

Minimum string length: 1
Example:

"A future city floating on the sea of clouds, with movie-level light and shadow and rich architectural details at sunrise"

size

doubao-seedream-5.0: Supports 2K, 3K or specified width and height pixel values; default 2048x2048; total pixel range [2560x1440, 3072x3072x1.1025]; aspect ratio range [1/16, 16]. doubao-seedream-4.5: Supports 2K, 4K or specified width and height pixel values; default 2048x2048; total pixel range [2560x1440, 4096x4096]; aspect ratio range [1/16, 16]. doubao-seedream-4.0: Supports 1K, 2K, 4K or specified width and height pixel values; default 2048x2048; total pixel range [1280x720, 4096x4096]; aspect ratio range [1/16, 16].

Available options:
auto,
1K,
1.5K,
2K
output_format
enum<string>
default:jpeg

Output picture format. Transparent backgrounds must use png.

Available options:
png,
jpeg
background
enum<string>
default:opaque

Output background. transparent can only be used with output_format=png.

Available options:
opaque,
transparent
response_format
enum<string>
default:b64_json

Response format. b64_json returns Base64; url returns a temporary image link; the default is b64_json.

Available options:
b64_json,
url
watermark
boolean
default:true

Whether to add a watermark to the generated image.

optimize_prompt_options
object

Volcano engine prompt word optimization settings.

Response

200 - application/json

Doubao Seedream 5.0 Pro image generation successful response.

created
integer<int64>
required

Image creation time, Unix timestamp, unit is seconds.

Required range: x >= 0
data
object[]
required

Generate results. The model returns one image at a time.

Required array length: 1 element
model
string

The model ID that actually executes the request.

size
string

actual generated size.

Pattern: ^[1-9][0-9]*x[1-9][0-9]*$
output_format
enum<string>

Actual output format.

Available options:
png,
jpeg
background
enum<string>

The actual background type used.

Available options:
opaque,
transparent
usage
object

The usage information generated this time.