跳转到主要内容
POST
/
v1
/
videos
Seedance 2.0 图生视频
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-260128",
  "media": [
    {
      "type": "text",
      "text": "镜头缓缓推进,女孩微笑"
    },
    {
      "type": "first_frame",
      "url": "https://example.com/first-frame.jpg"
    }
  ],
  "seconds": "5",
  "size": "720p",
  "ratio": "adaptive"
}
'

授权

Authorization
string
header
必填

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

请求体

application/json
model
enum<string>
必填

视频生成模型名称。

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

多模态输入数组。图生视频需包含 type: "first_frame"type: "text"

Minimum array length: 2
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,
1080p
ratio
enum<string>
默认值:adaptive

视频宽高比。图生视频默认 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

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