Legnext icon

Legnext

Interact with the Legnext API

Video → Upscale Video

AI-generated

Summary

Initiates an upscale video task for a specified generated video.

Inputs

  • jobId (required) — ID of the original video generation task.
  • videoNo (required) — Which video to upscale (0-3, corresponding to the 4 generated videos).
  • callback — Optional webhook URL to receive the result when the upscale video task is completed.
  • requestOptions — HTTP request settings such as batching, proxy, timeout, and SSL verification.

Output shape

a JSON object containing the status and task ID of the upscale operation.

May include a 'taskId' field; additional fields depend on the API response and optional callback.

Examples

Example 1: Upscale the second generated video and receive a webhook

jobId: 'task_001', videoNo: 1, callback: 'https://example.com/webhook', requestOptions: { batching: { batchSize: 10 } }

Example 2: Trigger upscale for the first video without a callback

jobId: 'task_002', videoNo: 0, callback: ''

Example 3: Batch upscale multiple videos using request options

jobId: 'task_003', videoNo: 2, requestOptions: { batching: { batchSize: 5 }, timeout: 15000 }

Discussion