使用 Runway 兼容格式 POST /runway/pro/generate 通过参考图片创建 GEN-4 视频,支持运动矢量和尾帧控制。
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",
"image": "https://db.xiaohuhd.com/1.jpeg",
"model": "gen4",
"prompt": "笑起来,吃汉堡"
}
'{
"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 兼容格式的视频生成任务。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.
model: gen4image 和描述运动或变换的 promptoptions.seconds 为必填项轮询任务状态
task_not_exist,等待几秒后重试。Bearer token authentication. Use your DeerAPI key.
回调URL,用于接收处理结果的通知
生成视频的宽高比
图像处理或生成的提示语,描述期望的图像内容或变化
使用的模型版本,例如"gen4"
输入图片的URL地址
期望的图像风格,例如"cinematic"(电影感)
更多高级或特定的处理选项
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",
"image": "https://db.xiaohuhd.com/1.jpeg",
"model": "gen4",
"prompt": "笑起来,吃汉堡"
}
'{
"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
}