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

# Gemini Omni Flash Video Edit

> - The Gemini Omni Flash (gemini-omni-flash-video-edit) model supports video editing mode, producing an edited video from an input video and a text prompt
- **Video input:** Provided via `video_urls`; only 1 video is supported, and the input video must not exceed 10 seconds
- **Editing instructions:** Describe the desired editing effect via `prompt` (e.g. adjust lighting, change style, etc.)
- **Native audio:** The model automatically generates synchronized audio for the video, no extra parameters required
- **Parameter constraints:** `duration` and `aspect_ratio` are not supported in video editing mode; the output follows the input video
- **Negative description:** Write it directly into `prompt` (e.g. `No dialogue`); this model does not provide a separate negative prompt parameter
- Asynchronous processing mode; use the returned task ID to [query the result](/en/api-manual/task-management/get-task-detail)
- The generated video link is valid for 24 hours, please save it promptly



## OpenAPI

````yaml en/api-manual/video-series/gemini-omni-flash/gemini-omni-flash-video-edit.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: gemini-omni-flash-video-edit API
  description: >-
    Use the Gemini Omni Flash model for video editing, producing an edited video
    from an input video and a text prompt
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: Production environment
security:
  - bearerAuth: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - Video Generation
      summary: gemini-omni-flash-video-edit API
      description: >-
        - The Gemini Omni Flash (gemini-omni-flash-video-edit) model supports
        video editing mode, producing an edited video from an input video and a
        text prompt

        - **Video input:** Provided via `video_urls`; only 1 video is supported,
        and the input video must not exceed 10 seconds

        - **Editing instructions:** Describe the desired editing effect via
        `prompt` (e.g. adjust lighting, change style, etc.)

        - **Native audio:** The model automatically generates synchronized audio
        for the video, no extra parameters required

        - **Parameter constraints:** `duration` and `aspect_ratio` are not
        supported in video editing mode; the output follows the input video

        - **Negative description:** Write it directly into `prompt` (e.g. `No
        dialogue`); this model does not provide a separate negative prompt
        parameter

        - Asynchronous processing mode; use the returned task ID to [query the
        result](/en/api-manual/task-management/get-task-detail)

        - The generated video link is valid for 24 hours, please save it
        promptly
      operationId: createGeminiOmniFlashVideoEditGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeminiOmniFlashVideoEditRequest'
            examples:
              video_edit:
                summary: Video edit
                value:
                  model: gemini-omni-flash-video-edit
                  prompt: >-
                    Make the lighting in the scene warmer and keep everything
                    else unchanged
                  video_urls:
                    - https://example.com/source.mp4
      responses:
        '200':
          description: Video task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_request
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: Not authenticated, token invalid or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: Insufficient quota, top-up required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: insufficient_quota
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: model_access_denied
                  message: >-
                    Token does not have access to model:
                    gemini-omni-flash-video-edit
                  type: invalid_request_error
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests, please try again later
                  type: rate_limit_error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
                  type: api_error
components:
  schemas:
    GeminiOmniFlashVideoEditRequest:
      required:
        - model
        - prompt
      type: object
      properties:
        model:
          type: string
          description: Model name, fixed to `gemini-omni-flash-video-edit`
          enum:
            - gemini-omni-flash-video-edit
          example: gemini-omni-flash-video-edit
        prompt:
          type: string
          description: >-
            Text prompt for video editing, describing the desired editing
            effect, supports both English and Chinese


            **Usage tips:**

            - Describe the elements to change and the parts to keep unchanged
            (e.g. "make the lighting warmer and keep everything else unchanged")

            - Write negative requirements directly into the prompt (e.g. `No
            dialogue`, `no text on screen`); this model does not provide a
            separate negative prompt parameter
          example: >-
            Make the lighting in the scene warmer and keep everything else
            unchanged
        video_urls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 1
          description: |-
            Array of videos to edit; only 1 is supported

            **Input requirements:**
            - Currently only HTTP/HTTPS video URLs are supported
            - Format: mp4
            - Duration: no more than `10` seconds
          example:
            - https://example.com/source.mp4
        callback_url:
          type: string
          description: >-
            HTTPS callback URL to notify when the task completes


            **Callback timing:**

            - Triggered when the task completes (completed), fails (failed), or
            is cancelled (cancelled)

            - Sent after billing is confirmed


            **Security restrictions:**

            - HTTPS protocol only

            - Callbacks to internal IP addresses are forbidden (127.0.0.1,
            10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)

            - URL length must not exceed `2048` characters


            **Callback mechanism:**

            - Timeout: `10` seconds

            - Up to `3` retries on failure (retried `1`s / `2`s / `4`s after
            each failure respectively)

            - The callback body format matches the response of the task query
            endpoint

            - A 2xx status code from the callback URL is treated as success;
            other status codes trigger a retry
          format: uri
          example: https://your-domain.com/webhooks/video-task-completed
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: Task creation timestamp
          example: 1757169743
        id:
          type: string
          description: Task ID
          example: task-unified-1757169743-7cvnl5zw
        model:
          type: string
          description: The model name actually used
          example: gemini-omni-flash-video-edit
        object:
          type: string
          enum:
            - video.generation.task
          description: The specific type of the 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:
          $ref: '#/components/schemas/VideoTaskInfo'
          description: Detailed video task information
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          description: The output type of the task
          example: video
        usage:
          $ref: '#/components/schemas/Usage'
          description: Usage and billing information
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code identifier
            message:
              type: string
              description: Error description message
            type:
              type: string
              description: Error type
    VideoTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: Whether the task can be cancelled
          example: false
        estimated_time:
          type: integer
          description: Estimated completion time (seconds)
          minimum: 0
          example: 60
    Usage:
      type: object
      description: Usage and billing information
      properties:
        billing_rule:
          type: string
          description: Billing rule
          enum:
            - per_call
            - per_token
            - per_second
          example: per_token
        credits_reserved:
          type: number
          description: Estimated credits to be consumed
          minimum: 0
          example: 102.34
        user_group:
          type: string
          description: User group category
          enum:
            - default
            - vip
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        ##All endpoints require authentication using a Bearer Token##


        **Get your API Key:**


        Visit the [API Key management page](https://evolink.ai/dashboard/keys)
        to obtain your API Key


        **Add it to the request header:**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````