使用 Runway 兼容格式 POST /runway/pro/generate 创建 GEN-4 文本生成视频任务,支持运镜控制和 X-Runway-Version 版本管理。
curl --request POST \
--url https://api.deerapi.com/runway/pro/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://your-server.com/callback",
"ratio": "16:9",
"prompt": "一只小猫",
"style": "cinematic",
"model": "gen4_turbo",
"options": {
"seconds": 10,
"motion_vector": {
"x": 0,
"y": 0.3999999999999999,
"z": 0,
"r": -6,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}
'{
"code": 123,
"msg": "<string>",
"data": {
"task_id": "<string>",
"state": "<string>",
"status": "<string>",
"prompt": "<string>",
"prompt_en": null,
"video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"point": "<string>",
"refund": "<string>",
"create_time": "<string>",
"update_time": "<string>"
},
"exec_time": 123
}callback_url — 任务完成后通过 POST 回调结果prompt、ratio、style、model — 定义生成请求options.seconds — 视频时长(秒)options.motion_vector — 可选,控制运镜参数Bearer token authentication. Use your DeerAPI key.
任务完成后,结果会通过POST请求回调到此URL
生成视频的宽高比
用于生成视频内容的文本描述或提示词
生成视频的艺术风格
使用的视频生成模型版本或名称
其他高级配置选项
Show child attributes
curl --request POST \
--url https://api.deerapi.com/runway/pro/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://your-server.com/callback",
"ratio": "16:9",
"prompt": "一只小猫",
"style": "cinematic",
"model": "gen4_turbo",
"options": {
"seconds": 10,
"motion_vector": {
"x": 0,
"y": 0.3999999999999999,
"z": 0,
"r": -6,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}
'{
"code": 123,
"msg": "<string>",
"data": {
"task_id": "<string>",
"state": "<string>",
"status": "<string>",
"prompt": "<string>",
"prompt_en": null,
"video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"point": "<string>",
"refund": "<string>",
"create_time": "<string>",
"update_time": "<string>"
},
"exec_time": 123
}