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-seedance-2-0,
doubao-seedance-2-0-fast,
doubao-seedance-2-0-mini
示例:

"doubao-seedance-2-0"

content
object[]
必填

输入内容数组。文生视频只需一个 text 项;图生视频、多模态参考、视频编辑/延展需追加 image_url / video_url / audio_url 项。首帧、首尾帧、多模态参考三种模式互斥。

示例:
generate_audio
boolean
默认值:true

生成同步的人声、音效和背景音乐。

resolution
enum<string>
默认值:720p

输出分辨率。

可用选项:
480p,
720p,
1080p
ratio
enum<string>
默认值:adaptive

输出画面比例。

可用选项:
16:9,
4:3,
1:1,
3:4,
9:16,
21:9,
adaptive
duration
integer
默认值:5

视频时长(秒)。

必填范围: 4 <= x <= 15
tools
object[]

开启联网搜索增强生成(仅文生视频)。

watermark
boolean
默认值:false

输出视频添加水印。

响应

任务创建成功

task_id
string

平台任务 ID,传给任务查询接口。

示例:

"asyntask_h81efT0qwtLnzyt6VENmCZ6VXSfNxE2E"