Legnext icon

Legnext

Interact with the Legnext API

Video → Extend Video

AI-generated

Summary

Extend video by generating additional frames using a custom prompt.

Inputs

  • jobId (required) — ID of the original video generation task
  • videoNo (required) — Which video to extend (0-3, corresponding to the 4 generated videos)
  • prompt — Optional text prompt to guide the extension (1-8192 characters)
  • callback — Optional webhook URL to receive the result when the extend video task is completed
  • requestOptions — Additional HTTP request configuration such as batching, proxy, timeout, and SSL options

Output shape

a single record representing the extended video job

Contains job details; may include status information and is not paginated

Examples

Example 1: Extend the first generated video with a custom prompt

jobId: $json["jobId"], videoNo: 0, prompt: "add dramatic lighting", requestOptions: {batchSize: 10}

Example 2: Chain multiple extensions for different videos

videoNo: 1, prompt: "increase frame rate", callback: "https://mywebhook.com/legnext"

Discussion