Skip to main content
GET
Query Video Task

Introduction

The query video task API is used to query the status and results of a video generation task by task ID. After submitting a task, you need to periodically poll this API to check the task status until the task completes or fails. Important Note: It is recommended to poll the task status every 3-5 seconds until the task status becomes succeeded or failed.

Authentication

string
required
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

Path Parameters

string
required
Video generation task ID returned by the submit task API

Response Description

Task Status

Response Example (Queued)

Response Example (In Progress)

Response Example (Completed)

Note: For Veo and Ali Wanxiang, the video URL is directly included in the response when the task succeeds. For Sora 2, you need to use the download API to get the video.

Response Example (Failed)

Usage Example

Polling Examples

Python Example

JavaScript Example

Submit Video Task

Submit video generation task

Download Video

Download completed video files (Sora 2 only)