/v1/videos 或 /v1/video/generations(与 happyhorse、Vidu 共用)。此处使用 /v1/videos/kling 仅为在 Apifox 中区分接口,导入后可在 Apifox 中改回 /v1/videos。images 为空 → 文生视频images 1 张 → 图生视频images 2 张 → 首尾帧生视频metadata.action = motionControl → 运动控制metadata.action = videoExtend → 视频延长Authorization: Bearer ********************{
"model": "V3",
"prompt": "一只柴犬在樱花树下奔跑",
"duration": 5,
"metadata": {
"aspect_ratio": "16:9",
"mode": "std",
"cfg_scale": 0.5,
"watermark": false
}
}curl --location '/v1/videos/kling' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "V3",
"prompt": "一只柴犬在樱花树下奔跑",
"duration": 5,
"metadata": {
"aspect_ratio": "16:9",
"mode": "std",
"cfg_scale": 0.5,
"watermark": false
}
}'{
"id": "task_xxxxxxxxx",
"task_id": "task_xxxxxxxxx",
"status": "queued",
"model": "V3",
"created_at": 1779243291
}