curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-2.1/standard",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "a woman takes her hands out her pockets and gestures to the words with both hands, she is excited, behind her it is raining",
"duration": 5,
"start_image_url": "https://cdn.vidgo.ai/temp/kling-2.1/start-image.png?v=20260310-2040"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}Kling
Kling 2.1
Standard 和 Pro 图生视频
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-2.1/standard",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "a woman takes her hands out her pockets and gestures to the words with both hands, she is excited, behind her it is raining",
"duration": 5,
"start_image_url": "https://cdn.vidgo.ai/temp/kling-2.1/start-image.png?v=20260310-2040"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
kling-2.1/standard 和 kling-2.1/pro。
模型
- kling-2.1/standard - 首帧引导的图生视频
- kling-2.1/pro - 首帧引导的图生视频,可选尾帧
必填参数
- prompt:用于生成的文本提示词
- start_image_url:必填的首帧图像
可选参数
- duration:
5或10。默认为5 - end_image_url:可选,仅
kling-2.1/pro支持 - negative_prompt:可选的负面提示词
工作流程 ID
现有 ID 仍可继续使用。新接入可以选择专用的工作流程:注意事项
kling-2.1/standard不支持end_image_urlkling-2.1/pro支持首帧图像和可选的尾帧图像
授权
所有 API 接口都需要 Bearer Token 认证
获取 API Key:
进入 仪表盘 → API 密钥(API Key 管理页面)获取 API Key
在请求头中添加:
Authorization: Bearer VIDGO_API_KEY
请求体
application/json