> ## 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 Image to Video

> The Gemini Omni 1.2 Flash Image to Video API animates a first frame, with an optional last frame, into a 3–15 second video 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 Image to Video animates a still image into a 3–15 second video at up to 4K. Add a second image as the last frame to control where the shot ends.

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/image-to-video** — Image-to-video with Gemini Omni 1.2 Flash from a first frame or first and last frames, 360p to 4K.

## Features

* First frame, or first and last frames, via `image_urls`.
* Any whole-second duration from 3 to 15 seconds (3 to 10 with a last frame).
* Four resolutions: `360p`, `720p`, `1080p`, `4k`.
* Landscape (`16:9`) or portrait (`9:16`) framing.

## Input modes

* **First frame**: one URL in `image_urls`; `duration` 3–15 seconds.
* **First and last frames**: two URLs in `image_urls`, first frame then last frame; `duration` 3–10 seconds.

## Required parameters

* `prompt` (string): Motion and scene direction, 1–20,000 characters after trimming.
* `image_urls` (string\[]): 1–2 public HTTP(S) image URLs.

## Optional parameters

* `duration` (integer): Output length, `3`–`15` seconds (`3`–`10` with a last frame). 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

* **First and last frames**: a sepia rehearsal photo blooms into full color as the trio plays, 5 seconds, `720p` ([result](https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/image-to-video/v1/01/output.mp4)).
* **First frame**: a diver sweeps a flashlight across an amphora inside a sunken hull, 5 seconds, `720p` ([result](https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/image-to-video/v1/02/output.mp4)).

## Notes

* With two images, a `duration` above 10 returns 400.
* 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-image-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Gemini Omni 1.2 Flash Image to Video
  description: >-
    The Gemini Omni 1.2 Flash Image to Video API animates a first frame, with an
    optional last frame, into a 3–15 second video 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 Image to Video
      summary: Submit Gemini Omni 1.2 Flash Image to Video Task
      operationId: submitGeminiOmni12FlashImageToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              first-and-last-frame:
                summary: First and last frame
                value:
                  model: google/gemini-omni-1.2-flash/image-to-video
                  input:
                    prompt: >-
                      Gentle seamless cinematic transition inside the sunlit
                      rehearsal room: faded sepia archival tones gradually bloom
                      into rich natural living color as the violinist draws her
                      bow smoothly, the center accordionist gently compresses
                      the bellows, and the conductor lifts her baton to cue the
                      phrase. Natural daylight through the tall window, faithful
                      preservation of all three musicians and instruments.
                      Audio: warm chamber violin and accordion chord.
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/input-01.jpg
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/output.jpg
                    duration: 5
                    resolution: 720p
                    aspect_ratio: '16:9'
              first-frame:
                summary: First frame only
                value:
                  model: google/gemini-omni-1.2-flash/image-to-video
                  input:
                    prompt: >-
                      The marine archaeologist glides slowly forward inside the
                      sunken wooden hull, sweeping the compact underwater
                      flashlight beam across the half-buried terracotta amphora
                      as silver bubbles rise toward turquoise sunbeams filtering
                      through broken timbers. Smooth weightless camera drift,
                      realistic water particles and caustics. Audio: muffled
                      underwater bubbles and deep ocean calm.
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/02/output.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/image-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
            - image_urls
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 20000
              description: Motion and scene direction. 1–20,000 characters after trimming.
            image_urls:
              type: array
              minItems: 1
              maxItems: 2
              items:
                type: string
                format: uri
                description: Use a publicly accessible HTTP(S) download URL.
              description: >-
                1–2 images: the first is the first frame; an optional second
                image is the last frame.
            duration:
              type: integer
              minimum: 3
              maximum: 15
              default: 8
              description: >-
                Output length in whole seconds: 3–15 with a first frame, 3–10
                with first and last frames.
            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: P8Z97PVFRCAVP3A3
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T11:17:28'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message. See [Error Codes](/api-manual/error-codes).
          example: image_urls is required for image-to-video
  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.