跳转到主要内容
GET
/
v1
/
videos
/
{video_id}
/
content
Download finished Sora video content
curl --request GET \
  --url https://api.cometapi.com/v1/videos/{video_id}/content \
  --header 'Authorization: Bearer <token>'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

当任务状态达到 completed 后,使用此端点下载已完成的 Sora 输出。在此之前,它会返回错误而不是视频文件。

下载前须知

  • 等待 获取视频 返回 status: completed
  • 传入创建或 remix 步骤中的 video_id
  • 如果你需要文件在提供商的临时交付窗口结束后仍可用,请将其存储到你自己的 bucket 或 CDN 中

下载流程

1

创建或 remix 视频

创建视频Remix Video 开始。
2

轮询直到完成

使用 获取视频,直到任务状态达到 completed
3

获取二进制文件

调用此端点以下载 MP4 或其他受支持的资源变体。

临时交付窗口

渲染完成后,请尽快获取文件。提供商的交付 URL 不是永久有效的。

授权

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

路径参数

video_id
string
必填

Completed video id.

查询参数

variant
string

Optional content variant such as the main video, thumbnail, or spritesheet when supported by the provider.

响应

Binary video content.

The response is of type file.