Enhance the resolution and quality of generated videos using advanced AI upscaling technology.

Endpoint

POST https://api.legnext.ai/api/v1/video-upscale

Headers

HeaderTypeRequiredDescription
x-api-keystringYesYour API key

Request Body

ParameterTypeRequiredDescription
jobIdstringYesID of the original video generation task
videoNointegerYesVideo number to upscale (0/1/2/3)
callbackstringNoCallback URL for task completion notifications

Example Request

curl -X POST "https://api.legnext.ai/api/v1/video-upscale" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jobId": "b24ffa07-7b76-49a2-963e-f6c527f7cec7",
    "videoNo": 0,
    "callback": "https://webhook.site/c98cb890-fb92-439f-8d60-42c8a51eb52d"
  }'

Response

Returns a task object containing the task information.
{
    "job_id": "f44678af-7fd0-4522-aff3-9ff116b9845d",
    "model": "midjourney",
    "task_type": "video_upscale",
    "status": "completed",
    "config": {
        "service_mode": "public",
        "webhook_config": {
            "endpoint": "",
            "secret": ""
        }
    },
    "input": null,
    "output": {
        "video_urls": [
            "https://image.legnext.ai/20250922/01k5r552x4fpnsp56agx4p5r2h_0_0_1080_N.mp4?Expires=1761118081&Signature=yZOYilqwdmRPMsHtYUfV0nS8%2BY4%3D"
        ]
    },
    "meta": {
        "created_at": "2025-09-22T07:27:56Z",
        "started_at": "2025-09-22T07:28:00Z",
        "ended_at": "2025-09-22T07:28:06Z",
        "usage": {
            "type": "point",
            "frozen": 00,
            "consume": 00
        }
    },
    "detail": null,
    "logs": [],
    "error": {
        "code": 0,
        "raw_message": "",
        "message": "",
        "detail": null
    }
}