> ## 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 参考生视频

> Gemini Omni 1.2 Flash 参考生视频 API 用最多 10 张参考图和 3 个参考视频引导生成 3–15 秒的视频，最高 4K。

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

Gemini Omni 1.2 Flash 参考生视频根据参考图和参考视频生成 3–15 秒的视频，把角色、产品或场景带入新画面。在提示词中说明每个参考素材的用法。

Gemini Omni 1.2 Flash 属于 Google 的 Gemini Omni 视频模型系列。Vidgo 提供四个模型 ID：[文生视频](https://docs.vidgo.ai/zh/api-manual/video-series/google-gemini-omni-1-2-flash-text-to-video.md)、[图生视频](https://docs.vidgo.ai/zh/api-manual/video-series/google-gemini-omni-1-2-flash-image-to-video.md)、[参考生视频](https://docs.vidgo.ai/zh/api-manual/video-series/google-gemini-omni-1-2-flash-reference-to-video.md)和[视频编辑](https://docs.vidgo.ai/zh/api-manual/video-series/google-gemini-omni-1-2-flash-video-edit.md)。

## 模型

* **google/gemini-omni-1.2-flash/reference-to-video** — Gemini Omni 1.2 Flash 参考生视频，最多 10 张图片和 3 个视频，360p 至 4K。

## 功能

* 单次请求最多 10 张参考图和 3 个参考视频。
* 时长可选 3 到 15 秒之间的任意整数秒。
* 四档分辨率：`360p`、`720p`、`1080p`、`4k`。
* 横屏（`16:9`）或竖屏（`9:16`）。

## 必填参数

* `prompt` (string)：场景描述，去除首尾空白后 1–20,000 个字符。
* `reference_image_urls`、`reference_video_urls` 至少提供一项。

## 可选参数

* `reference_image_urls` (string\[])：最多 10 个公开的 HTTP(S) 图片 URL。
* `reference_video_urls` (string\[])：最多 3 个公开的 HTTP(S) 视频 URL，每个最长 15 秒。
* `duration` (integer)：输出时长，`3`–`15` 秒。默认 `8`。
* `resolution` (string)：`360p`、`720p`、`1080p` 或 `4k`。默认 `720p`。
* `aspect_ratio` (string)：`16:9` 或 `9:16`。默认 `16:9`。

## 输出

任务完成后，[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口和回调内容的 `files` 数组中返回一个 MP4 视频。

## 示例

* **人物与场景参考**：第一张图中的录音师跪在第二张图地热平原上一处冒着蒸汽的矿物池边，5 秒，`720p`，`16:9` ([结果](https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/reference-to-video/v1/01/output.mp4))。

## 注意事项

* 参考视频（MP4、MOV 或 WebM，每个最大 100 MB）在提交时下载并测量时长；每个最长 15 秒，须包含视频轨。
* 空字符串和空数组视为未提供，使用默认值。
* `model` 和 `callback_url` 放在请求根级，与 `input` 并列。`input` 接收上文列出的字段，其他字段返回 400。
* 积分在提交时预扣，等于输出 `duration` 乘以所选 `resolution` 的每秒费率。任务失败全额退还。当前费率见[定价页](https://vidgo.ai/apis/api-pricing)。


## OpenAPI

````yaml zh/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 参考生视频
  description: Gemini Omni 1.2 Flash 参考生视频 API 用最多 10 张参考图和 3 个参考视频引导生成 3–15 秒的视频，最高 4K。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Gemini Omni 1.2 Flash Reference to Video
      summary: 提交 Gemini Omni 1.2 Flash 参考生视频 任务
      operationId: submitGeminiOmni12FlashReferenceToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              reference-images:
                summary: 人物与场景参考
                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: 任务提交结果。任务 ID 标识一项异步任务；生成可能仍在进行中。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 未授权
          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: 可选的 Webhook URL，用于接收完成或失败通知。
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 20000
              description: 场景描述，说明如何使用参考素材。去除首尾空白后 1–20,000 个字符。
            reference_image_urls:
              type: array
              maxItems: 10
              items:
                type: string
                format: uri
                description: 使用公开可访问的 HTTP(S) 下载链接。
              description: 最多 10 张参考图，用于角色、产品、场景或风格。
            reference_video_urls:
              type: array
              maxItems: 3
              items:
                type: string
                format: uri
                description: 使用公开可访问的 HTTP(S) 下载链接。
              description: 最多 3 个参考视频，每个最长 15 秒、最大 100 MB（MP4、MOV 或 WebM）。
            duration:
              type: integer
              minimum: 3
              maximum: 15
              default: 8
              description: 输出时长，3–15 的整数秒。
            resolution:
              type: string
              enum:
                - 360p
                - 720p
                - 1080p
                - 4k
              default: 720p
              description: 输出分辨率：`360p` 适合快速草稿，`720p`、`1080p` 或 `4k` 适合成片。
            aspect_ratio:
              type: string
              enum:
                - '16:9'
                - '9:16'
              default: '16:9'
              description: 输出宽高比：横屏 `16:9` 或竖屏 `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: 错误信息。参见[错误码](/zh/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: '使用 `Authorization: Bearer VIDGO_API_KEY`。'

````

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