> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tkhub.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取视频内容

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

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




## OpenAPI

````yaml /api.json get /v1/videos/{task_id}/content
openapi: 3.0.1
info:
  title: TKHub API
  description: TKHub 平台 API 接口文档
  version: 1.0.0
servers:
  - url: https://api.tkhub.ai
    description: 生产环境
  - url: https://api-test.tkhub.ai
    description: 测试环境
security:
  - bearerAuth: []
paths:
  /v1/videos/{task_id}/content:
    get:
      tags:
        - 视频生成/Sora兼容格式
      summary: 获取视频内容
      description: |
        获取已完成视频任务的视频文件内容。

        此接口会代理返回视频文件流。
      operationId: getVideoContent
      parameters:
        - name: task_id
          in: path
          description: 视频任务 ID
          required: true
          example: video-abc123
          schema:
            type: string
      responses:
        '200':
          description: 成功获取视频内容
          content:
            video/mp4:
              schema:
                type: string
                format: binary
          headers: {}
        '404':
          description: 视频不存在或未完成
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        使用 Bearer Token 认证。
        格式: `Authorization: Bearer sk-xxxxxx`

````