- 系统使用介绍
- API介绍
- 项目说明
- 导言
- 身份验证
- 发出请求
- 参数详情
- OpenAI
- 音乐接口
- 绘图接口
- 视频接口
- luma
- runway
- pixverse
- google-veo
- veo Copy
参考图片生成视频
POST
{{BASE_URL}}/runway/v1/pro/generate
请求参数
Authorization
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
ratio
enum<string>
画面尺寸
枚举值:
16:99:161:14:33:421:9
prompt
string
描述词
style
string
风格
model
enum<string>
模型
枚举值:
gen2gen3gen4
image
string
必需
options
object
必需
seconds
enum<integer>
视频时长
枚举值:
510
motion_vector
object
必需
示例
{
"image": "https://db.xiaohuhd.com/1.jpeg",
"style": "cinematic",
"model": "gen3",
"prompt": "笑起来,吃汉堡",
"options": {
"seconds": 10,
"motion_vector": {
"x": -6.2,
"y": 0,
"z": 0,
"r": 0,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/runway/v1/pro/generate' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"image": "https://db.xiaohuhd.com/1.jpeg",
"style": "cinematic",
"model": "gen3",
"prompt": "笑起来,吃汉堡",
"options": {
"seconds": 10,
"motion_vector": {
"x": -6.2,
"y": 0,
"z": 0,
"r": 0,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
task_id
string
必需
exec_time
number
必需
示例
{
"code": 200,
"msg": "成功",
"data": {
"task_id": "0ab3bfe2-be23-4635-8c35-890fb2c1732d"
},
"exec_time": 0.67573
}
修改于 2025-06-22 21:17:57