1. Video content
Ark-Docs
  • Video (Doubao native)
    • Submit a video generation task (Doubao native)
      POST
    • Retrieve a video generation task (Doubao native)
      GET
  • Video (OpenAI compatible)
    • Submit a video generation task (OpenAI compatible)
      POST
    • Retrieve a video generation task
      GET
    • Submit a video generation task (OpenAI Video alias)
      POST
    • Retrieve a video generation task (OpenAI Video alias)
      GET
  • Video content
    • Download the generated video file
      GET
  • Image (Doubao native)
    • Generate an image (Doubao native)
      POST
  • Image (OpenAI compatible)
    • Generate an image (OpenAI compatible)
      POST
    • Edit an image (OpenAI compatible)
      POST
  • Asset library (Doubao native)
    • Manage the asset library (Doubao native)
      POST
  • 数据模型
    • VideoGenerationRequest
    • VideoFormDataRequest
    • VideoMetadata
    • DoubaoNativeVideoRequest
    • DoubaoNativeContentItem
    • VideoTaskResponse
    • DoubaoNativeVideoResponse
    • VideoTaskError
    • DoubaoImageRequest
    • ImageEditFormDataRequest
    • DoubaoImageResponse
    • ErrorResponse
    • DoubaoAssetRequest
    • DoubaoAssetResponse
  1. Video content

Download the generated video file

GET
/v1/videos/{task_id}/content
Stream the finished video file through the gateway.
Requirement: the task must be completed, otherwise the endpoint returns 400.
How it works
1.
The gateway looks up the upstream video URL for task_id.
2.
It streams the file back from the upstream provider.
3.
The response carries Cache-Control: public, max-age=86400.
Authentication: a bearer token or a dashboard session cookie both work.

请求参数

Authorization
JWT Bearer
在 Header 添加参数
Authorization
示例:
Authorization: ********************
or
API Key
在 cookie 添加参数
session
示例:
session: ********************
or
Path 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/v1/videos/task_abc123def456/content' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200
video/mp4
Video file stream.
🟠400
🔴502
🟠401Unauthorized
🟠404NotFound
修改于 2026-10-27 14:29:06
上一页
Retrieve a video generation task (OpenAI Video alias)
下一页
Generate an image (Doubao native)
Built with