发起新任务
POST
/uniapp-service/api/runway/add
Runway任务管理
请求参数
Header 参数
Authorization
string
可选
默认值:
sk-12345678abcdefg
Body 参数application/json
添加Runway任务参数
callbackUrl
string
回调通知地址
示例值:
http://baidu.com
images
array[object (AddRunwayTaskImageDTO) {2}]
图片资源信息
frameIndex
integer <int32>
可选
示例值:
0
image
string
图片地址
示例值:
http://baidu.com
ratio
string
必需
示例值:
16:9
seconds
integer <int32>
必需
示例值:
10
taskType
string
必需
示例值:
gen3a_turbo
textPrompt
string
提示词
>= 0 字符<= 2000 字符
示例
{
"callbackUrl": "http://baidu.com",
"images": [
{
"frameIndex": 0,
"image": "http://baidu.com"
}
],
"ratio": "16:9",
"seconds": 10,
"taskType": "gen3a_turbo",
"textPrompt": "string"
}
示例代码
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.qimuinfo.top/uniapp-service/api/runway/add' \
--header 'Authorization: sk-12345678abcdefg' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
*/*
Body
接口调用返回结果
code
integer <int32>
必需
示例值:
0
message
string
返回结果说明信息
示例值:
执行成功
result
object (RunwayTaskVO)
返回结果数据
callbackUrl
string
回调通知地址
示例值:
http://baidu.com
createdTime
string
创建时间
示例值:
yyyy-MM-dd HH:mm:ss
error
string
错误信息
id
string
必需
示例值:
123456
images
array[object (RunwayTaskImageVO) {6}]
图片资源信息
modifiedTime
string
修改时间
示例值:
yyyy-MM-dd HH:mm:ss
ratio
string
必需
示例值:
16:9
seconds
integer <int32>
必需
示例值:
10
taskStatusCode
integer <int32>
必需
示例值:
0
taskType
string
必需
示例值:
gen3a_turbo
textPrompt
string
提示词
示例值:
fly
videoUrl
string
视频下载地址
示例值:
http://baidu.com
success
boolean
是否成功标志
示例值:
true
timestamp
integer <int64>
返回的时间戳
示例
{
"code": 0,
"message": "执行成功",
"result": {
"callbackUrl": "http://baidu.com",
"createdTime": "yyyy-MM-dd HH:mm:ss",
"error": "string",
"id": "123456",
"images": [
{
"createdTime": "yyyy-MM-dd HH:mm:ss",
"frameIndex": 0,
"imageActual": "string",
"imageOrg": "string",
"modifiedTime": "yyyy-MM-dd HH:mm:ss",
"taskId": "123456"
}
],
"modifiedTime": "yyyy-MM-dd HH:mm:ss",
"ratio": "16:9",
"seconds": 10,
"taskStatusCode": 0,
"taskType": "gen3a_turbo",
"textPrompt": "fly",
"videoUrl": "http://baidu.com"
},
"success": true,
"timestamp": 0
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
修改于 2024-12-07 12:01:36