All models
Other
Video
Available
Video Upscale
Upscale a source video to `1080P`, `2K`, or `4K` while keeping the original aspect ratio, frame rate, frame count, and audio.
Video Upscale
From 400 credits (≈ ₹400.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
video_urlRequired |
string | URL of the video to upscale. Required. - Must be a publicly downloadable HTTP(S) URL - Max file size: 50 MB; max duration: 60 seconds - Accepted formats: MP4, MOV, and MKV - Use a file URL after upload, not the file content itself format: uri |
resolution |
string | Target output box. Optional. Allowed values: `1080P`, `2K`, `4K` (uppercase, exactly as shown). Default: `2K`. - This is an output box: the source is fitted into the box while preserving aspect ratio; nothing is cropped - Sources larger than the box are scaled down to the box and enhanced; sources already at the box are enhanced only, so the output always matches the selected box - Landscape boxes: 1080P 1920×1080, 2K 2560×1440, 4K 3840×2160; portrait boxes are rotated 90° one of: "1080P", "2K", "4K" · default "2K" |
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": "video-upscale",
"input": {
"video_url": "https://example.com/input.png",
"resolution": "2K"
},
"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": "video-upscale",
"input": {
"video_url": "https://example.com/input.png",
"resolution": "2K",
},
"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": "video-upscale",
"input": {
"video_url": "https://example.com/input.png",
"resolution": "2K"
},
"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": "video-upscale",
"input": {
"video_url": "https://example.com/input.png",
"resolution": "2K"
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "video-upscale",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}