---
title: "Gemini Omni 1.1 Flash API：文生 / 首尾帧 / 参考 / 视频编辑四合一，$0.07 每秒起｜APIMODELS"
description: "Gemini Omni 1.1 Flash 视频 API：一个 model id 覆盖文生视频、首尾帧图生视频、参考生成（最多 7 张参考图，可复用音色与角色）和视频编辑（源视频 ≤10 秒）。720p / 1080p / 4K 自带同步音轨，4 / 6 / 8 / 10 秒，16:9 或 9:16。按秒计费：720p $0.07/秒、1080p $0.10/秒、4K $0.20/秒，每档比官方低至少 30%；带视频输入一口价 $0.70 / $1.05。含 cURL/Python/Node 示例。"
canonical: https://apimodels.app/zh/docs/gemini-omni-1-1-flash
markdown: https://apimodels.app/zh/docs/gemini-omni-1-1-flash.md
language: zh
source: "Generated from the HTML docs page at the canonical URL; the HTML page is the source of truth. Docs index: https://apimodels.app/llms.txt"
---

# Gemini Omni 1.1 Flash 视频 API

Google 新一代 Omni 视频模型,在这里是一个 model id、四种模式,按你传的字段自动分流:只给提示词是文生视频;first_frame_url(可选加 last_frame_url)是首尾帧图生视频;images(最多 7 张参考图)、audio_ids、character_ids 走参考生成;video_list 传一段 ≤10 秒的源视频就是视频编辑。所有模式输出 720p / 1080p / 4K 并自带同步音轨,4 / 6 / 8 / 10 秒,16:9 或 9:16。按输出秒数计费:720p $0.07/秒、1080p $0.10/秒、4K $0.20/秒 —— 每档比 Google 官方($0.10 / $0.15 / $0.30)低至少 30%;带视频输入按分辨率一口价 $0.70 / $1.05。

## 一个 model id,四种模式

| 你传什么                                    | 模式              | 计费                              |
| --------------------------------------- | --------------- | ------------------------------- |
| prompt                                  | 文生视频            | 单价 × duration                   |
| first_frame_url (+ last_frame_url)      | 首尾帧图生视频         | 单价 × duration                   |
| images (≤7) · audio_ids · character_ids | 参考生成            | 单价 × duration                   |
| video_list (1 clip ≤10s)                | 视频编辑(输出时长跟随源视频) | 一口价 720p/1080p $0.70 · 4K $1.05 |

上游限制:首尾帧(first_frame_url / last_frame_url)不能与 images / video_list / audio_ids / character_ids 同时传,尾帧必须搭配首帧。这类请求在创建时直接返回 400,不入队、不扣费。

## 价格(按输出秒数)

| 分辨率   | apimodels.app | Google 官方 | 8 秒一条 | 带视频输入(一口价) |
| ----- | ------------- | --------- | ----- | ---------- |
| 720p  | $0.07/s       | $0.10/s   | $0.56 | $0.70      |
| 1080p | $0.10/s       | $0.15/s   | $0.80 | $0.70      |
| 4K    | $0.20/s       | $0.30/s   | $1.60 | $1.05      |

不提供 360p。只有成功出片才扣费;失败与安全审核拒绝自动退款。

## 创建任务

`POST /api/v1/video/generations` —— 异步:创建后轮询同一个端点取结果,或传 callback_url,和其它视频模型一致。

```bash
# 1) Text-to-video — a prompt alone
curl -X POST https://api.apimodels.app/v1/video/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-omni-1.1-flash",
    "prompt": "a street food stall at night, steam rising, handheld camera pushing in, warm neon",
    "duration": "8",
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }'

# 2) First / last frame — anchor the opening (and optionally the closing) frame
curl -X POST https://api.apimodels.app/v1/video/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-omni-1.1-flash",
    "prompt": "the product slowly rotates while the lighting shifts from cool to warm",
    "first_frame_url": "https://apimodels.app/models/ltx-2.5-fast/photo-first-frame.jpg",
    "last_frame_url": "https://apimodels.app/models/ltx-2.5-pro/photo.jpg",
    "duration": "6",
    "resolution": "1080p"
  }'

# 3) Reference-to-video — up to 7 reference images (characters, products, scenes, styles)
curl -X POST https://api.apimodels.app/v1/video/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-omni-1.1-flash",
    "prompt": "the character from image 1 walks through the scene from image 2, cinematic",
    "images": ["https://r2.apimodels.app/assets/muse-cases/20261030-cafe-date/ref-turn.jpg", "https://apimodels.app/models/ltx-2.5-fast/action.jpg"],
    "duration": "8",
    "resolution": "720p",
    "aspect_ratio": "9:16"
  }'

# 4) Video edit — a source clip of 10s or shorter (trim a longer source with start / ends)
curl -X POST https://api.apimodels.app/v1/video/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-omni-1.1-flash",
    "prompt": "make it snow outside, keep the person, lighting and camera motion unchanged",
    "video_list": [{ "url": "https://r2.apimodels.app/assets/muse-cases/20261030-kitchen-vlog/video.mp4", "start": 0, "ends": 8 }],
    "resolution": "720p"
  }'

# Poll (shared with the rest of the video family)
curl "https://api.apimodels.app/v1/video/generations?task_id=TASK_ID" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```python
import requests, time

API_KEY = "YOUR_API_KEY"
ENDPOINT = "https://api.apimodels.app/v1/video/generations"
H = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}

# One model id; the mode is decided by what you send:
#   prompt only                       -> text-to-video
#   first_frame_url (+ last_frame_url)-> first/last-frame image-to-video
#   images (<= 7) / audio_ids / character_ids -> reference-to-video
#   video_list (one clip <= 10s)      -> video edit (output length follows the clip)
res = requests.post(ENDPOINT, headers=H, json={
    "model": "gemini-omni-1.1-flash",
    "prompt": "a street food stall at night, steam rising, handheld camera pushing in, warm neon",
    "duration": "8",         # "4" / "6" / "8" / "10" (ignored with a video input)
    "resolution": "720p",    # "720p" / "1080p" / "4k"
    "aspect_ratio": "16:9",  # optional; "16:9" or "9:16"
    # "first_frame_url": "https://.../first.jpg", "last_frame_url": "https://.../last.jpg",
    # "images": ["https://.../ref1.jpg", "https://.../ref2.jpg"],
    # "video_list": [{"url": "https://.../source.mp4", "start": 0, "ends": 8}],
})
task_id = res.json()["data"]["taskId"]

while True:
    data = requests.get(f"{ENDPOINT}?task_id={task_id}", headers=H).json()["data"]
    if data["state"] == "completed":
        print(data["resultUrls"][0]); break
    if data["state"] == "failed":
        print(data["failMsg"]); break
    time.sleep(10)
```

```javascript
const API_KEY = "YOUR_API_KEY";
const ENDPOINT = "https://api.apimodels.app/v1/video/generations";
const H = { "Authorization": `Bearer ${API_KEY}`, "Content-Type": "application/json" };

// One model id; the mode is decided by the fields you send (see the parameter table).
async function generate() {
  const { data: { taskId } } = await fetch(ENDPOINT, {
    method: "POST", headers: H,
    body: JSON.stringify({
      model: "gemini-omni-1.1-flash",
      prompt: "a street food stall at night, steam rising, handheld camera pushing in, warm neon",
      duration: "8",         // "4" | "6" | "8" | "10" (ignored with a video input)
      resolution: "720p",    // "720p" | "1080p" | "4k"
      aspect_ratio: "16:9",  // optional; "16:9" or "9:16"
      // first_frame_url: "...", last_frame_url: "...",
      // images: ["...", "..."],
      // video_list: [{ url: "...", start: 0, ends: 8 }],
    })
  }).then(r => r.json());

  while (true) {
    const { data } = await fetch(`${ENDPOINT}?task_id=${taskId}`, { headers: H }).then(r => r.json());
    if (data.state === "completed") { console.log(data.resultUrls[0]); break; }
    if (data.state === "failed")    { console.log(data.failMsg); break; }
    await new Promise(r => setTimeout(r, 10000));
  }
}
generate();
```

## 请求参数

| 字段              | 必填 | 类型     | 说明                                                                                                                         |
| --------------- | -- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| model           | 是  | string | "gemini-omni-1.1-flash"                                                                                                    |
| prompt          | 是  | string | 视频内容描述(场景、动作、镜头、风格、对白 / 音乐 / 环境音),上限 20000 字符                                                                              |
| duration        | 否  | string | "4" / "6" / "8" / "10"(默认 "8")。传 video_list 时被忽略,输出时长跟随源视频                                                                 |
| resolution      | 否  | string | "720p"(默认)/ "1080p" / "4k";不提供 360p                                                                                        |
| aspect_ratio    | 否  | string | "16:9"(默认)或 "9:16"                                                                                                         |
| first_frame_url | 否  | string | 首帧图片(URL 或 base64,≤20MB)→ 图生视频。与 images / video_list / audio_ids / character_ids 互斥                                        |
| last_frame_url  | 否  | string | 尾帧图片,必须与 first_frame_url 同时传;模型在两帧之间插值                                                                                     |
| images          | 否  | array  | 参考图(URL 或 base64,每张 ≤20MB,最多 7 张)→ 参考生成。也接受 image_urls / reference_image_urls                                              |
| video_list      | 否  | array  | 源视频,最多 1 个:\[{ url, start, ends }\]。源视频 ≤100MB、≤30 秒;裁剪窗口(ends − start)≤10 秒,源视频超过 10 秒时必须给 start / ends。也接受 video_url 字符串 |
| audio_ids       | 否  | array  | 音色 ID(最多 3),由 POST /api/v1/omni/audio 创建                                                                                   |
| character_ids   | 否  | array  | 角色 ID(最多 3),由 POST /api/v1/omni/character 创建;每个占 1 个配额槽                                                                    |
| seed            | 否  | number | 随机种子 \[0, 2147483647\]                                                                                                     |
| callback_url    | 否  | string | 任务完成后的回调 URL                                                                                                               |

## 限制与说明

- 单任务配额:图片×1 + 视频×2 + 角色×1 合计 ≤ 7(带 1 段视频时最多 5 张图,或最多 3 个角色 + 2 张图)。
- 首尾帧模式不能与参考图 / 源视频 / 音色 / 角色同时传;尾帧必须搭配首帧。违反在创建时返回 400,不扣费。
- 带视频输入时 duration 被忽略、按分辨率一口价计费。
- 音色 / 角色的创建(/api/v1/omni/audio、/api/v1/omni/character)免费,只在生成视频时计费。
- 结果视频保留 30 天后自动删除,请及时下载或转存;生成约 1-3 分钟,建议轮询间隔 10 秒。

## 相关

- [Gemini Omni 1.1 Flash 模型页 / 在线试用](https://apimodels.app/zh/models/gemini-omni-1.1-flash)
- [Omni Flash 1.0(gemini-omni-flash / gemini-omni-video)](https://apimodels.app/zh/docs/omni-flash)
- [视频 API 总览](https://apimodels.app/zh/docs)

## 常见问题

**Gemini Omni 1.1 Flash API 在 apimodels.app 多少钱?**

gemini-omni-1.1-flash 按输出秒数计费:720p $0.07/秒、1080p $0.10/秒、4K $0.20/秒 —— 8 秒 720p 是 $0.56,10 秒 4K 是 $2.00。Google 官方是 $0.10 / $0.15 / $0.30 每秒,每一档都低至少 30%。传源视频(video_list)时按分辨率一口价:720p/1080p $0.70、4K $1.05,不看长度。不提供 360p。只有成功出片才扣费。

**一个 model id 怎么同时覆盖文生、首尾帧、参考生成和视频编辑?**

后端按你传的字段分流。只给 prompt 是文生视频;first_frame_url(可选加 last_frame_url)是锚定首尾帧的图生视频;images(最多 7 张)、audio_ids、character_ids 走参考生成;video_list 传一段 ≤10 秒的源视频(30 秒以内的源用 start / ends 裁剪)就是视频编辑,输出时长跟随源视频。model 字段始终是 "gemini-omni-1.1-flash"。一条上游限制:首尾帧不能与参考图 / 音色 / 角色 / 源视频同时传,这类请求在创建时直接返回 400,不入队、不扣费。

**gemini-omni-1.1-flash 支持哪些时长、分辨率和限制?**

duration 为 "4" / "6" / "8" / "10" 秒(传源视频时被忽略);resolution 为 "720p" / "1080p" / "4k";aspect_ratio 为 "16:9" 或 "9:16"。提示词上限 20000 字符。单任务配额 图片×1 + 视频×2 + 角色×1 ≤ 7,视频最多 1 个、character_ids 和 audio_ids 各最多 3 个。参考图每张 ≤20MB,源视频 ≤100MB、≤30 秒,裁剪窗口 ≤10 秒。异步接口:用 ?task_id= 轮询同一端点或传 callback_url;结果文件保留 30 天。
