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

> Gemini Omni 1.1 Flash API 以视觉参考引导生成新场景，结合图片输入和文字指引，输出最高 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.1 Flash 以视觉参考引导生成新场景，结合图片输入和文字指引，输出最高 4K 的视频。

## 模型

* **google/gemini-omni-1.1-flash/reference-to-video** - 根据参考素材和提示词生成新视频。

## 功能

* 使用 1 到 7 张参考图引导视频生成。
* 输出分辨率可选 `360p`、`720p`、`1080p`、`4k`。
* 支持横屏（`16:9`）和竖屏（`9:16`）画面。

## 时长选项

* **4、6、8、10 秒** - 将 `duration` 设为其中一个值。默认：**8 秒**。

## 高级参数

`model` 和可选的 `callback_url` 放在请求根级，下列参数放在 `input` 中。

只传本工作流支持的 input 字段。不支持的 `input` 字段会在扣除积分前被拒绝。输入 URL 必须使用 HTTP(S)、包含主机名，且不能内嵌凭证。

### 提示词

* `prompt`：必填。描述场景和期望的运动。
* 传入时提示词不能为空白。最大长度：**20,000 个字符**。

### 参考输入

* `reference_image_urls`：必填；提供 1-7 张图片。

### 分辨率

* `resolution`：`360p`、`720p`、`1080p`、`4k`。默认：`720p`。

### 宽高比

* `aspect_ratio`：`16:9`、`9:16`。默认：`16:9`。

## 定价

价格取决于所选模型及相关输出设置。当前费率请查看 Vidgo 仪表盘。

积分在提交时扣除，任务失败时退还。


## OpenAPI

````yaml zh/api-manual/video-series/google-gemini-omni-1-1-flash-reference-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Gemini Omni 1.1 Flash 参考生视频
  description: 使用 Gemini Omni 1.1 Flash 以视觉参考引导生成新场景，结合图片输入和文字指引，输出最高 4K 的视频。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Video Series
      summary: Gemini Omni 1.1 Flash 参考生视频
      description: |-
        只传本工作流列出的字段。其他工作流的参数会在扣除积分前被拒绝。

        传入 prompt 时不能为空白。输入的 URL 字段必须是带主机名的 HTTP(S) URL，且不能内嵌凭证。

        提供 1 到 7 个 reference_image_urls。参考视频属于 video-edit 工作流。
      operationId: submit_google_gemini_omni_1_1_flash_reference_to_video
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              additionalProperties: true
              properties:
                model:
                  type: string
                  example: google/gemini-omni-1.1-flash/reference-to-video
                input:
                  type: object
                  required:
                    - prompt
                    - reference_image_urls
                  properties:
                    prompt:
                      type: string
                      minLength: 1
                      maxLength: 20000
                      description: 提示词。
                    reference_image_urls:
                      type: array
                      minItems: 1
                      maxItems: 7
                      items:
                        type: string
                        format: uri
                        description: 参考图片 URL。
                      description: 参考图片 URL。
                    resolution:
                      type: string
                      enum:
                        - 360p
                        - 720p
                        - 1080p
                        - 4k
                      default: 720p
                      description: 分辨率。
                    duration:
                      type: integer
                      enum:
                        - 4
                        - 6
                        - 8
                        - 10
                      default: 8
                      description: 时长。
                    aspect_ratio:
                      type: string
                      enum:
                        - '16:9'
                        - '9:16'
                      default: '16:9'
                      description: 宽高比。
                  allOf:
                    - not:
                        required:
                          - image_urls
                          - reference_image_urls
                    - not:
                        required:
                          - image_urls
                          - reference_video_urls
                  additionalProperties: false
                callback_url:
                  type: string
                  nullable: true
                  description: 可选，接收任务完成通知的公开 HTTP(S) 地址，建议使用 HTTPS。省略、传 null 或传空字符串即不启用回调。
              description: model 和 callback_url 放在根级。未知的根级字段会被忽略；不支持的 input 字段会被拒绝。
            examples:
              basic:
                summary: 基础工作流
                value:
                  model: google/gemini-omni-1.1-flash/reference-to-video
                  input:
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    resolution: 720p
                    duration: 8
                    aspect_ratio: '16:9'
                    reference_image_urls:
                      - https://example.com/image.png
              callback:
                summary: 接收完成回调
                value:
                  model: google/gemini-omni-1.1-flash/reference-to-video
                  input:
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    resolution: 720p
                    duration: 8
                    aspect_ratio: '16:9'
                    reference_image_urls:
                      - https://example.com/image.png
                  callback_url: https://your-domain.com/callback
      responses:
        '200':
          description: 任务已提交
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - data
                properties:
                  code:
                    type: integer
                    enum:
                      - 200
                  data:
                    type: object
                    required:
                      - task_id
                      - status
                      - created_time
                    properties:
                      task_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - not_started
                          - running
                          - finished
                          - failed
                      created_time:
                        type: string
                        format: date-time
              example:
                code: 200
                data:
                  task_id: task-unified-example
                  status: running
                  created_time: '2026-09-10T08:00:00'
        '400':
          description: 输入无效、档位不支持、媒体无法访问或积分不足
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '401':
          description: 凭证无效
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '403':
          description: 拒绝访问
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '404':
          description: 模型未知或已停用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '408':
          description: 请求超时
          content:
            text/plain:
              schema:
                type: string
              example: Request timeout
        '422':
          description: JSON 无效或请求体不是对象
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '429':
          description: 超出速率限制或 API Key 积分限额
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '500':
          description: 内部错误
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '502':
          description: 无法创建上游生成任务
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '503':
          description: 所请求的模型暂时不可用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 使用 VIDGO_API_KEY。

````

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