API Stock
/VIDEO/gemini-omni-1.2-flash
视频
Google

Gemini Omni 1.2 Flash API

Generate 3–15 second videos with native audio from text, images and subject references. Interpolate first/last frames, edit a source video or extend it by up to 10 seconds. Output from 360p to upsampled 4K.

  • 文本转视频
  • 图像转视频

起价

$0.03

每秒输出

8 个参数 · 4 种价格选项

Gemini Omni 1.2 Flash 在线试用

输入

0/4000

Describe the scene, motion, sound, or video edits.

First frame and optional last frame. Two frames limit duration to 10 seconds. Cannot be combined with referenceImageUrls or videoUrls.

Up to 10 subject reference images; prefer at most 6 for character consistency. Cannot be combined with imageUrls.

One source video, at most 15 seconds, to edit or extend. Editing preserves its length; duration is ignored. Source duration is checked before billing.

登录后运行

运行费用将从您的余额中扣除。

输出

输出将显示在此处。

填写参数、确认费用并运行模型,结果将在此处显示。在浏览器中试用无需单独创建 API 密钥。

Gemini Omni 1.2 Flash API 价格

选项每秒价格
Resolution: 360p$0.03
Resolution: 720p$0.09
Resolution: 1080p$0.136
Resolution: 4k$0.271
1curl -X POST https://api.api-stock.com/api/v1/generation/create \
2 -H "Authorization: Bearer $API_STOCK_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "gemini-omni-1.2-flash",
6 "input": {
7 "prompt": "黄昏时分城市的电影感镜头",
8 "duration": 10,
9 "resolution": "720p",
10 "aspectRatio": "16:9"
11 }
12 }'

参数

名称类型必填默认值描述
promptstring是—Describe the scene, motion, sound, or video edits.
imageUrlsstring[]否—First frame and optional last frame. Two frames limit duration to 10 seconds. Cannot be combined with referenceImageUrls or videoUrls.
referenceImageUrlsstring[]否—Up to 10 subject reference images; prefer at most 6 for character consistency. Cannot be combined with imageUrls.
videoUrlsstring[]否—One source video, at most 15 seconds, to edit or extend. Editing preserves its length; duration is ignored. Source duration is checked before billing.
videoModestring否—Source-video operation. Extension adds 3–10 seconds and bills only the added segment. Requires videoUrls.以下之一:edit, extend
durationnumber否10Whole output seconds (3–15), or added seconds for extension (3–10). Ignored when editing a source video.
resolutionstring否720pOutput resolution; 1080p and 4K are upsampled.以下之一:360p, 720p, 1080p, 4k
aspectRatiostring否16:9Output aspect ratio以下之一:16:9, 9:16

常见问题

Gemini Omni 1.2 Flash 的费用是多少?

Gemini Omni 1.2 Flash 通过 API Stock API 的起价为 $0.03 每秒输出。您按使用量从单个预付余额中支付——无需订阅——最终价格会根据分辨率或时长等参数浮动。

Gemini Omni 1.2 Flash 是什么时候发布的?

Gemini Omni 1.2 Flash 于 2026年11月5日 发布。它可以通过 API Stock API 使用,与其他所有模型共用同一个 API 密钥和预付余额。

如何获取 Gemini Omni 1.2 Flash 的 API 密钥?

注册 API Stock 账号,使用可用的付款方式充值,然后在控制台创建 API 密钥即可,整个过程只需几分钟,无需签订合同。同一个密钥可调用目录中的所有模型,因此无需为 Gemini Omni 1.2 Flash 单独申请密钥。

如何调用 Gemini Omni 1.2 Flash API?

向 https://api.api-stock.com/api/v1/generation/create 发送 POST 请求,并附上您的 API 密钥和模型 ID "gemini-omni-1.2-flash"。请求会返回一个任务 ID,您可以轮询该 ID;或者在结果准备就绪时通过 webhook 回调通知。上方的快速开始部分提供了一个可直接运行的示例。

Gemini Omni 1.2 Flash 接受哪些输入参数?

Gemini Omni 1.2 Flash 接受 8 个输入参数, 包括必填字段 prompt。参数表中列出了它们的类型、默认值和允许值。

如果 Gemini Omni 1.2 Flash 请求失败,会发生什么?

API Stock 会自动通过备用提供商重试请求。如果所有提供商均失败,费用将退还至您的余额。

我可以使用与其他模型相同的 API 密钥来调用 Gemini Omni 1.2 Flash 吗?

可以。API Stock 上的每个模型——视频、图像、音乐和聊天——共享一个 API 密钥和一个预付余额,因此您无需新的凭据即可切换到 Gemini Omni 1.2 Flash。