使用 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.4,
"z": 0,
"r": -6,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}
'{
"code": 200,
"msg": "成功",
"data": {
"task_id": "221c136d-7888-43c3-acd3-1fcc90d51cfd",
"state": "",
"status": "0",
"prompt": "",
"prompt_en": null,
"video_url": null,
"raw_video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"create_time": "0",
"update_time": "0"
},
"exec_time": 0
}通过此端点创建 Runway 兼容格式的 GEN-4 文本生成视频任务。Documentation Index
Fetch the complete documentation index at: https://apidoc.deerapi.com/llms.txt
Use this file to discover all available pages before exploring further.
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.4,
"z": 0,
"r": -6,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}
'{
"code": 200,
"msg": "成功",
"data": {
"task_id": "221c136d-7888-43c3-acd3-1fcc90d51cfd",
"state": "",
"status": "0",
"prompt": "",
"prompt_en": null,
"video_url": null,
"raw_video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"create_time": "0",
"update_time": "0"
},
"exec_time": 0
}