- 前言(必读)
- OpenAI官方SDK使用教程
- 批量请求示例
- 聊天模型(Chat)
- 内容审查
- 向量嵌入
- 图片处理
- 绘画模型(Painting)
- 视频模型(Video)
- 视频模型说明
- 快手可灵AI
- vidu视频
- 即梦AI
- pika视频
- luma视频
- runway 官方API
- runway 旧版API-暂时失效
- 数字人
- 音频模型(Audio)
- 音乐创作(suno)
- 文档处理
- 3D模型
- 网络爬虫
- 更多接口开发中...
- 查询令牌用量GET
- 查询令牌限额GET
- 查询账户信息GET
查询:单个任务
GET
/luma/generations/{task_id}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
task_id
string
必需
示例代码
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.gpt.ge/luma/generations/'
返回响应
🟢200成功
application/json
Body
id
string
必需
state
string
必需
video
object
必需
url
string
必需
width
integer
必需
height
integer
必需
download_url
string
必需
request
object
必需
prompt
string
必需
aspect_ratio
string
必需
artifact
object
必需
video
object
必需
thumbnail
object
必需
video_raw
object
必需
created_at
string
必需
last_frame
object
必需
thumbnail
object
必需
url
string
必需
width
integer
必需
height
integer
必需
palette
object
必需
media_type
string
必需
video_raw
object
必需
url
string
必需
width
integer
必需
height
integer
必需
duration
number
必需
media_type
string
必需
created_at
string
必需
last_frame
object
必需
url
string
必需
width
integer
必需
height
integer
必需
palette
null
必需
media_type
string
必需
failure_reason
null
必需
示例
{
"id": "e70fdf3c-ce95-4dd1-a967-220ce957aff5",
"state": "completed",
"video": {
"url": "https://storage.cdn-luma.com/dream-machine/907ef9be-7057-45de-9867-099d6aba37b7/6ece4f7a-f60a-442c-9ad2-84132a528741/video0bb8885f3511c4b7bad55c117405a2875.mp4",
"width": 1360,
"height": 752,
"download_url": "https://storage.cdn-luma.com/dream-machine/907ef9be-7057-45de-9867-099d6aba37b7/6ece4f7a-f60a-442c-9ad2-84132a528741/video0bb8885f3511c4b7bad55c117405a2875.mp4"
},
"request": {
"prompt": "美人鱼",
"aspect_ratio": "16:9"
},
"artifact": {
"video": {
"url": "https://storage.cdn-luma.com/dream-machine/907ef9be-7057-45de-9867-099d6aba37b7/6ece4f7a-f60a-442c-9ad2-84132a528741/video0bb8885f3511c4b7bad55c117405a2875.mp4",
"width": 1360,
"height": 752,
"download_url": "https://storage.cdn-luma.com/dream-machine/907ef9be-7057-45de-9867-099d6aba37b7/6ece4f7a-f60a-442c-9ad2-84132a528741/video0bb8885f3511c4b7bad55c117405a2875.mp4"
},
"thumbnail": {
"url": "https://imagedelivery.net/1KomXrSWiTojGGip43n0SQ/3d9fbfa9-6146-4eb9-3798-ac923a2a0e00/public",
"width": 1360,
"height": 752,
"palette": {
"grid": "CpCVPb67UdHMHbW0F42QHWBmX2FcJLSxAKipHH6DTFVTcU9GWpqdHJykU2lyel9MWEU/UF9vRH+aSFlrcVVOcVVISVFFSG97S1dp"
},
"media_type": "image"
},
"video_raw": {
"url": "https://storage.cdn-luma.com/dream-machine/907ef9be-7057-45de-9867-099d6aba37b7/6ece4f7a-f60a-442c-9ad2-84132a528741/video0bb8885f3511c4b7bad55c117405a2875.mp4",
"width": 1360,
"height": 752,
"duration": 5.041667,
"media_type": "video"
},
"created_at": "0001-01-01T00:00:00Z",
"last_frame": {
"url": "https://storage.cdn-luma.com/dream-machine/907ef9be-7057-45de-9867-099d6aba37b7/543b6898-5179-4477-bc9f-f6507c7cde97/video_0_last_frame.jpg",
"width": 1360,
"height": 752,
"palette": null,
"media_type": "image"
}
},
"thumbnail": {
"url": "https://imagedelivery.net/1KomXrSWiTojGGip43n0SQ/3d9fbfa9-6146-4eb9-3798-ac923a2a0e00/public",
"width": 1360,
"height": 752,
"palette": {
"grid": "CpCVPb67UdHMHbW0F42QHWBmX2FcJLSxAKipHH6DTFVTcU9GWpqdHJykU2lyel9MWEU/UF9vRH+aSFlrcVVOcVVISVFFSG97S1dp"
},
"media_type": "image"
},
"video_raw": {
"url": "https://storage.cdn-luma.com/dream-machine/907ef9be-7057-45de-9867-099d6aba37b7/6ece4f7a-f60a-442c-9ad2-84132a528741/video0bb8885f3511c4b7bad55c117405a2875.mp4",
"width": 1360,
"height": 752,
"duration": 5.041667,
"media_type": "video"
},
"created_at": "2024-12-24T18:01:25.319Z",
"last_frame": {
"url": "https://storage.cdn-luma.com/dream-machine/907ef9be-7057-45de-9867-099d6aba37b7/543b6898-5179-4477-bc9f-f6507c7cde97/video_0_last_frame.jpg",
"width": 1360,
"height": 752,
"palette": null,
"media_type": "image"
},
"failure_reason": null
}
修改于 2024-12-24 18:03:57