查询:批量查询任务
POST
https://api.chatgptsb.com/luma/tasks
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer sk-xxxx
Body 参数application/json
ids
array[string]
必需
示例
{
"ids": [
"aaaaaaa",
"bbbbbbb"
]
}
示例代码
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.chatgptsb.com/luma/tasks' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"ids": [
"aaaaaaa",
"bbbbbbb"
]
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string
必需
data
array [object {12}]
必需
id
integer
可选
created_at
string
可选
updated_at
string
可选
task_id
string
可选
platform
string
可选
action
string
可选
status
string
可选
fail_reason
string
可选
submit_time
integer
可选
start_time
integer
可选
finish_time
integer
可选
data
object
可选
示例
{
"code": "success",
"message": "",
"data": [
{
"id": 13917,
"created_at": "2024-07-01T07:35:13.568Z",
"updated_at": "2024-07-01T07:35:23.654Z",
"task_id": "9d4b7516-77e5-481a-b015-48313946f33b",
"platform": "luma_free",
"action": "LUMA_VIDEO",
"status": "IN_PROGRESS",
"fail_reason": "",
"submit_time": 1719819313,
"start_time": 1719819323,
"finish_time": 0,
"data": {
"id": "9d4b7516-77e5-481a-b015-48313946f33b",
"liked": null,
"state": "processing",
"video": null,
"prompt": "cat dance",
"created_at": "2024-07-01T07:35:13.498000Z",
"estimate_wait_seconds": null
}
}
]
}
修改于 2024-11-26 03:09:07