Execute directly against our high-throughput gateway. Replace YOUR_LUMOZ_API_KEY with your free developer key.
curl -X POST "https://lumozai.com/api/v4/run" \
-H "Authorization: Bearer YOUR_LUMOZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "lumoz-video",
"prompt": "Drone shot soaring over misty pine forest in the Swiss Alps at dawn, 4k cinematic video",
"duration": 5,
"aspect_ratio": "16:9",
"webhook_url": "https://yourapp.com/webhooks/video"
}'
import requests
url = "https://lumozai.com/api/v4/run"
headers = {"Authorization": "Bearer YOUR_LUMOZ_API_KEY"}
payload = {
"model": "lumoz-video",
"prompt": "Cinematic slow motion shot of water droplets splashing on tropical leaf",
"duration": 5,
"aspect_ratio": "16:9"
}
res = requests.post(url, json=payload, headers=headers).json()
print("Video request ID:", res.get("request_id"))
const res = await fetch("https://lumozai.com/api/v4/run", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_LUMOZ_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
model: "lumoz-video",
prompt: "A futuristic hovercar flying through neon cyberpunk skyscraper canyon",
duration: 5
})
});
const data = await res.json();
console.log("Request ID:", data.request_id);