获取任务信息
GET
/uniapp-service/api/runway/getTask
Runway任务管理
请求参数
Query 参数
taskId
string
taskId
Header 参数
Authorization
string
可选
默认值:
sk-12345678abcdefg
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.qimuinfo.top/uniapp-service/api/runway/getTask?taskId' \
--header 'Authorization: sk-12345678abcdefg'
返回响应
🟢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
}
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
修改于 2024-12-07 12:01:36