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

# Video task query

> This historical query endpoint remains supported. New integrations should use `GET /v1/videos/generations/{task_id}`.

Both query routes can retrieve tasks created through either the primary or historical video creation endpoint. The signed `file_url` is transient and should not be used as a permanent identifier.




## OpenAPI

````yaml /openapi/legacy/_video-query.yaml get /query/video-generation
openapi: 3.0.3
info:
  title: Video task query
  version: 1.0.0
  description: Historical video task query endpoint retained for existing integrations.
servers:
  - url: https://api.linkmodel.ai/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: legacy
paths:
  /query/video-generation:
    get:
      tags:
        - legacy
      summary: Video task query
      description: >
        This historical query endpoint remains supported. New integrations
        should use `GET /v1/videos/generations/{task_id}`.


        Both query routes can retrieve tasks created through either the primary
        or historical video creation endpoint. The signed `file_url` is
        transient and should not be used as a permanent identifier.
      operationId: legacy-query-video-generation
      parameters:
        - name: task_id
          in: query
          required: true
          description: Task id returned from either video creation endpoint.
          schema:
            type: string
            example: aurora_abc123
      responses:
        '200':
          description: Current video task status and result.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 0
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - Pending
                          - Processing
                          - Success
                          - Failed
                          - Cancelled
                      file_url:
                        type: string
                        format: uri
                  message:
                    type: string
                    example: success
        '401':
          description: Unauthorized — missing or invalid API key.
        '404':
          description: Task not found.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````