Skip to main content
GET

Introduction

The query video task endpoint is used to check the status and results of a video generation task by task ID. After submitting a task, you need to periodically poll this endpoint to check the task status until the task is completed or failed.
We recommend polling the task status every 3-5 seconds until the status becomes succeeded or failed.

Authentication

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

Path Parameters

string
required
Video generation task ID, returned by the submit task endpoint

Task Status

cURL Example

Polling Examples

Python Example

JavaScript Example

Response Examples

Task Queued

Task In Progress

Task Succeeded (Veo/Doubao Seedance)

Veo include the video URL directly in the response when the task succeeds.

Task Succeeded (Sora 2)

Sora 2 model does not return a video URL directly. You need to call the download video endpoint to retrieve the video data.

Task Failed

Response Fields

Model Differences

Notes

  • Response fields may vary slightly between different models
  • Implement exponential backoff strategy to avoid excessive requests
  • Video generation typically takes 30 seconds to several minutes, please be patient