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

# Get video task

> Query task status, progress, result URL, and error by task id.

**Path:** `GET https://api.omniall.ai/v1/videos/{task_id}`

Task status advances with upstream progress. Only `completed` provides a result URL; `failed` includes the reason in `error`.



## OpenAPI

````yaml openapi/magi-video.yaml GET /v1/videos/{task_id}
openapi: 3.1.0
info:
  title: Omniall AI — MAGI-2 video
  version: 1.0.0
  description: >-
    Create, poll, and download video tasks via OpenAI-compatible video APIs.
    Supports text-to-video, image-to-video, and multimodal reference.


    **Model:** `magi-2` (see [Model Square](https://omniall.ai/pricing))


    **Auth:** `Authorization: Bearer sk-...`
servers:
  - url: https://api.omniall.ai
security: []
paths:
  /v1/videos/{task_id}:
    get:
      tags:
        - MAGI-2 video
      summary: Get video task
      description: >-
        Query task status, progress, result URL, and error by task id.


        **Path:** `GET https://api.omniall.ai/v1/videos/{task_id}`


        Task status advances with upstream progress. Only `completed` provides a
        result URL; `failed` includes the reason in `error`.
      operationId: magiGetVideo
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            example: task_abc123
          description: Task id from create response `id` (e.g. task_<uuid>).
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer sk-...
          description: Bearer API key, e.g. `Bearer sk-...`.
      responses:
        '200':
          description: >-
            Returns the task object with status, progress, result URL, and error
            info.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  progress:
                    type: integer
                  url:
                    type: string
                    description: Result URL when completed
                  video:
                    type: object
                    properties:
                      url:
                        type: string
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      code:
                        type: string
              example:
                id: task_abc123
                object: video
                model: magi-2
                status: completed
                progress: 100
                url: https://cdn.example.com/result.mp4
        '401':
          description: Unauthorized
        '404':
          description: Not found

````

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