English
English
Appearance
English
English
Appearance
lumaluma has no official API; it is obtained through reverse engineering, similar to GPTstext-to-video and image-to-videorelax and pro โ see Version Endpointsrelax (watermarked, queue required); pro has no watermark and no queueOnline Test section belowOnline Test 1. Visit https://luma.ddaiai.com (if blocked, try changing the subdomain prefix to suibian)
2. If it is blocked, you can change the address yourself: https://suibian.ddaiai.com โ replace suibian with something else, e.g. https://2024.ddaiai.com, all work

Sample output 
Authorization: Bearer hk-your-keycurl 'https://api.openai-hk.com/luma/generations/' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-ไฝ ็key' \
--data '{"aspect_ratio":"16:9","expand_prompt":true,"image_url":"","user_prompt":"็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ"}'curl 'https://api.openai-hk.com/luma/generations/' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-ไฝ ็key' \
--data '{"aspect_ratio":"16:9","expand_prompt":true,"image_url":"","user_prompt":"็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ"}'Request body
{
"aspect_ratio": "16:9",
"expand_prompt": true,
"loop": false,
"image_url": "",
"image_end_url": "",
"user_prompt": "็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ",
"resolution": "720p",
"duration": "5s",
"model_name": "ray-v1"
}{
"aspect_ratio": "16:9",
"expand_prompt": true,
"loop": false,
"image_url": "",
"image_end_url": "",
"user_prompt": "็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ",
"resolution": "720p",
"duration": "5s",
"model_name": "ray-v1"
}| Field | Type | Description |
|---|---|---|
| user_prompt | string | Prompt text |
| image_url | string | Keyframe start image URL, supports base64 |
| image_end_url | string | Keyframe end image URL, supports base64 |
| aspect_ratio | string | Video aspect ratio |
| expand_prompt | boolean | Whether to expand the prompt |
| loop | boolean | Whether to loop (seamless start-to-end) |
| resolution | string | 720p or 1080p, default 720p |
| duration | string | Duration: 5s or 10s |
| model_name | string | Model: ray-v1 ray-v2 ray-v3 (shown as ray1.6 ray2 ray3 officially) |
Response body
{
"created_at": "2024-06-24T03:40:47.505420Z",
"estimate_wait_seconds": "",
"id": "50deb9e0-d135-4173-a530-82ed3449a7b9",
"liked": "",
"prompt": "็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ",
"state": "pending",
"video": {
"height": 0,
"thumbnail": "",
"url": "",
"download_url": "",
"width": 0
}
}{
"created_at": "2024-06-24T03:40:47.505420Z",
"estimate_wait_seconds": "",
"id": "50deb9e0-d135-4173-a530-82ed3449a7b9",
"liked": "",
"prompt": "็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ",
"state": "pending",
"video": {
"height": 0,
"thumbnail": "",
"url": "",
"download_url": "",
"width": 0
}
}curl 'https://api.openai-hk.com/luma/generations/50deb9e0-d135-4173-a530-82ed3449a7b9/extend' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-ไฝ ็key' \
--data '{ "expand_prompt":true,"image_url":"","user_prompt":"ๅ้ข่ท็ไธ่พๅก่ฝฆ"}'curl 'https://api.openai-hk.com/luma/generations/50deb9e0-d135-4173-a530-82ed3449a7b9/extend' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-ไฝ ็key' \
--data '{ "expand_prompt":true,"image_url":"","user_prompt":"ๅ้ข่ท็ไธ่พๅก่ฝฆ"}'Request body
{
"expand_prompt": true,
"loop": false,
"image_url": "",
"image_end_url": "",
"user_prompt": "ๅ้ข่ท็ไธ่พๅก่ฝฆ"
}{
"expand_prompt": true,
"loop": false,
"image_url": "",
"image_end_url": "",
"user_prompt": "ๅ้ข่ท็ไธ่พๅก่ฝฆ"
}| Field | Type | Description |
|---|---|---|
| image_url | string | Keyframe start image URL, supports base64 |
| image_end_url | string | Keyframe end image URL, supports base64 |
| aspect_ratio | string | Video aspect ratio |
| expand_prompt | boolean | Whether to expand the prompt |
| loop | boolean | Whether to loop (seamless start-to-end) |
Response body
{
"created_at": "2024-06-24T03:40:47.505420Z",
"estimate_wait_seconds": "",
"id": "50deb9e0-d135-4173-a530-82ed3449a7b9",
"liked": "",
"prompt": "็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ",
"state": "pending",
"video": {
"height": 0,
"thumbnail": "",
"url": "",
"download_url": "",
"width": 0
}
}{
"created_at": "2024-06-24T03:40:47.505420Z",
"estimate_wait_seconds": "",
"id": "50deb9e0-d135-4173-a530-82ed3449a7b9",
"liked": "",
"prompt": "็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ",
"state": "pending",
"video": {
"height": 0,
"thumbnail": "",
"url": "",
"download_url": "",
"width": 0
}
}get https://api.openai-hk.com/pro/luma/generations/{id}/download_video_url
curl 'https://api.openai-hk.com/luma/generations/50deb9e0-d135-4173-a530-82ed3449a7b9/download_video_url' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-your-key'curl 'https://api.openai-hk.com/luma/generations/50deb9e0-d135-4173-a530-82ed3449a7b9/download_video_url' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-your-key'Response body
{
"url": "https://dc53a917a6f427706a8ca3ecc7d70ea4.r2.cloudflarestorage.com/ai-lumalabs-storage-private/lit_lite_inference_im2vid_v1.0/410586f1-f2b9-447a-9651-66e502cf10da/410586f1-f2b9-447a-9651-66e502cf10da_raw_video_1_video0593ab596eb51488a8f5e00fcb5401b93.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=60bf44f30d45b472f9dd032de33e15d1%2F20240630%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20240630T165615Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=205ac50f173f7f6b260bc5026b9f6b3719c7c690f27fccec8cce0b4b43491750"
}{
"url": "https://dc53a917a6f427706a8ca3ecc7d70ea4.r2.cloudflarestorage.com/ai-lumalabs-storage-private/lit_lite_inference_im2vid_v1.0/410586f1-f2b9-447a-9651-66e502cf10da/410586f1-f2b9-447a-9651-66e502cf10da_raw_video_1_video0593ab596eb51488a8f5e00fcb5401b93.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=60bf44f30d45b472f9dd032de33e15d1%2F20240630%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20240630T165615Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=205ac50f173f7f6b260bc5026b9f6b3719c7c690f27fccec8cce0b4b43491750"
}curl 'https://api.openai-hk.com/luma/generations/50deb9e0-d135-4173-a530-82ed3449a7b9' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-your-key'curl 'https://api.openai-hk.com/luma/generations/50deb9e0-d135-4173-a530-82ed3449a7b9' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-your-key'Response body
{
"created_at": "2024-06-24T03:40:47.505420Z",
"estimate_wait_seconds": "",
"id": "50deb9e0-d135-4173-a530-82ed3449a7b9",
"liked": "",
"prompt": "็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ",
"state": "processing",
"video": {
"height": 0,
"thumbnail": "",
"url": "",
"download_url": "pro็ๆฌๆ ๆฐดๅฐๅจ่ฟไธชๅฐๅ, ๆณจๆไฟๅญ่ฟไธชๅฐๅๅฏ่ฝ่ฟๆๅคฑๆ",
"width": 0
}
}{
"created_at": "2024-06-24T03:40:47.505420Z",
"estimate_wait_seconds": "",
"id": "50deb9e0-d135-4173-a530-82ed3449a7b9",
"liked": "",
"prompt": "็นๆฏๆ้ฃ้ๅจๅ
ฌ่ทฏไธ",
"state": "processing",
"video": {
"height": 0,
"thumbnail": "",
"url": "",
"download_url": "pro็ๆฌๆ ๆฐดๅฐๅจ่ฟไธชๅฐๅ, ๆณจๆไฟๅญ่ฟไธชๅฐๅๅฏ่ฝ่ฟๆๅคฑๆ",
"width": 0
}
}state is completed, the task is done โ video.download_url will contain a linkstate is failed, generation has failed
- The video at
download_urlhas no watermark; note that this URL may expire- pro version requires no queue wait