- OpenAI通用接口
- 全能模型接口
- kimi
- 通义千问
- 智谱
- 秘塔搜索
- 讯飞星火
- 海螺
- deepseek
- Openai
- Suno(音乐)
- Midjourney(绘画)
- Flux(绘图)
- Recraft(绘图)
- Ideogram(绘画)
- Luma(视频)
- Runway(视频)
- 可灵(视频)
文生视频
测试中
POST
https://api.ecovai.cn/runway/pro/generate
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例值:
{{YOUR_API_KEY}}
Body 参数application/json
callback_url
string
必需
ratio
enum<string>
可选
枚举值:
16:99:161:14:321:9
默认值:
16:9
prompt
string
支持中文
style
enum<string>
可选
枚举值:
cinematic
默认值:
cinematic
model
enum<string>
必需
枚举值:
gen2gen3
默认值:
gen3
options
object
可选
motion_vector
object
必需
seconds
enum<integer>
视频时长
枚举值:
510
默认值:
10
示例
{
"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 'https://api.ecovai.cn/runway/pro/generate' \
--header 'Authorization: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--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
必需
state
string
必需
status
string
必需
prompt
string
必需
prompt_en
null
必需
video_url
null
必需
poster
null
必需
last_frame
null
必需
msg
null
必需
point
string
必需
refund
string
必需
create_time
string
必需
update_time
string
必需
exec_time
number
必需
示例
{
"code": 200,
"msg": "成功",
"data": {
"task_id": "9034a8e8-c920-4590-9f48-3ce5df78c65a",
"state": "",
"status": "",
"prompt": "",
"prompt_en": null,
"video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"point": "",
"refund": "",
"create_time": "",
"update_time": ""
},
"exec_time": 3.23708
}
修改于 2025-02-11 07:09:44