generate(参考图片)
OpenAPI Specification
参考图片生成视频:提交参考图与描述词,并通过镜头控制等参数微调画面运动。
请求方式:POST
接口地址
text
https://api.allyang.cn/runway/v1/pro/generate
请求头
Authorization(可选):鉴权头,使用控制台创建的令牌,格式为 Bearer + 令牌。(示例:Bearer {{YOUR_API_KEY}})
请求参数(application/json)
image(string,必填)style(string,必填):当前仅支持 gen-2 版本。model(string,必填)prompt(string,必填)options(object,必填)motion_vector(object,必填):当前仅支持 gen-2 版本。x(number,必填)y(integer,必填)z(integer,必填)r(integer,必填)bg_x_pan(integer,必填)bg_y_pan(integer,必填)
请求示例
json
{
"options": {
"motion_vector": {
"x": null,
"y": null,
"z": null,
"r": null,
"bg_x_pan": null,
"bg_y_pan": null
}
}
}
返回:HTTP 200 表示成功,响应体字段待补(以实测为准)。
使用提示:镜头控制当前仅支持 gen-2 版本;参考图需为可下载的公网地址。