generate(参考图片)
POST
https://api.deerapi.com/runway/pro/generate
视频生成
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/runway/pro/generate' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'X-Runway-Version: 2024-11-06' \
--header 'Content-Type: application/json' \
--data-raw '{
"callback_url": "http://baidu.com",
"image": "https://db.xiaohuhd.com/1.jpeg",
"style": "cinematic",
"model": "gen4",
"prompt": "笑起来,吃汉堡",
"options": {
"seconds": 10,
"image_as_end_frame": false,
"flip": false,
"motion_vector": {
"x": -6.2,
"y": 0,
"z": 0,
"r": 0,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}'
响应示例响应示例
{
"code": 200,
"msg": "成功",
"data": {
"task_id": "9f6243e5-3ab8-49c3-9c3c-6309ef5c96bd",
"state": "",
"status": "",
"prompt": "",
"prompt_en": null,
"video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"point": "",
"refund": "",
"create_time": "",
"update_time": ""
},
"exec_time": 20.930577
}
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{api-key}}
X-Runway-Version
string
可选
示例值:
2024-11-06
Body 参数application/json
返回响应
修改于 2025-04-15 06:39:03