> ## 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.

# Query video task

> Retrieve task status and video results for Seedance 2.0 / 2.5

GET`/{id}`

▶

<dialog>
  <form>
    ➤×

    API Key \*Bearer

    ### cURL

    <pre aria-label="cURL" />

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

Use the returned task `id` and the same account's API key. Seedance 2.0 and 2.5 share this endpoint. Try it prefills the most recent task ID and API key from this page session; you can also enter them manually.

After creation, select Query task to continue without re-entering these fields. The API key is shared only in the current page session and cleared on refresh or close.

`queued` means queued and `running` means processing. When `succeeded`, read `content.video_url`. For `failed`, `cancelled` or `expired`, inspect `error.code` and `error.message`.


## OpenAPI

````yaml api-reference/seedance/seedance.openapi.json GET /v1/video/contents/generations/tasks/{id}
openapi: 3.0.3
info:
  title: Seedance standard video API
  version: 1.0.0
  description: >-
    Ark-compatible JSON video API, documented separately from the native
    platform video API.
servers:
  - url: https://api.tensorslab.com
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/video/contents/generations/tasks/{id}:
    get:
      tags:
        - Video tasks
      summary: Get video task
      operationId: getSeedanceStandardTask
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: >-
            Local task ID returned on creation; only tasks owned by the caller
            are accessible.
      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: >-
            Resolution; supported values and combinations depend on the model
            and channel.
        ratio:
          type: string
          description: Aspect ratio; adaptive is supported.
        duration:
          type: integer
          description: >-
            Duration in seconds; -1 selects automatically. frames takes
            precedence.
        frames:
          type: integer
          description: Output frame count, subject to model support.
        seed:
          type: integer
          description: Random seed, subject to model support.
        execution_expires_after:
          type: integer
          description: Task execution expiry in seconds; forwarded for both 2.0 and 2.5.
        generate_audio:
          type: boolean
          description: Generate synchronized audio.
        tools:
          type: array
          items:
            type: object
            properties: {}
            additionalProperties: true
          description: Tool list; nested parameters are preserved.
        output_format:
          type: string
          description: Output format according to the model contract.
        service_tier:
          type: string
          description: Service tier; tiers such as flex depend on model support.
        draft:
          type: boolean
          description: Draft mode, subject to model support.
        priority:
          type: integer
          description: Execution priority, 0–9.
          minimum: 0
          maximum: 9
        safety_identifier:
          type: string
          description: Caller safety identifier.
      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.