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

# 查询视频任务

> 查询 Seedance 2.0 / 2.5 任务状态与视频结果

GET`/{id}`

▶

<dialog>
  <form>
    ➤×

    API Key \*Bearer

    ### cURL

    <pre aria-label="cURL" />

    <pre aria-live="polite" />
  </form>
</dialog>

使用创建任务返回的 `id` 和同一账号的 API Key 查询。Seedance 2.0、2.5 共用此接口。点击“试一试”，自动带入本次会话中最近创建的任务 ID 和 API Key，也可手动填写。

创建成功后也可直接点击“查询任务”，无需重复填写。API Key 仅在当前页面会话内共用，刷新或关闭页面后清除。

`queued` 表示已排队，`running` 表示处理中；`succeeded` 时读取 `content.video_url`。若状态为 `failed`、`cancelled` 或 `expired`，查看 `error.code` 和 `error.message`。


## OpenAPI

````yaml zh/api-reference/seedance/seedance.openapi.json GET /v1/video/contents/generations/tasks/{id}
openapi: 3.0.3
info:
  title: Seedance 标准视频接口
  version: 1.0.0
  description: 方舟兼容 JSON 视频接口，与平台原生视频 API 分开使用。
servers:
  - url: https://api.tensorslab.com
    description: 生产环境
security:
  - bearerAuth: []
paths:
  /v1/video/contents/generations/tasks/{id}:
    get:
      tags:
        - 视频任务
      summary: 查询视频生成任务
      operationId: getSeedanceStandardTask
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: 创建接口返回的本地任务 ID，仅可查询当前用户任务。
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoTask'
        '400':
          description: Invalid request or model
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoError'
        '404':
          description: Task not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoError'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoError'
        '502':
          description: Provider error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoError'
        '503':
          description: Service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoError'
        '504':
          description: Timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoError'
components:
  schemas:
    VideoTask:
      type: object
      properties:
        id:
          type: string
        model:
          type: string
        status:
          type: string
          enum:
            - queued
            - running
            - succeeded
            - failed
            - cancelled
            - expired
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
        content:
          type: object
          properties:
            video_url:
              type: string
            last_frame_url:
              type: string
            file_url:
              type: string
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
            completion_tokens:
              type: integer
            total_tokens:
              type: integer
            tool_usage:
              type: object
              properties: {}
              additionalProperties:
                type: integer
        created_at:
          type: integer
          format: int64
        updated_at:
          type: integer
          format: int64
        framespersecond:
          type: integer
        draft_task_id:
          type: string
        resolution:
          type: string
          description: 分辨率；参数组合及可用值取决于模型和实际通道。
        ratio:
          type: string
          description: 宽高比，支持 adaptive。
        duration:
          type: integer
          description: 视频时长（秒），支持 -1 自动选择；frames 优先。
        frames:
          type: integer
          description: 生成帧数，受模型能力限制。
        seed:
          type: integer
          description: 随机种子，受模型能力限制。
        execution_expires_after:
          type: integer
          description: 任务执行有效期（秒），2.0、2.5 均转发。
        generate_audio:
          type: boolean
          description: 是否生成同步音频。
        tools:
          type: array
          items:
            type: object
            properties: {}
            additionalProperties: true
          description: 工具列表，保留嵌套参数。
        output_format:
          type: string
          description: 输出格式，按模型契约填写。
        service_tier:
          type: string
          description: 服务等级；如 flex 等级受模型限制。
        draft:
          type: boolean
          description: 样片模式，受模型能力限制。
        priority:
          type: integer
          description: 执行优先级，0–9。
          minimum: 0
          maximum: 9
        safety_identifier:
          type: string
          description: 调用方安全标识。
      required:
        - id
        - model
        - status
        - content
        - usage
        - created_at
        - updated_at
    VideoError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            type:
              type: string
            param:
              type: string
              nullable: true
            request_id:
              type: string
          required:
            - message
            - type
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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