- 前言(必读)
- OpenAI官方库使用教程
- 聊天模型(Chat)
- 向量嵌入
- 音频模型(Audio)
- 绘画模型(Painting)
- 音乐创作(suno)
- 视频模型(Video)
- 更多接口开发中...
查询:批量查询任务
POST
/luma/tasks
请求参数
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 '/luma/tasks' \
--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
}
}
]
}