COPY curl https://api.justapi.ai/v1/video/generations \
-H "Authorization: Bearer sk-••••••••" \
-H "Content-Type: application/json" \
-d '{"model":"happyhorse-1.0-t2v","prompt":"A slow cinematic camera move","parameters":{"resolution":"1080P","duration":5}}'import requests
response = requests.post(
"https://api.justapi.ai/v1/video/generations",
headers={"Authorization": "Bearer sk-••••••••"},
json={
"model": "happyhorse-1.0-t2v",
"prompt": "A slow cinematic camera move",
"parameters": {"resolution": "1080P", "duration": 5}
}
)
response.raise_for_status()
task = response.json()const response = await fetch("https://api.justapi.ai/v1/video/generations", {
method: "POST",
headers: {
"Authorization": "Bearer sk-••••••••",
"Content-Type": "application/json"
},
body: JSON.stringify({"model":"happyhorse-1.0-t2v","prompt":"A slow cinematic camera move","parameters":{"resolution":"1080P","duration":5}})
});
const task = await response.json();const response = await fetch("https://api.justapi.ai/v1/video/generations", {
method: "POST",
headers: {
"Authorization": "Bearer sk-••••••••",
"Content-Type": "application/json"
},
body: JSON.stringify({"model":"happyhorse-1.0-t2v","prompt":"A slow cinematic camera move","parameters":{"resolution":"1080P","duration":5}})
});
const task = await response.json();