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

# 检查视频内容

> 请求格式、响应与能力边界。

`HEAD /v1/videos/{task_id}/content`

与 GET 内容入口使用相同认证、任务归属和完成状态检查，但不返回文件体。可以检查 HTTP 状态、Content-Type 和可用的长度信息。

Content-Length、Range 和缓存头可能因内容来源而异，HEAD 成功也不能替代实际下载验收。错误通常只看状态码，不能依赖 HEAD 的 JSON 错误体。

[完整接入指南与可执行示例](/zh/guides/video-generation)

[Read in English](/en/api-reference/videos-content-head)


## OpenAPI

````yaml /openapi/relay.json HEAD /v1/videos/{task_id}/content
openapi: 3.0.3
info:
  title: API — Core inference API
  version: 0.5.0
  description: >-
    面向接入的精选规范，不是全部管理或供应商接口。 / Curated integration specification, not the entire
    management or provider API.
  license:
    name: AGPL-3.0-or-later
servers:
  - url: https://gateway.example.com
    description: >-
      Example only; replace with your gateway origin and optional path prefix,
      without /v1.
security:
  - BearerAuth: []
paths:
  /v1/videos/{task_id}/content:
    head:
      summary: 检查视频内容 / Inspect video content
      description: >-
        常用接入字段；能力取决于模型、渠道与部署。 / Common integration fields; support depends on
        the model, channel, and deployment.
      operationId: HEADVideosContentHead
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
          description: >-
            同一用户/项目范围内的网关公开 ID / Public gateway ID in the same user/project
            scope
      responses:
        '200':
          description: >-
            只有响应头，没有响应体；头部可用性取决于内容源 / Headers only, no body; header availability
            depends on content source
          headers:
            Content-Type:
              schema:
                type: string
            Content-Length:
              schema:
                type: integer
        '400':
          description: 请求参数错误 / Invalid request
        '401':
          description: 身份校验失败 / Authentication failed
        '403':
          description: 访问被拒绝 / Access denied
        '404':
          description: 接口或资源不存在 / Endpoint or resource not found
        '410':
          description: 内容已不可用 / Content no longer available
        '429':
          description: 请求被限流或受配额限制 / Rate or quota restriction
        '500':
          description: 网关或上游错误 / Gateway or upstream error
        '502':
          description: 内容代理或上游失败 / Content proxy or upstream failure
        '503':
          description: 服务暂不可用 / Service unavailable
        default:
          description: 其他网关或上游错误；格式可能不同 / Other gateway or upstream error; shape may vary
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 模型调用 API Key，不是控制台登录凭据 / Model API key, not console login credentials

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.