Download Video
Download Video
GET
Download Video
Introduction
The download video API is used to retrieve completed video file data. Note: This API is only supported for Sora 2 models. For other models (Veo, Ali Wanxiang, Doubao Seedance), the video URL is directly included in the query task API response after the task succeeds, and no additional download step is required.Authentication
string
必填
Bearer Token, e.g.
Bearer sk-xxxxxxxxxxQuery Parameters
string
必填
Video ID, which is the
task_id returned by the query task APIUsage Example
Response Example
Response Field Description
Usage Instructions
Frontend Usage with data_url
Thedata_url field can be used directly in HTML <video> tags:
Download and Save File
Use thebase64 field to save the video as a file:
JavaScript Example
Python Example
Complete Workflow Example (Sora 2)
-
Submit Video Generation Task
Response:
-
Query Task Status (poll until success)
When status is
succeeded, proceed to next step. -
Download Video File
Related APIs
Submit Video Task
Submit video generation task
Query Video Task
Query video generation task status and results
