Skip to main content
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-xxxxxxxxxx

Query Parameters

string
必填
Video ID, which is the task_id returned by the query task API

Usage Example

Response Example

Response Field Description

Usage Instructions

Frontend Usage with data_url

The data_url field can be used directly in HTML <video> tags:

Download and Save File

Use the base64 field to save the video as a file:

JavaScript Example

Python Example

Complete Workflow Example (Sora 2)

  1. Submit Video Generation Task
    Response:
  2. Query Task Status (poll until success)
    When status is succeeded, proceed to next step.
  3. Download Video File

Submit Video Task

Submit video generation task

Query Video Task

Query video generation task status and results