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

> Get Vidu Q4 video task status.

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

Poll with the create response id every 10–15s until `completed` (with video URL) or `failed`.

Auth: `Authorization: Bearer sk-...`



## OpenAPI

````yaml openapi/vidu-video.yaml GET /v1/video/generations/{task_id}
openapi: 3.1.0
info:
  title: Omniall AI — Vidu Video
  version: 1.0.0
  description: >-
    Vidu Q4 async video generation (`vidu-q4-720p` / `vidu-q4-1080p`).


    **Create:** `POST https://api.omniall.ai/v1/video/generations`


    **Get:** `GET https://api.omniall.ai/v1/video/generations/{task_id}`


    Auth: `Authorization: Bearer sk-...`


    | Model | Specs |

    |-------|-------|

    | `vidu-q4-720p` | 720P; duration 4–16 s (same price); 1 clip per request |

    | `vidu-q4-1080p` | 1080P; duration 4–16 s (same price); 1 clip per request
    |


    Per-request billing. Generation often takes a few minutes; poll the get
    endpoint.
servers:
  - url: https://api.omniall.ai
security: []
tags:
  - name: Vidu
    description: Vidu Q4 text-to-video / image-to-video / reference audio
paths:
  /v1/video/generations/{task_id}:
    get:
      tags:
        - Vidu
      summary: Get video
      description: >-
        Get Vidu Q4 video task status.


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


        Poll with the create response id every 10–15s until `completed` (with
        video URL) or `failed`.


        Auth: `Authorization: Bearer sk-...`
      operationId: viduGetVideo
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer sk-...
          description: Bearer API key.
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            example: task_xxxxxxxx
          description: Task `id` / `task_id` from create.
      responses:
        '200':
          description: Task status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ViduVideoTask'
              examples:
                processing:
                  summary: In progress
                  value:
                    id: task_xxxxxxxx
                    task_id: task_xxxxxxxx
                    object: video
                    model: vidu-q4-720p
                    status: processing
                    progress: 40
                    seconds: '5'
                    size: '16:9'
                completed:
                  summary: Completed
                  value:
                    id: task_xxxxxxxx
                    task_id: task_xxxxxxxx
                    object: video
                    model: vidu-q4-720p
                    status: completed
                    progress: 100
                    seconds: '5'
                    size: '16:9'
                    url: https://example.com/result.mp4
                    video_url: https://example.com/result.mp4
                failed:
                  summary: Failed
                  value:
                    id: task_xxxxxxxx
                    task_id: task_xxxxxxxx
                    object: video
                    model: vidu-q4-720p
                    status: failed
                    error:
                      message: Generation failed
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
        '404':
          description: Task not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
components:
  schemas:
    ViduVideoTask:
      type: object
      description: Vidu video task object.
      properties:
        id:
          type: string
          description: Task id (usually same as `task_id`).
        task_id:
          type: string
          description: Task id.
        object:
          type: string
          description: Object type, usually `video`.
          example: video
        model:
          $ref: '#/components/schemas/ViduModel'
        status:
          type: string
          description: Status such as `processing` / `completed` / `failed`.
          example: processing
        progress:
          type: number
          description: Progress 0–100 when returned.
        seconds:
          oneOf:
            - type: string
            - type: integer
          description: Requested duration.
        size:
          type: string
          description: Aspect ratio.
        resolution:
          type: string
          description: Resolution.
        url:
          type: string
          description: >-
            Result video URL when completed (may also appear as `video_url` /
            `result_url`).
        video_url:
          type: string
          description: Result video URL (compat field).
        result_url:
          type: string
          description: Result video URL (compat field).
        error:
          type: object
          description: Error payload on failure.
          properties:
            message:
              type: string
    OpenAIErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: |
                Example validation messages:
                - duration must be between 4 and 16
                - unsupported aspect ratio; supported: 16:9 / 9:16
                - at most 10 reference images
                - at most 3 reference audios
                - reference videos are not supported
            type:
              type: string
            code:
              type: string
    ViduModel:
      type: string
      description: Vidu Q4 model id (matches Model Square).
      enum:
        - vidu-q4-720p
        - vidu-q4-1080p
      example: vidu-q4-720p

````

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