
🇺🇸 English

🇺🇸 English
- Chat Models
- Anthropic
- Suno
- Udio
- Midjourney API
- Flux
- Recraft
- Ideogram
- Luma
- Runway
- Kling-API
- Replicate
- MiniMax
image to video
POST
/runway/pro/generate
最后修改时间:2025-02-05 11:33:56
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
默认值:
{{YOUR_API_KEY}}
Body 参数application/json
callback_url
string
回调地址
image
string
参考的图片
style
string
风格
model
enum<string>
模型
枚举值:
gen2gen3
默认值:
gen3
prompt
string
描述词
options
object
参数
motion_vector
object
镜头控制
seconds
enum<integer>
视频时长
枚举值:
510
默认值:
10
image_as_end_frame
boolean
是否将图片作为尾帧
默认值:
false
flip
boolean
可选
默认值:
false
last_image
string
尾帧
示例
{
"callback_url": "http://baidu.com",
"image": "https://db.xiaohuhd.com/1.jpeg",
"style": "cinematic",
"model": "gen3",
"prompt": "smile",
"options": {
"seconds":10,
"image_as_end_frame":false,
"flip":false,
"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 '/runway/pro/generate' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"callback_url": "http://baidu.com",
"image": "https://db.xiaohuhd.com/1.jpeg",
"style": "cinematic",
"model": "gen3",
"prompt": "smile",
"options": {
"seconds":10,
"image_as_end_frame":false,
"flip":false,
"motion_vector": {
"x": -6.2,
"y": 0,
"z": 0,
"r": 0,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}