Skip to main content

How do I generate video via the API?

Video generation through the API is asynchronous:

  1. Optionally call /video/quote to get a price estimate for your request.

  2. POST to /video/queue to start the generation job. It returns a queue_id.

  3. Poll /video/retrieve with that queue_id until the job completes. Private models also return a download_url for the finished video.

Endpoint reference: Queue Video Generation and Retrieve Video.

Did this answer your question?