- OpenAI通用接口
- gemini
- Midjourney API文档
- Flux(文生图)
- Replicate格式
- OpenAI DallE3格式POST
- Runway视频接口
- Luma视频接口
- 可灵API(官方接口)
- 工作流接口
- suno
- ideogram
generate(文本)
POST
/runway/pro/generate
请求参数
Header 参数
Authorization
string
必需
默认值:
{{Authorization}}
Body 参数application/json
callback_url
string
回调地址
ratio
string
画面尺寸
枚举值:
16:9``9:16``1:1``4:3``21:9
默认值:
16:9
prompt
string
描述词
style
string
风格
枚举值:
cinematic
默认值:
cinematic
model
string
模型
gen2
gen3
默认值:
gen3
options
object
参数
seconds
integer
视频时长
枚举值:
5``10
默认值:
10
motion_vector
object (镜头控制)
镜头控 制
示例
{
"callback_url": "http://baidu.com",
"ratio": "16:9",
"prompt": "一只小猫",
"style": "cinematic",
"model": "gen3",
"options": {
"seconds": 10,
"motion_vector": {
"x": 0,
"y": 0.3999999999999999,
"z": 0,
"r": -6,
"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 --request POST '/runway/pro/generate?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"callback_url": "http://baidu.com",
"ratio": "16:9",
"prompt": "一只小猫",
"style": "cinematic",
"model": "gen3",
"options": {
"seconds": 10,
"motion_vector": {
"x": 0,
"y": 0.3999999999999999,
"z": 0,
"r": -6,
"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": "d51f3cb9-2e5f-48fb-a068-79ecf8a7ecd2"
},
"exec_time": 2.768565
}
修改于 2024-11-28 16:13:44