使用 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": 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
}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": 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
}