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

# Vidu Q3 Video Generation

> - Vidu Q3 video generation model, supports text-to-video, image-to-video, and first-last-frame transition
- Supports `360p` / `540p` / `720p` / `1080p` output, with optional audio generation
- Async processing mode, use the returned task ID to [query task status](/pages/en/api-manual/task-management/get-task-detail)
- Generated video links are valid for 24 hours, please save them promptly




## OpenAPI

````yaml openapi/en/vidu-q3.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Vidu Q3 Video Generation
  version: '1.0'
servers:
  - url: https://api.aihubmax.com
security:
  - BearerAuth: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - Video > Vidu
      summary: Vidu Q3 Video Generation
      description: >
        - Vidu Q3 video generation model, supports text-to-video,
        image-to-video, and first-last-frame transition

        - Supports `360p` / `540p` / `720p` / `1080p` output, with optional
        audio generation

        - Async processing mode, use the returned task ID to [query task
        status](/pages/en/api-manual/task-management/get-task-detail)

        - Generated video links are valid for 24 hours, please save them
        promptly
      operationId: vidu-q3
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ViduQ3Request'
            examples:
              example_0:
                summary: Pro text-to-video
                value:
                  model: vidu-q3-pro
                  prompt: >-
                    A cinematic street food scene at night, sizzling skewers,
                    neon reflections on wet pavement, handheld motion
                  duration: 5
                  aspect_ratio: '16:9'
                  resolution: 720p
                  generate_audio: true
              example_1:
                summary: Turbo image-to-video
                value:
                  model: vidu-q3-turbo
                  generation_type: image-to-video
                  image_urls:
                    - https://picsum.photos/id/237/1280/720.jpg
                  prompt: >-
                    The dog turns its head toward the camera and the fur moves
                    slightly in the wind
                  duration: 5
                  aspect_ratio: '16:9'
                  resolution: 720p
              example_2:
                summary: Pro first-last-frame transition
                value:
                  model: vidu-q3-pro
                  generation_type: first-last-frame
                  image_urls:
                    - https://picsum.photos/id/1015/1280/720.jpg
                    - https://picsum.photos/id/1016/1280/720.jpg
                  prompt: >-
                    A smooth transition from bright afternoon to dramatic dusk
                    over the same mountain lake
                  duration: 5
                  resolution: 1080p
              example_3:
                summary: Pro reference-to-video with multiple images
                value:
                  model: vidu-q3-pro
                  generation_type: reference-to-video
                  image_urls:
                    - https://picsum.photos/id/1025/1280/720.jpg
                    - https://picsum.photos/id/1027/1280/720.jpg
                    - https://picsum.photos/id/1035/1280/720.jpg
                  prompt: >-
                    Keep the same traveler and backpack design while showing a
                    cinematic walk through misty ruins
                  duration: 6
                  aspect_ratio: '16:9'
                  resolution: 720p
                  seed: 42
      responses:
        '200':
          $ref: '#/components/responses/TaskCreated'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    ViduQ3Request:
      type: object
      required:
        - model
      properties:
        model:
          description: >-
            `vidu-q3-pro`: Standard version, supports text-to-video,
            image-to-video, first-last-frame transition, and reference-to-video

            `vidu-q3-turbo`: Accelerated version, supports text-to-video,
            image-to-video, and first-last-frame transition, does not support
            reference-to-video
          examples:
            - vidu-q3-pro
            - vidu-q3-turbo
          type: string
          default: vidu-q3-pro
        generation_type:
          anyOf:
            - enum:
                - text-to-video
                - image-to-video
                - first-last-frame
                - reference-to-video
              type: string
            - type: 'null'
          default: null
          description: >
            Generation mode


            **Options:**

            - `text-to-video` — Generate video from text only, do not pass
            `image_urls`

            - `image-to-video` — Single image to video, `image_urls` must
            contain exactly 1 image

            - `first-last-frame` — First-last frame transition video,
            `image_urls` must contain exactly 2 images

            - `reference-to-video` — Reference image to video, `image_urls` can
            contain 1-4 images


            **Notes:**

            - If not specified, it will be automatically inferred based on
            input: 0 images → `text-to-video`, 1 image → `image-to-video`, 2
            images → `first-last-frame`, 3-4 images → `reference-to-video`

            - `vidu-q3-turbo` does not support `reference-to-video`
          example: text-to-video
        prompt:
          anyOf:
            - maxLength: 2000
              type: string
            - type: 'null'
          default: null
          description: >
            Text prompt describing the desired video content


            **Notes:**

            - Required for `text-to-video` and `reference-to-video`

            - Optional for `image-to-video` and `first-last-frame`, if not
            provided, generation is primarily driven by the input images

            - Supports both Chinese and English
          example: A cinematic tracking shot through a rainy cyberpunk alley
        image_urls:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          description: >
            List of image URLs, the number of images depends on
            `generation_type`


            **Notes:**

            - `text-to-video`: Do not pass

            - `image-to-video`: Exactly 1 image

            - `first-last-frame`: Exactly 2 images, in the order of first frame,
            last frame

            - `reference-to-video`: 1-4 images

            - Image URLs must be publicly accessible
          example:
            - https://picsum.photos/id/237/1280/720.jpg
        duration:
          default: 5
          description: |
            Output video duration (seconds)

            **Notes:**
            - Defaults to `5` seconds
            - Must be a positive integer
          minimum: 1
          type: integer
          example: 5
        aspect_ratio:
          default: '16:9'
          description: |
            Output video aspect ratio

            **Options:**
            - `16:9` — Landscape (default)
            - `9:16` — Portrait
            - `4:3` — Traditional landscape
            - `3:4` — Traditional portrait
            - `1:1` — Square
          enum:
            - '16:9'
            - '9:16'
            - '4:3'
            - '3:4'
            - '1:1'
          type: string
          example: '16:9'
        resolution:
          default: 720p
          description: |
            Output video resolution

            **Options:**
            - `360p` — Low resolution
            - `540p` — Medium-low resolution
            - `720p` — HD (default)
            - `1080p` — Full HD

            **Notes:**
            - `first-last-frame` does not support `360p`
          enum:
            - 360p
            - 540p
            - 720p
            - 1080p
          type: string
          example: 540p
        generate_audio:
          default: true
          description: |
            Whether to generate accompanying audio

            **Notes:**
            - Enabled by default
            - Set to `false` to generate video only without sound
          type: boolean
          example: true
        seed:
          anyOf:
            - maximum: 2147483647
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: |-
            Random seed for improving result reproducibility

            > Not recommended unless specifically needed.
          x-advanced: true
          example: 42
    TaskResponse:
      type: object
      properties:
        created:
          type: integer
          description: Task creation timestamp
          example: 1757165031
        id:
          type: string
          description: Task ID
          example: task-unified-1757165031-uyujaw3d
        model:
          type: string
          description: Actual model name used
        object:
          type: string
          description: Specific type of the task
          enum:
            - video.generation.task
        progress:
          type: integer
          description: Task progress percentage (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: Task status
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          type: object
          description: Async task information
          properties:
            can_cancel:
              type: boolean
              description: Whether the task can be cancelled
              example: true
            estimated_time:
              type: integer
              description: Estimated completion time (seconds)
              example: 45
        type:
          type: string
          description: Output type of the task
          enum:
            - video
          example: video
    ErrorResponse400:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Bad request format
            type:
              type: string
              example: invalid_request_error
    ErrorResponse401:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Invalid API key
            type:
              type: string
              example: authentication_error
    ErrorResponse402:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Insufficient account balance
            type:
              type: string
              example: insufficient_quota
    ErrorResponse422:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Parameter validation failed
            type:
              type: string
              example: validation_error
    ErrorResponse429:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Rate limit exceeded
            type:
              type: string
              example: rate_limit_error
    ErrorResponse500:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Internal server error
            type:
              type: string
              example: server_error
    ErrorResponse503:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Service temporarily unavailable, please try again later
            type:
              type: string
              example: service_unavailable
  responses:
    TaskCreated:
      description: Task created successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TaskResponse'
    BadRequest:
      description: Bad request format
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse400'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse401'
    PaymentRequired:
      description: Insufficient balance
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse402'
    UnprocessableEntity:
      description: Parameter validation failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse422'
    TooManyRequests:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse429'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse500'
    ServiceUnavailable:
      description: Service temporarily unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse503'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        ## All endpoints require Bearer Token authentication ##

        Add the following to your request headers:

        `Authorization: Bearer YOUR_API_KEY`

````