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

# Gemini Omni 1.2 Flash Reference to Video

> The Gemini Omni 1.2 Flash Reference to Video API guides a 3–15 second video with up to 10 reference images and 3 reference videos, at up to 4K.

> [!TIP]
>
> 1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
> 2. Regardless of whether `callback_url` is provided, you can retrieve the result through the unified [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) endpoint.

Gemini Omni 1.2 Flash Reference to Video generates a 3–15 second video guided by reference images and reference videos, so a character, product or place carries into a new scene. Describe in the prompt how each reference should appear.

Gemini Omni 1.2 Flash is part of Google's Gemini Omni video lineup. Vidgo exposes it as four model IDs: [Text to Video](https://docs.vidgo.ai/api-manual/video-series/google-gemini-omni-1-2-flash-text-to-video.md), [Image to Video](https://docs.vidgo.ai/api-manual/video-series/google-gemini-omni-1-2-flash-image-to-video.md), [Reference to Video](https://docs.vidgo.ai/api-manual/video-series/google-gemini-omni-1-2-flash-reference-to-video.md) and [Video Edit](https://docs.vidgo.ai/api-manual/video-series/google-gemini-omni-1-2-flash-video-edit.md).

## Models

* **google/gemini-omni-1.2-flash/reference-to-video** — Reference-to-video with Gemini Omni 1.2 Flash from up to 10 images and 3 videos, 360p to 4K.

## Features

* Up to 10 reference images and 3 reference videos in one request.
* Any whole-second duration from 3 to 15 seconds.
* Four resolutions: `360p`, `720p`, `1080p`, `4k`.
* Landscape (`16:9`) or portrait (`9:16`) framing.

## Required parameters

* `prompt` (string): Scene description, 1–20,000 characters after trimming.
* At least one of `reference_image_urls` or `reference_video_urls`.

## Optional parameters

* `reference_image_urls` (string\[]): Up to 10 public HTTP(S) image URLs.
* `reference_video_urls` (string\[]): Up to 3 public HTTP(S) video URLs, each up to 15 seconds.
* `duration` (integer): Output length, `3`–`15` seconds. Default `8`.
* `resolution` (string): `360p`, `720p`, `1080p` or `4k`. Default `720p`.
* `aspect_ratio` (string): `16:9` or `9:16`. Default `16:9`.

## Output

The finished task returns one MP4 video in the `files` array of [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) and the callback payload.

## Examples

* **Character and location references**: the sound recordist from the first image kneels by a steaming mineral pool on the plain from the second image, 5 seconds, `720p`, `16:9` ([result](https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/reference-to-video/v1/01/output.mp4)).

## Notes

* Reference videos (MP4, MOV or WebM, up to 100 MB each) are downloaded and measured at submission; each runs up to 15 seconds and must contain a video track.
* Empty strings and empty arrays count as omitted, so the default applies.
* Put `model` and `callback_url` at the request root, next to `input`. `input` accepts the fields listed above; other fields return 400.
* Credits are reserved at submission and equal the output `duration` times the per-second rate of the chosen `resolution`. A failed task is refunded in full. See the [pricing page](https://vidgo.ai/apis/api-pricing) for current rates.


## OpenAPI

````yaml api-manual/video-series/google-gemini-omni-1-2-flash-reference-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Gemini Omni 1.2 Flash Reference to Video
  description: >-
    The Gemini Omni 1.2 Flash Reference to Video API guides a 3–15 second video
    with up to 10 reference images and 3 reference videos, at up to 4K.
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Gemini Omni 1.2 Flash Reference to Video
      summary: Submit Gemini Omni 1.2 Flash Reference to Video Task
      operationId: submitGeminiOmni12FlashReferenceToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              reference-images:
                summary: Character and location references
                value:
                  model: google/gemini-omni-1.2-flash/reference-to-video
                  input:
                    prompt: >-
                      Slow cinematic tracking shot across the steaming basalt
                      geothermal plain from the second reference image at dawn:
                      the woman sound recordist from the first reference image
                      kneels beside a mineral pool adjusting her headphones and
                      aiming her furry microphone toward rising steam plumes
                      under golden low-angle sunlight. Keep her face, dark curly
                      hair, olive jacket, and audio gear consistent. Audio:
                      gentle wind and steaming geothermal vents.
                    reference_image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg
                    duration: 5
                    resolution: 720p
                    aspect_ratio: '16:9'
      responses:
        '200':
          description: >-
            Task submission result. A task ID identifies asynchronous work;
            generation may still be running.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: google/gemini-omni-1.2-flash/reference-to-video
        callback_url:
          type: string
          format: uri
          description: Optional webhook URL for completion or failure notifications.
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 20000
              description: >-
                Scene description that tells the model how to use the
                references. 1–20,000 characters after trimming.
            reference_image_urls:
              type: array
              maxItems: 10
              items:
                type: string
                format: uri
                description: Use a publicly accessible HTTP(S) download URL.
              description: >-
                Up to 10 reference images for characters, products, places or
                style.
            reference_video_urls:
              type: array
              maxItems: 3
              items:
                type: string
                format: uri
                description: Use a publicly accessible HTTP(S) download URL.
              description: >-
                Up to 3 reference videos, each up to 15 seconds and 100 MB (MP4,
                MOV or WebM).
            duration:
              type: integer
              minimum: 3
              maximum: 15
              default: 8
              description: Output length in whole seconds, 3–15.
            resolution:
              type: string
              enum:
                - 360p
                - 720p
                - 1080p
                - 4k
              default: 720p
              description: >-
                Output resolution: `360p` for quick drafts, `720p`, `1080p` or
                `4k` for final output.
            aspect_ratio:
              type: string
              enum:
                - '16:9'
                - '9:16'
              default: '16:9'
              description: 'Output aspect ratio: landscape `16:9` or portrait `9:16`.'
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: VUDK1P7TS5FURNPB
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T11:17:30'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message. See [Error Codes](/api-manual/error-codes).
          example: >-
            reference-to-video requires reference_image_urls or
            reference_video_urls
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Use `Authorization: Bearer VIDGO_API_KEY`.'

````

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