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

# Create reference-generated video(Vidu)

> This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).

Vidu official video generation API; the public path follows the Vidu official specification.

`viduq3-turbo`, `viduq2`, and `vidu2.0` support text-to-video, image-to-video, first-and-last-frame video generation, or reference-to-video according to their respective capabilities. They can also be accessed through the `/v1/videos` Sora compatible format.

Vidu Q4: `vidu-q4` is fixed at 720p, and `vidu-q4-540p` is fixed at 540p. Supports generating videos from 3 to 16 seconds. At least 1 image is required, with up to 15 reference images supported. Reference generation can include up to 3 MP3 audio clips, each 3 to 12 seconds long and up to 50 MB. Pure text-to-video, specified first and last frames, and reference videos are not supported. Multiple images are used as joint references and do not indicate first or last frame positions. Tasks can be created via `POST /v1/videos`, `POST /api/v3/contents/generations/tasks`, or the Vidu formats `POST /ent/v2/img2video` and `POST /ent/v2/reference2video`. For the unified endpoint, `mode=reference_images` is recommended; use `mode=reference_material` when including audio. Reference audio can use `audio_urls`. The Seedance format can also use the `audio_url` field of the standard `content`; the `audio` Boolean field controls audio generation and is used separately from the reference audio URL list. The resolution must match the model name.

Provides the public request skeleton, task query structure, and recommended validation template for the Vidu official video generation format, while the public path retains the Vidu official endpoint format.

Supported models:
viduq3-turbo, viduq2, vidu2.0, vidu-q4, vidu-q4-540p

Unified request fields:
- `model` (string, required): Public model name for Vidu. Vidu Q4 supports only image-to-video and reference-to-video with images; Q3/Q2/V2 retain their respective capabilities.
- `prompt` (string, optional): Video generation prompt; required for text-to-video, and passed as needed for image-to-video, start-and-end-frame, and reference-based video generation.
- `images` (array[string], optional): Image input. Single-image image-to-video uses 1 image; Vidu Q4 reference generation uses 1–15 images, which are used as joint references. For older models, use first-and-last-frame images and reference image counts according to their respective capabilities.
- `videos` (array[string], optional): Video subject input is available only according to the capabilities of older models; Vidu Q4 does not support reference videos.
- `subjects` (array[object], optional): Subject-library format input for reference-based video generation; may include fields such as subject name, image, video, or voice timbre.
- `duration` (integer, optional): Video duration, in seconds. `viduq3-turbo` commonly uses 5 seconds; set it according to the official range.
- `resolution` (string, optional): Output resolution, common values are `540p`, `720p`, and `1080p`.
- `aspect_ratio` (string, optional): Output aspect ratio, commonly used for text-to-video/reference-based video generation, such as `16:9`, `9:16`, and `1:1`.
- `seed` (integer, optional): Random seed.
- `movement_amplitude` (string, optional): Motion intensity, common values are `auto`, `small`, `medium`, and `large`.
- `audio` (boolean, optional): Whether to enable direct audio-video output.
- `audio_urls` (array[string], optional): Reference audio for Vidu Q4. Supports up to 3 MP3 files, each 3–12 seconds and no larger than 50 MB; separate from the `audio` Boolean switch.
- `off_peak` (boolean, optional): Whether to use staggered generation.
- `watermark` (boolean, optional): Whether to add a watermark.

Common model/mode differences:
- `Vidu 文生视频`: Supports the viduq3-turbo, viduq2, and vidu2.0 models; official-format text-to-video.
- `Vidu 图生视频`: Supports the viduq3-turbo, viduq2, and vidu2.0 models; official-format single-image image-to-video.
- `Vidu 首尾帧生视频`: Supports the viduq3-turbo, viduq2, and vidu2.0 models; official-format first-and-last-frame video generation using two images.
- `Vidu 参考生视频`: Supports the viduq3-turbo, viduq2, and vidu2.0 models; official-format multi-reference image-to-video.
- `Vidu Q4 720p 多图 / 音频参考`: Supports the vidu-q4 model; examples of one image or two images with two MP3 reference clips; multiple images are used as shared references, with no first or last frame specified. Replace the example asset URLs before calling.
- `Vidu Q4 540p 多图 / 音频参考`: Supports the vidu-q4-540p model; examples of one image or two images with two MP3 reference clips; multiple images are used as shared references, with no first or last frame specified. Replace the example asset URLs before calling.



## OpenAPI

````yaml api-reference/en/openapi.json POST /ent/v2/reference2video
openapi: 3.0.0
info:
  title: Overseas Expansion Camp API Reference Documentation
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.newapi.si
security:
  - BearerAuth: []
tags:
  - name: OpenAI format (Chat)
  - name: OpenAI Format (Responses)
  - name: Gemini Format for Image Generation
  - name: Image generationOpenAI DALL-E format
  - name: List models
  - name: Video generationHappyHorse and Wan
  - name: Video generation Kling format
  - name: Video generation Omni and Veo formats
  - name: Video generation Seedance
  - name: Video generation Sora compatible formats
  - name: Video generation Vidu
  - name: Music generation task format
paths:
  /ent/v2/reference2video:
    post:
      tags:
        - Video generation Vidu
      summary: Create reference-generated video(Vidu)
      description: >-
        This series supports OpenAI video generation formats (see the link
        [Video generation Sora compatible
        formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).


        Vidu official video generation API; the public path follows the Vidu
        official specification.


        `viduq3-turbo`, `viduq2`, and `vidu2.0` support text-to-video,
        image-to-video, first-and-last-frame video generation, or
        reference-to-video according to their respective capabilities. They can
        also be accessed through the `/v1/videos` Sora compatible format.


        Vidu Q4: `vidu-q4` is fixed at 720p, and `vidu-q4-540p` is fixed at
        540p. Supports generating videos from 3 to 16 seconds. At least 1 image
        is required, with up to 15 reference images supported. Reference
        generation can include up to 3 MP3 audio clips, each 3 to 12 seconds
        long and up to 50 MB. Pure text-to-video, specified first and last
        frames, and reference videos are not supported. Multiple images are used
        as joint references and do not indicate first or last frame positions.
        Tasks can be created via `POST /v1/videos`, `POST
        /api/v3/contents/generations/tasks`, or the Vidu formats `POST
        /ent/v2/img2video` and `POST /ent/v2/reference2video`. For the unified
        endpoint, `mode=reference_images` is recommended; use
        `mode=reference_material` when including audio. Reference audio can use
        `audio_urls`. The Seedance format can also use the `audio_url` field of
        the standard `content`; the `audio` Boolean field controls audio
        generation and is used separately from the reference audio URL list. The
        resolution must match the model name.


        Provides the public request skeleton, task query structure, and
        recommended validation template for the Vidu official video generation
        format, while the public path retains the Vidu official endpoint format.


        Supported models:

        viduq3-turbo, viduq2, vidu2.0, vidu-q4, vidu-q4-540p


        Unified request fields:

        - `model` (string, required): Public model name for Vidu. Vidu Q4
        supports only image-to-video and reference-to-video with images;
        Q3/Q2/V2 retain their respective capabilities.

        - `prompt` (string, optional): Video generation prompt; required for
        text-to-video, and passed as needed for image-to-video,
        start-and-end-frame, and reference-based video generation.

        - `images` (array[string], optional): Image input. Single-image
        image-to-video uses 1 image; Vidu Q4 reference generation uses 1–15
        images, which are used as joint references. For older models, use
        first-and-last-frame images and reference image counts according to
        their respective capabilities.

        - `videos` (array[string], optional): Video subject input is available
        only according to the capabilities of older models; Vidu Q4 does not
        support reference videos.

        - `subjects` (array[object], optional): Subject-library format input for
        reference-based video generation; may include fields such as subject
        name, image, video, or voice timbre.

        - `duration` (integer, optional): Video duration, in seconds.
        `viduq3-turbo` commonly uses 5 seconds; set it according to the official
        range.

        - `resolution` (string, optional): Output resolution, common values are
        `540p`, `720p`, and `1080p`.

        - `aspect_ratio` (string, optional): Output aspect ratio, commonly used
        for text-to-video/reference-based video generation, such as `16:9`,
        `9:16`, and `1:1`.

        - `seed` (integer, optional): Random seed.

        - `movement_amplitude` (string, optional): Motion intensity, common
        values are `auto`, `small`, `medium`, and `large`.

        - `audio` (boolean, optional): Whether to enable direct audio-video
        output.

        - `audio_urls` (array[string], optional): Reference audio for Vidu Q4.
        Supports up to 3 MP3 files, each 3–12 seconds and no larger than 50 MB;
        separate from the `audio` Boolean switch.

        - `off_peak` (boolean, optional): Whether to use staggered generation.

        - `watermark` (boolean, optional): Whether to add a watermark.


        Common model/mode differences:

        - `Vidu 文生视频`: Supports the viduq3-turbo, viduq2, and vidu2.0 models;
        official-format text-to-video.

        - `Vidu 图生视频`: Supports the viduq3-turbo, viduq2, and vidu2.0 models;
        official-format single-image image-to-video.

        - `Vidu 首尾帧生视频`: Supports the viduq3-turbo, viduq2, and vidu2.0 models;
        official-format first-and-last-frame video generation using two images.

        - `Vidu 参考生视频`: Supports the viduq3-turbo, viduq2, and vidu2.0 models;
        official-format multi-reference image-to-video.

        - `Vidu Q4 720p 多图 / 音频参考`: Supports the vidu-q4 model; examples of one
        image or two images with two MP3 reference clips; multiple images are
        used as shared references, with no first or last frame specified.
        Replace the example asset URLs before calling.

        - `Vidu Q4 540p 多图 / 音频参考`: Supports the vidu-q4-540p model; examples of
        one image or two images with two MP3 reference clips; multiple images
        are used as shared references, with no first or last frame specified.
        Replace the example asset URLs before calling.
      operationId: createViduReferenceVideo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
                - images
              properties:
                model:
                  type: string
                  enum:
                    - viduq3-turbo
                    - viduq2
                    - vidu2.0
                    - vidu-q4
                    - vidu-q4-540p
                  example: viduq3-turbo
                  description: >-
                    Public model name for Vidu. Vidu Q4 supports only
                    image-to-video and reference-to-video with images; Q3/Q2/V2
                    retain their respective capabilities.
                prompt:
                  type: string
                  example: A cinematic product ad with smooth camera motion
                  description: >-
                    Video generation prompt; required for text-to-video, and
                    optional for image-to-video, first-and-last-frame-to-video,
                    and reference-to-video, depending on business needs.
                images:
                  type: array
                  items:
                    type: string
                    format: uri
                  example:
                    - https://example.com/input.jpg
                  description: >-
                    Image input. Single-image image-to-image generation produces
                    1 image; Vidu Q4 reference generation produces 1–15 images,
                    with the images used as shared references. For legacy
                    models, first/last frames and the number of references are
                    used according to their respective capabilities.
                videos:
                  type: array
                  items:
                    type: string
                    format: uri
                  description: >-
                    Video subject input is available only for legacy model
                    capabilities; Vidu Q4 does not support reference videos.
                subjects:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      images:
                        type: array
                        items:
                          type: string
                          format: uri
                      videos:
                        type: array
                        items:
                          type: string
                          format: uri
                      voice_id:
                        type: string
                      server_id:
                        type: string
                  description: >-
                    Enter in the same format as the video subject library
                    reference generation input. It can include fields such as
                    subject name, images, videos, or voice timbre.
                auto_subjects:
                  type: boolean
                duration:
                  type: integer
                  example: 5
                  description: >-
                    Video duration, in seconds. `viduq3-turbo` Commonly 5
                    seconds; set it within the official range.
                resolution:
                  type: string
                  enum:
                    - 540p
                    - 720p
                    - 1080p
                  example: 720p
                  description: >-
                    Output resolution, common values `540p`, `720p`, and
                    `1080p`.
                aspect_ratio:
                  type: string
                  enum:
                    - '16:9'
                    - '9:16'
                    - '4:3'
                    - '3:4'
                    - '1:1'
                  example: '16:9'
                  description: >-
                    Output aspect ratio, commonly used for
                    text-to-video/reference-to-video generation, such as `16:9`,
                    `9:16`, and `1:1`.
                seed:
                  type: integer
                  description: Random seed.
                movement_amplitude:
                  type: string
                  enum:
                    - auto
                    - small
                    - medium
                    - large
                  example: auto
                  description: >-
                    Motion range, common values `auto`, `small`, `medium`,
                    `large`.
                audio:
                  type: boolean
                  description: Whether to enable direct audio/video output.
                audio_urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  maxItems: 3
                  description: >-
                    Vidu Q4 reference audio: up to 3 MP3 clips, each 3–12
                    seconds and no larger than 50 MB; separate from the audio
                    boolean switch.
                audio_type:
                  type: string
                  enum:
                    - all
                    - speech_only
                    - sound_effect_only
                voice_id:
                  type: string
                is_rec:
                  type: boolean
                bgm:
                  type: boolean
                payload:
                  type: string
                off_peak:
                  type: boolean
                  description: Whether to use staggered generation.
                watermark:
                  type: boolean
                  description: Whether to add a watermark.
                wm_position:
                  type: integer
                  enum:
                    - 1
                    - 2
                    - 3
                    - 4
                wm_url:
                  type: string
                  format: uri
                callback_url:
                  type: string
                  format: uri
            examples:
              vidu_native_t2v:
                summary: Vidu Text-to-Video
                value:
                  model: viduq3-turbo
                  prompt: A cinematic product ad with smooth camera motion
                  duration: 5
                  resolution: 720p
                  aspect_ratio: '16:9'
              vidu_native_i2v:
                summary: Vidu Image-to-Video
                value:
                  model: viduq3-turbo
                  images:
                    - https://example.com/product.jpg
                  prompt: The product rotates slowly under studio light
                  duration: 5
                  resolution: 720p
              vidu_native_start_end:
                summary: Vidu Generate video from first and last frames
                value:
                  model: viduq3-turbo
                  images:
                    - https://example.com/start.jpg
                    - https://example.com/end.jpg
                  prompt: A smooth camera move from the first frame to the final frame
                  duration: 5
                  resolution: 720p
              vidu_native_reference:
                summary: Vidu Reference video generation
                value:
                  model: viduq3-turbo
                  images:
                    - https://example.com/ref-1.jpg
                    - https://example.com/ref-2.jpg
                    - https://example.com/ref-3.jpg
                  prompt: >-
                    Keep the same character and product style in a cinematic
                    shot
                  duration: 5
                  resolution: 720p
                  aspect_ratio: '16:9'
              vidu_q4_vidu_720p_reference:
                summary: Vidu Q4 720p Multi-Image / Audio Reference
                value:
                  model: vidu-q4
                  prompt: 保持参考图中的主体与色彩，镜头缓慢推进，主体自然运动。
                  duration: 3
                  resolution: 720p
                  images:
                    - https://example.com/reference-1.jpg
                    - https://example.com/reference-2.jpg
                  audio_urls:
                    - https://example.com/reference-1.mp3
                    - https://example.com/reference-2.mp3
              vidu_q4_vidu_540p_reference:
                summary: Vidu Q4 540p Multi-Image / Audio Reference
                value:
                  model: vidu-q4-540p
                  prompt: 保持参考图中的主体与色彩，镜头缓慢推进，主体自然运动。
                  duration: 3
                  resolution: 540p
                  images:
                    - https://example.com/reference-1.jpg
                    - https://example.com/reference-2.jpg
                  audio_urls:
                    - https://example.com/reference-1.mp3
                    - https://example.com/reference-2.mp3
      responses:
        '200':
          description: Task created successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - task_id
                  - state
                properties:
                  task_id:
                    type: string
                    description: >-
                      The task ID returned when creating a task, used to query
                      the task.
                  state:
                    type: string
                    enum:
                      - created
                      - queueing
                      - processing
                      - success
                      - failed
                    description: >-
                      Task status. Common values: `created`, `queueing`,
                      `processing`, `success`, `failed`.
                  model:
                    type: string
                  prompt:
                    type: string
                  images:
                    type: array
                    items:
                      type: string
                  duration:
                    type: integer
                  resolution:
                    type: string
                  created_at:
                    type: string
                  creations:
                    type: string
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                          description: >-
                            The URL of the generated video after the task
                            succeeds.
                        cover_url:
                          type: string
                          description: Cover URL after the task succeeds.
                        watermarked_url:
                          type: string
                          description: Watermarked video URL.
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Use Bearer Token authentication.
        Format: `Authorization: Bearer sk-xxxxxx`

````

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