All models
HappyHorse
Video
Available
HappyHorse Video-Edit
The output has the same duration as the input video and is rendered at the selected resolution.
Video Editing
Video to Video
From 400 credits (≈ ₹400.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptRequired |
string | Required edit instruction describing the intended change (e.g., style transfer / local replacement). Up to 5,000 characters. max length 5000 |
video_urlRequired |
string | URL of the input video (one video). Video requirements: Format: MP4, MOV (H.264 encoding recommended). Duration: 3–60 seconds. Resolution: the longer side must not exceed 2,160 px; the shorter side must be at least 320 px. Aspect ratio: 1:2.5–2.5:1. File size: up to 100 MB. Frame rate: greater than 8 fps. format: uri |
reference_image |
array<string> | Optional reference image URL list (0–5). Image requirements: Format: JPEG, JPG, PNG, WEBP. Resolution: both width and height must be at least 300 px. Aspect ratio: 1:2.5–2.5:1. File size: up to 10 MB. |
resolution |
string | Output video resolution: 720p or 1080p (default). one of: "720p", "1080p" · default "1080p" |
audio_setting |
string | Audio handling: auto lets the model handle audio; origin keeps the input video's original audio where possible. one of: "auto", "origin" · default "auto" |
seed |
integer | Random seed for reproducibility. min 0 · max 2147483647 · default 0 |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "happyhorse-video-edit",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"audio_setting": "auto",
"seed": 0
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "happyhorse-video-edit",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"audio_setting": "auto",
"seed": 0,
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "happyhorse-video-edit",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"audio_setting": "auto",
"seed": 0
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "happyhorse-video-edit",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"audio_setting": "auto",
"seed": 0
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "happyhorse-video-edit",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}