Legnext icon

Legnext

Interact with the Legnext API

Video → Video Diffusion

AI-generated

Summary

Trigger video diffusion using a source image or image URL

Inputs

  • sourceMode (required) — Choose how to specify the source image
  • jobId (required) — ID of the source image generation task
  • imageNo (required) — Which image to animate (0-3, corresponding to the 4 generated images)
  • promptFromJob — Optional video generation prompt text (1-8192 characters)
  • promptFromImageUrl (required) — Video generation prompt with image URL included. Format: "[image_url] your prompt text" (1-8192 characters).
  • videoType — Video quality type
  • callback — Optional webhook URL to receive the result when the video diffusion task is completed
  • requestOptions — Additional request configuration options (batching, SSL, proxy, timeout)

Output shape

a single object representing the API response, typically containing job status and result location

May include optional fields such as jobId; response may include a result URL; no pagination

Examples

Example 1: Start diffusion using a previously generated image job

Set sourceMode to From Job, provide the Job ID, optionally set imageNo to 0, leave other fields blank

Example 2: Generate video from an external image URL

Select sourceMode = From Image URL, fill promptFromImageUrl with "[image_url] your prompt", optionally set videoType and callback

Example 3: Configure advanced request options like batching and proxy

Enable batching with batchSize 20, batchInterval 1000, set proxy to "http://proxy:3128", adjust timeout if needed

Discussion