Videa Docs

Video Generation

Async AI video generation with task tracking.

Overview

Video generation is an asynchronous process. Unlike chat and image generation, results are not immediately available.

Endpoints

EndpointMethodDescription
/api/video/generatePOSTSubmit generation request
/api/video/statusGETCheck task status

Async Workflow

  1. Submit — User sends prompt to /api/video/generate
  2. Task Created — Volcano Engine returns a taskId
  3. Poll — Client polls /api/video/status?taskId=xxx
  4. Complete — When status is completed, resultUrl contains the video

Request

{
  "prompt": "A cat playing piano",
  "referenceImage": "optional-base64-or-url"
}

Supports both text-to-video and image-to-video modes.

Credit Cost

  • 50 credits per video generation
  • Credits are deducted at submission, refunded if the task fails

Task States

StatusDescription
pendingTask submitted, waiting to start
processingGeneration in progress
completedVideo ready at resultUrl
failedGeneration failed, credits refunded

On this page