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

> The Gemini Omni 1.2 Flash Video Edit API edits a source video of up to 15 seconds from a text instruction, with output from 360p 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 Video Edit changes an existing clip of up to 15 seconds from a text instruction, such as new lighting, weather, style or objects, while the source motion and framing carry through. Output resolution ranges from `360p` to `4k`.

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/video-edit** — Video editing with Gemini Omni 1.2 Flash, source video up to 15 seconds, 360p to 4K.

## Features

* Three fields: `prompt`, `video_url` and `resolution`.
* Output length and framing follow the source video.
* Four resolutions: `360p`, `720p`, `1080p`, `4k`.

## Required parameters

* `prompt` (string): Editing instructions, 1–20,000 characters after trimming.
* `video_url` (string): Public HTTP(S) URL of the source video, up to 15 seconds and 100 MB.

## Optional parameters

* `resolution` (string): `360p`, `720p`, `1080p` or `4k`. Default `720p`.

## Duration

The edited video has the same length as the source video.

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

* **Relight**: turn a bright midday cove into a rose-gold sunset while the sea otter keeps its motion and framing, `720p` ([result](https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/video-edit/v1/01/output.mp4)).

## Notes

* The source video is downloaded and measured at submission; it runs up to 15 seconds and must contain a video track.
* This model ID accepts `prompt`, `video_url` and `resolution` in `input`; other fields return 400. Put `model` and `callback_url` at the request root.
* Credits are reserved at submission and equal the source video length (rounded up to whole seconds) 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-video-edit.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Gemini Omni 1.2 Flash Video Edit
  description: >-
    The Gemini Omni 1.2 Flash Video Edit API edits a source video of up to 15
    seconds from a text instruction, with output from 360p 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 Video Edit
      summary: Submit Gemini Omni 1.2 Flash Video Edit Task
      operationId: submitGeminiOmni12FlashVideoEditTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              relight:
                summary: Relight a clip
                value:
                  model: google/gemini-omni-1.2-flash/video-edit
                  input:
                    prompt: >-
                      Relight the bright midday turquoise cove into a glowing
                      rose-gold sunset with warm amber and violet reflections
                      shimmering across the gentle water ripples and soft golden
                      rim light catching the sea otter's wet fur. Preserve the
                      floating sea otter's exact motion, shell tapping, kelp
                      movement, and camera framing. No text, no logos, no
                      watermarks.
                    video_url: >-
                      https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4
                    resolution: 720p
      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/video-edit
        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
            - video_url
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 20000
              description: >-
                Editing instructions, such as a lighting, style or object
                change. 1–20,000 characters after trimming.
            video_url:
              type: string
              format: uri
              description: >-
                Source video to edit: a publicly accessible HTTP(S) URL, up to
                15 seconds and 100 MB (MP4, MOV or WebM).
            resolution:
              type: string
              enum:
                - 360p
                - 720p
                - 1080p
                - 4k
              default: 720p
              description: >-
                Output resolution: `360p` for quick drafts, `720p`, `1080p` or
                `4k` for final output.
    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: WLWLZZOY6LLZ5ZC4
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T11:19:12'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message. See [Error Codes](/api-manual/error-codes).
          example: video_url is required for video-edit
  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.