名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
Authorization | header | string | 否 | none | |
body | body | object | 否 | none | |
» image | body | string | 是 | 参考的图片 | 可供互联网访问并可下载的图片链接 |
» style | body | string | 否 | 风格 | 目前仅支持gen-2 |
» model | body | string | 否 | 模型 | none |
» prompt | body | string | 是 | 描述词 | 支持中文 |
» options | body | object | 是 | 参数 | none |
»» motion_vector | body | object | 是 | 镜头控制 | 目前仅支持gen-2 |
»»» x | body | number | 是 | 水平 | -10.0到10.0之间 |
»»» y | body | integer | 是 | 垂直 | -10.0到10.0之间 |
»»» z | body | integer | 是 | 缩放 | -10.0 到10.0之间 |
»»» r | body | integer | 是 | 旋转 | -10.0到10.0之间 |
»»» bg_x_pan | body | integer | 是 | 左右方向倾斜 | -10.0到10.0之间 |
»»» bg_y_pan | body | integer | 是 | 上下方向倾斜 | -10.0到10.0之间 |
»» seconds | body | integer | 是 | 视频时长 | 目前仅支持gen-3 |
»» flip | body | boolean | 是 | 是否竖屏 | 默认为宽屏,即16:9;仅 gen3 可用 |
» last_image | body | string | 否 | 尾帧 | none |
{
"image": "string",
"style": "string",
"model": "string",
"prompt": "string",
"options": {
"motion_vector": {
"x": 0,
"y": 0,
"z": 0,
"r": 0,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}
curl --location -g --request POST '{{BASE_URL}}/runway/v1/pro/generate' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"image": "string",
"style": "string",
"model": "string",
"prompt": "string",
"options": {
"motion_vector": {
"x": 0,
"y": 0,
"z": 0,
"r": 0,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}'
{}