Skip to main content

GenerateVideo()

Generate a video from text prompt, image URL, or existing generated image.
Option 2: Generate from Image URL:
Option 3: Animate Generated Image:
Parameters:
  • Prompt (string, conditional): Video prompt or “[image_url] prompt text” (1-8192 characters) - required for text/URL mode
  • JobId (string, conditional): Original image generation job ID - required for image animation mode
  • ImageNo (int32, conditional): Image index (0-3) - required when using JobId
  • VideoType (int32, optional): Quality (0=480p, 1=720p)
  • Callback (string, optional): Webhook URL
Returns: Response with JobId and Status

ExtendVideo()

Extend an existing video.
Parameters:
  • JobId (string): Original video task ID
  • VideoNo (int32): Video index (0-3)
  • Prompt (string, optional): Extension prompt (1-8192 characters)
  • Callback (string, optional): Webhook URL
Returns: Response with JobId and Status

UpscaleVideo()

Upscale video to higher resolution.
Parameters:
  • JobId (string): Original video task ID
  • VideoNo (int32): Video index (0-3)
  • Callback (string, optional): Webhook URL
Returns: Response with JobId and Status

Complete Example


Error Handling


Next Steps