查询:单个任务
GET
https://api.chatgptsb.com/luma/generations/{task_id}
请求参数
Path 参数
task_id
string
必需
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer sk-xxxx
示例代码
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.chatgptsb.com/luma/generations/' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json'
返回响应
🟢200成功
application/json
Body
id
string
必需
liked
null
必需
state
string
必需
video
object
必需
url
string
必需
width
integer
必需
height
integer
必需
download_url
string
必需
prompt
string
必需
created_at
string
必需
estimate_wait_seconds
null
必需
示例
{
"id": "9d4b7516-77e5-481a-b015-48313946f33b",
"liked": null,
"state": "completed",
"video": {
"url": "https://storage.cdn-luma.com/dream_machine/f66925e5-7ca7-40d2-9138-2ce7843c1fa3/watermarked_video0dbcbf225e384493ca489fdc5028764bf.mp4",
"width": 1360,
"height": 752,
"download_url": "https://dc53a917a6f427706a8ca3ecc7d70ea4.r2.cloudflarestorage.com/ai-lumalabs-storage/dream_machine/f66925e5-7ca7-40d2-9138-2ce7843c1fa3/c9771d2b-9e05-46cf-b21a-45e22ec28f36_raw_video_0.mp4_video0dbcbf225e384493ca489fdc5028764bf.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=60bf44f30d45b472f9dd032de33e15d1%2F20240823%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20240823T102426Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=d858cd9fd9408e636ae64b8af7166c19db37a46cf600e9c85fc2bb73127d0ec1"
},
"prompt": "cat dance",
"created_at": "2024-07-01T07:35:13.498000Z",
"estimate_wait_seconds": null
}
修改于 2024-11-26 03:08:47