Appearance
🎬 视频模型 runwayML gen3a_turbo gen4_turbo
- 2025.04.22 本站已经支持 runway 官转 视频模型
gen4_turbo
- 2024.11.16 本站已经支持 runway 官转 视频模型
gen3a_turbo
- 支持
图生视频
- 计费:按次 时间分
5s
10s
,10s
的价格是5s
的 2 倍 - 如何使用 访问 https://runway.ddaiai.com 看下面的
在线测试
- 官方文档 https://docs.dev.runwayml.com/api/
在线测试 1.访问 https://runway.ddaiai.com (如果被墙了,换下二级域名前缀 suibian
)
2.如果发现被墙了 可以自己换地址 https://suibian.ddaiai.com
把 suibian
换其他的 如 https://2025.ddaiai.com
都能访问
在线测试
设置
- 打开 https://runway.ddaiai.com
- 下图相应的地方设置
- Runway 接口地址:https://api.openai-hk.com
- Runway KEY: hk-你的 apiKey
效果
得到效果
Runway API
- 约定 header 需要带上
Authorization: Bearer hk-你的key
- Runway 接口地址 https://api.openai-hk.com/runwayml
创建视频任务
curl
shell
curl --request POST \
--url https://api.openai-hk.com/runwayml/v1/image_to_video \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"promptImage": [
{"uri":"https://www.openai-hk.com/res/img/open.png","position":"first"},
{"uri":"https://www.openai-hk.com/res/img/open.png","position":"last"}
],
"seed": 4294967295,
"model": "gen4_turbo",
"promptText": "wave",
"watermark": false,
"duration": 5,
"ratio": "960:960"
}'
curl --request POST \
--url https://api.openai-hk.com/runwayml/v1/image_to_video \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"promptImage": [
{"uri":"https://www.openai-hk.com/res/img/open.png","position":"first"},
{"uri":"https://www.openai-hk.com/res/img/open.png","position":"last"}
],
"seed": 4294967295,
"model": "gen4_turbo",
"promptText": "wave",
"watermark": false,
"duration": 5,
"ratio": "960:960"
}'
请求体
json
{
"promptImage": [
{
"uri": "https://www.openai-hk.com/res/img/open.png",
"position": "first"
},
{ "uri": "https://www.openai-hk.com/res/img/open.png", "position": "last" }
],
"seed": 4294967295,
"model": "gen4_turbo",
"promptText": "wave",
"watermark": false,
"duration": 5,
"ratio": "1280:768"
}
{
"promptImage": [
{
"uri": "https://www.openai-hk.com/res/img/open.png",
"position": "first"
},
{ "uri": "https://www.openai-hk.com/res/img/open.png", "position": "last" }
],
"seed": 4294967295,
"model": "gen4_turbo",
"promptText": "wave",
"watermark": false,
"duration": 5,
"ratio": "1280:768"
}
关键字段说明
字段 | 类型 | 说明 |
---|---|---|
promptImage | object[] | promptImage 参考图 首帧跟尾帧 |
promptImage[0].uri | string | 可以是图片的 url, 也可以是 base64 |
promptImage[0].position | string | 图片位置first 首帧 last 尾帧 |
duration | int | 时长 5 或者 10 |
seed | int | 种子 |
ratio | string | gen3a_turbo 仅支持 1280:768 为横屏 768:1280 为竖屏,gen4_turbo 支持 1280:720 720:1280 1104:832 832:1104 960:960 1584:672 |
model | string | 模型支持 gen3a_turbo gen4_turbo |
notify_hook | string | 回调地址 不是必须 |
返回体
json
{
"id": "c7f2b640-9adb-4565-8e99-f759cacef00c"
}
{
"id": "c7f2b640-9adb-4565-8e99-f759cacef00c"
}
得到 task.id
为TaskID
供任务查询
任务查询
shell
curl --request GET \
--url https://api.openai-hk.com/runwayml/v1/tasks/c7f2b640-9adb-4565-8e99-f759cacef00c \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
curl --request GET \
--url https://api.openai-hk.com/runwayml/v1/tasks/c7f2b640-9adb-4565-8e99-f759cacef00c \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
返回体.成功
json
{
"id": "c7f2b640-9adb-4565-8e99-f759cacef00c",
"output": [
"https://dnznrvs05pmza.cloudfront.net/94a66520-1a1b-43c3-a684-676b3f7dabae.mp4?_jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXlIYXNoIjoiMDdmYzk5YjQxNmFlZTdiYSIsImJ1Y2tldCI6InJ1bndheS10YXNrLWFydGlmYWN0cyIsInN0YWdlIjoicHJvZCIsImV4cCI6MTczMTgwMTYwMH0.BbJr86wkWwEjngHBwQutQV-4BgQjG1jdQsMLS4eAxN0"
],
"status": "SUCCEEDED",
"createdAt": "2024-11-15T13:54:50.800Z"
}
{
"id": "c7f2b640-9adb-4565-8e99-f759cacef00c",
"output": [
"https://dnznrvs05pmza.cloudfront.net/94a66520-1a1b-43c3-a684-676b3f7dabae.mp4?_jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXlIYXNoIjoiMDdmYzk5YjQxNmFlZTdiYSIsImJ1Y2tldCI6InJ1bndheS10YXNrLWFydGlmYWN0cyIsInN0YWdlIjoicHJvZCIsImV4cCI6MTczMTgwMTYwMH0.BbJr86wkWwEjngHBwQutQV-4BgQjG1jdQsMLS4eAxN0"
],
"status": "SUCCEEDED",
"createdAt": "2024-11-15T13:54:50.800Z"
}
返回体.失败
json
{
"id": "87f8a40c-2bf2-4a58-9fdc-486ed7c7244d",
"status": "FAILED",
"failure": "Text prompt did not pass moderation",
"createdAt": "2024-11-15T16:06:41.521Z",
"failureCode": "INPUT_PREPROCESSING.SAFETY.TEXT"
}
{
"id": "87f8a40c-2bf2-4a58-9fdc-486ed7c7244d",
"status": "FAILED",
"failure": "Text prompt did not pass moderation",
"createdAt": "2024-11-15T16:06:41.521Z",
"failureCode": "INPUT_PREPROCESSING.SAFETY.TEXT"
}