Skip to content

获取视频内容

GET /v1/videos/{task_id}/content

获取已完成视频任务的视频文件内容。

此接口会代理返回视频文件流。

基本信息

项目内容
Base URLhttps://www.yunzhuhub.cn
标签视频生成/Sora兼容格式
Operation IDgetVideoContent

认证

  • BearerAuth:使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

密钥安全

请只使用你自己的 API Key。示例中的 <YOUR_API_KEY> 必须在本地替换,不要把真实密钥提交到代码仓库或发送给他人。

参数

名称位置类型必填说明
task_idpathstring视频任务 ID

请求体

此接口没有请求体。

请求示例

以下示例只用于复制到本地终端,不会从文档站发送请求。

bash
curl --request GET 'https://www.yunzhuhub.cn/v1/videos/{task_id}/content' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'

响应

200 成功获取视频内容

json
{
  "type": "string",
  "format": "binary"
}

404 视频不存在或未完成

json
{
  "title": "ErrorResponse",
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "错误信息"
        },
        "type": {
          "type": "string",
          "description": "错误类型"
        },
        "param": {
          "type": "string",
          "description": "相关参数",
          "nullable": true
        },
        "code": {
          "type": "string",
          "description": "错误代码",
          "nullable": true
        }
      }
    }
  }
}

云筑Hub 文档。底层项目基于 New API