视频生成

POST /api/v1/videos

请求参数

参数类型必填默认值说明
promptstring是-视频描述文本
modelstring否-视频模型 ID
durationinteger否5视频时长(秒)
resolutionstring否1280x720视频分辨率

请求示例

curl -X POST "https://ai.clouddun.com/api/v1/videos" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/doubao-seedance-2-5-260628",
    "content": [
        {
            "type": "text",
            "text": "360度环绕运镜"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/f8fc1008f23a4908b7c897e8b7eb87df~tplv-goo7wpa0wc-image.image"
            }
        }
    ],
    "generate_audio": true,
    "duration": 5,
    "watermark": false
  }'

响应参数

参数类型说明
idstring视频ID
statusstring视频状态
created_atstring视频创建时间