Extend video
curl --request POST \
--url https://api.maxapi.ai/luma/v2/generations/task_id/extend \
--header 'Content-Type: application/json' \
--data '
{
"user_prompt": "cat dance"
}
'import requests
url = "https://api.maxapi.ai/luma/v2/generations/task_id/extend"
payload = { "user_prompt": "cat dance" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({user_prompt: 'cat dance'})
};
fetch('https://api.maxapi.ai/luma/v2/generations/task_id/extend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/luma/v2/generations/task_id/extend"
payload := strings.NewReader("{\n \"user_prompt\": \"cat dance\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.maxapi.ai/luma/v2/generations/task_id/extend")
.header("Content-Type", "application/json")
.body("{\n \"user_prompt\": \"cat dance\"\n}")
.asString();{
"id": "9d4b7516-77e5-481a-b015-48313946f33b",
"prompt": "cat dance",
"state": "pending",
"created_at": "2024-07-01T07:35:13.498660Z",
"video": null,
"liked": null,
"estimate_wait_seconds": null
}Extend video
Use this endpoint to call the provider-compatible extend video operation through MaxAPI.
POST
https://api.maxapi.ai
/
luma
/
v2
/
generations
/
task_id
/
extend
Extend video
curl --request POST \
--url https://api.maxapi.ai/luma/v2/generations/task_id/extend \
--header 'Content-Type: application/json' \
--data '
{
"user_prompt": "cat dance"
}
'import requests
url = "https://api.maxapi.ai/luma/v2/generations/task_id/extend"
payload = { "user_prompt": "cat dance" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({user_prompt: 'cat dance'})
};
fetch('https://api.maxapi.ai/luma/v2/generations/task_id/extend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/luma/v2/generations/task_id/extend"
payload := strings.NewReader("{\n \"user_prompt\": \"cat dance\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.maxapi.ai/luma/v2/generations/task_id/extend")
.header("Content-Type", "application/json")
.body("{\n \"user_prompt\": \"cat dance\"\n}")
.asString();{
"id": "9d4b7516-77e5-481a-b015-48313946f33b",
"prompt": "cat dance",
"state": "pending",
"created_at": "2024-07-01T07:35:13.498660Z",
"video": null,
"liked": null,
"estimate_wait_seconds": null
}Body
application/json