Get video
curl --request GET \
--url https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url"
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'}
};
fetch('https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.asString();{
"url": "https://dc53a917a6f427706a8ca3ecc7d70ea4.r2.cloudflarestorage.com/ai-lumalabs-storage-private/lit_lite_inference_text2vid_v1.0/1fa17995-f527-46a5-9796-294b453b8a7f/1fa17995-f527-46a5-9796-294b453b8a7f_raw_video_1_video006b20d61fd31411e99208caddb67c061.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=REDACTED&X-Amz-Date=20240707T160315Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=REDACTED"
}Get video
Use this endpoint to call the provider-compatible get video operation through MaxAPI.
GET
https://api.maxapi.ai
/
luma
/
v2
/
generations
/
task_id
/
download_video_url
Get video
curl --request GET \
--url https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url"
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'}
};
fetch('https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxapi.ai/luma/v2/generations/task_id/download_video_url")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.asString();{
"url": "https://dc53a917a6f427706a8ca3ecc7d70ea4.r2.cloudflarestorage.com/ai-lumalabs-storage-private/lit_lite_inference_text2vid_v1.0/1fa17995-f527-46a5-9796-294b453b8a7f/1fa17995-f527-46a5-9796-294b453b8a7f_raw_video_1_video006b20d61fd31411e99208caddb67c061.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=REDACTED&X-Amz-Date=20240707T160315Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=REDACTED"
}