跳转到主要内容
POST
/
v1
/
videos
Seedance 2.0 Fast 多模态参考生视频
curl --request POST \
  --url https://api.powertokens.ai/v1/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "dreamina-seedance-2-0-fast-260128",
  "media": [
    {
      "type": "text",
      "text": "补充的提示词"
    },
    {
      "type": "reference_image",
      "url": "https://example.com/img1.jpg"
    },
    {
      "type": "reference_video",
      "url": "https://example.com/motion.mp4"
    },
    {
      "type": "reference_audio",
      "url": "https://example.com/audio.mp3"
    }
  ],
  "seconds": "-1",
  "size": "720p",
  "ratio": "16:9",
  "generate_audio": false,
  "return_last_frame": false,
  "safety_identifier": "user_123"
}
'

授权

Authorization
string
header
必填

在请求头中传入 Authorization: Bearer <token>

请求体

application/json
model
enum<string>
必填

视频生成模型名称。固定为 dreamina-seedance-2-0-fast-260128

可用选项:
dreamina-seedance-2-0-fast-260128
media
object[]
必填

多模态输入数组。2.0 Fast 支持 textfirst_framelast_framereference_imagereference_videoreference_audio

Minimum array length: 1
seconds
enum<string>
默认值:5

视频生成时长(秒)的字符串形式。支持 "-1"(智能选择)或 "4""15"

可用选项:
4,
5,
6,
7,
8,
9,
10,
11,
12,
15,
-1
示例:

"5"

size
enum<string>
默认值:720p

视频输出规格参数。默认 720p。

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

视频宽高比。文生视频默认 16:9,图生视频默认 adaptive

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

随机数种子,取值范围 [-1, 4294967295]。

必填范围: -1 <= x <= 4294967295
watermark
boolean
默认值:false

是否添加水印。

generate_audio
boolean
默认值:true

是否生成与画面同步的声音。2.0 系列支持。

return_last_frame
boolean
默认值:false

是否返回尾帧图像。

safety_identifier
string

终端用户唯一标识,用于合规检测。仅 2.0 系列支持,长度不超过 64 个字符。

响应

200

提交成功,返回视频任务对象。