- OpenAI通用接口
- 全能模型接口
- kimi
- 通义千问
- 智谱
- 秘塔搜索
- 讯飞星火
- 海螺
- deepseek
- Openai
- Suno(音乐)
- Midjourney(绘画)
- Flux(绘图)
- Recraft(绘图)
- Ideogram(绘画)
- Luma(视频)
- Runway(视频)
- 可灵(视频)
指定ID获取任务
测试中
GET
https://api.ecovai.cn/luma/v1/task
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
id
string
可选
示例值:
9fd428a2-5f83-4170-b657-821a293c8855
Header 参数
Authorization
string
可选
示例值:
{{YOUR_API_KEY}}
示例代码
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.ecovai.cn/luma/v1/task?id=9fd428a2-5f83-4170-b657-821a293c8855' \
--header 'Authorization: {{YOUR_API_KEY}}'
返回响应
🟢200成功
application/json
Body
id
string
必需
liked
null
必需
state
string
必需
video
object
必需
url
string
必需
width
integer
必需
height
integer
必需
thumbnail
string
必需
download_url
string
必需
prompt
string
必需
created_at
string
必需
estimate_wait_seconds
null
必需
示例
{
"id": "b307e8ea-1bd9-4962-a6b1-7361e02e0a72",
"state": "completed",
"video": {
"url": "https://storage.cdn-luma.com/dream-machine/307d45a3-dc6f-4123-a967-f0493894ca70/03a5271c-c9ad-4586-b2ae-c076212348d8/video008dfd75c3bc145a6b157a8fcc8f4d657.mp4",
"width": 1360,
"height": 752,
"download_url": "https://storage.cdn-luma.com/dream-machine/307d45a3-dc6f-4123-a967-f0493894ca70/03a5271c-c9ad-4586-b2ae-c076212348d8/video008dfd75c3bc145a6b157a8fcc8f4d657.mp4"
},
"request": {
"prompt": "The Tyrannosaurus rex transformed into a brightly colored rooster",
"aspect_ratio": "16:9"
},
"artifact": {
"video": {
"url": "https://storage.cdn-luma.com/dream-machine/307d45a3-dc6f-4123-a967-f0493894ca70/03a5271c-c9ad-4586-b2ae-c076212348d8/video008dfd75c3bc145a6b157a8fcc8f4d657.mp4",
"width": 1360,
"height": 752,
"download_url": "https://storage.cdn-luma.com/dream-machine/307d45a3-dc6f-4123-a967-f0493894ca70/03a5271c-c9ad-4586-b2ae-c076212348d8/video008dfd75c3bc145a6b157a8fcc8f4d657.mp4"
},
"thumbnail": {
"url": "https://imagedelivery.net/1KomXrSWiTojGGip43n0SQ/a66e3eac-104d-4847-fd53-83049e944000/public",
"width": 1360,
"height": 752,
"palette": null,
"media_type": "image"
},
"video_raw": {
"url": "https://storage.cdn-luma.com/dream-machine/307d45a3-dc6f-4123-a967-f0493894ca70/03a5271c-c9ad-4586-b2ae-c076212348d8/video008dfd75c3bc145a6b157a8fcc8f4d657.mp4",
"width": 1360,
"height": 752,
"duration": 4.75,
"media_type": "video"
},
"created_at": "0001-01-01T00:00:00Z",
"last_frame": {
"url": "https://storage.cdn-luma.com/dream-machine/307d45a3-dc6f-4123-a967-f0493894ca70/7f39a7b8-6da8-49f9-b05c-a950e5bca7cd/video_0_last_frame.jpg",
"width": 1360,
"height": 752,
"palette": null,
"media_type": "image"
}
},
"thumbnail": {
"url": "https://imagedelivery.net/1KomXrSWiTojGGip43n0SQ/a66e3eac-104d-4847-fd53-83049e944000/public",
"width": 1360,
"height": 752,
"palette": null,
"media_type": "image"
},
"video_raw": {
"url": "https://storage.cdn-luma.com/dream-machine/307d45a3-dc6f-4123-a967-f0493894ca70/03a5271c-c9ad-4586-b2ae-c076212348d8/video008dfd75c3bc145a6b157a8fcc8f4d657.mp4",
"width": 1360,
"height": 752,
"duration": 4.75,
"media_type": "video"
},
"created_at": "2024-12-13T03:40:55.123Z",
"last_frame": {
"url": "https://storage.cdn-luma.com/dream-machine/307d45a3-dc6f-4123-a967-f0493894ca70/7f39a7b8-6da8-49f9-b05c-a950e5bca7cd/video_0_last_frame.jpg",
"width": 1360,
"height": 752,
"palette": null,
"media_type": "image"
}
}
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2024-12-15 04:13:04