Skip to main content
POST
生成图片

授权

Authorization
string
header
必填

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

请求体

application/json
model
enum<string>
必填

使用的图片生成模型。

可用选项:
doubao-seedream-5-0,
doubao-seedream-5-0-pro
示例:

"doubao-seedream-5-0"

prompt
string
必填

图片生成的文本提示词。

示例:

"A serene mountain landscape at sunrise with misty valleys"

image
string[]

图生图的参考图 URL 数组。

sequential_image_generation
enum<string>

设为 auto 开启组图生成。

可用选项:
auto,
disabled
sequential_image_generation_options
object

组图生成选项。

size
string
默认值:1024x1024

输出图片尺寸,如 1024x1024、2K。

示例:

"1024x1024"

watermark
boolean
默认值:false

输出图片添加水印。

seed
integer

随机种子,用于复现结果。

logo_info
object

Logo 叠加配置。

响应

生成成功

created
integer

生成时间戳(Unix 秒)。

data
object[]