Gemini Omni Flash Preview
Gemini Omni Flash Preview 是一款交互式多模态模型,可在统一交互中处理文本和媒体输入,并生成 3 至 10 秒的视频。它适合需要结合图片、文字指令和连续对话快速探索视频创意的产品,也适合原型验证、营销素材和自动化媒体工作流。你可以在试验场中根据创作目标调整本页列出的任务类型、时长和输入素材,并在正式接入前用代表性请求比较生成效果、响应速度和成本。具体可用能力与参数范围以当前页面为准。

- 模型代码
- gemini-omni-flash-preview
- 供应商
- API 端点
- /v1beta/interactions
- 计费
- 0.11
- 更新时间
- 2026-08-13
能力
- 通过当前公开任务端点生成视频
- 实时 Schema 提供时支持图片、参考素材、时长或分辨率控制
- 当前参数包括 prompt, task, duration
限制
- 模型能力与参数范围可能更新,生产环境应锁定并验证使用的参数组合
- 未出现在实时 Request Schema 中的参数不应假定可用
- 异步任务需要处理轮询、失败、超时和内容安全状态
典型场景
- 产品原型和自动化内容工作流
- 批量媒体生成与程序化创作
- 需要统一鉴权、计费和调用记录的多模型应用
价格与计费示例
- Video output | 0.11 | output_video_seconds
请求参数
| 参数 | 类型 | 必填 | 默认值 | 可选值 |
|---|---|---|---|---|
| model | string | 是 | ||
| prompt | textarea | 是 | ||
| task | select | 是 | text_to_video | text_to_video, image_to_video, reference_to_video |
| duration | integer | 是 | 5 |
API 调用示例
cURL
curl -X POST 'https://api.uniall.ai/v1beta/interactions' \
-H 'Authorization: Bearer $UNIALL_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"duration":5,"model":"gemini-omni-flash-preview","prompt":"Describe the output you want","task":"text_to_video"}'Python
import json
import requests
payload = json.loads(r'''{"duration":5,"model":"gemini-omni-flash-preview","prompt":"Describe the output you want","task":"text_to_video"}''')
response = requests.post(
"https://api.uniall.ai/v1beta/interactions",
headers={"Authorization": "Bearer " + UNIALL_API_KEY},
json=payload,
)
response.raise_for_status()
result = response.json()JavaScript
const response = await fetch("https://api.uniall.ai/v1beta/interactions", {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNIALL_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({"duration":5,"model":"gemini-omni-flash-preview","prompt":"Describe the output you want","task":"text_to_video"}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();常见问题
gemini-omni-flash-preview 的 API 端点是什么?
端点根据当前模型能力和 Request Schema 自动解析,并显示在本页 API 区域。
gemini-omni-flash-preview 如何计费?
价格区域直接读取当前结构化计费配置;改价后无需重写本文。
可以使用 Python 调用吗?
可以。本页示例使用当前端点和原始模型代码标识。
是否提供 JavaScript 和 cURL 示例?
提供。三种示例共享同一实时请求结构。
支持哪些分辨率、时长或参考图参数?
支持范围取决于当前 Request Schema,未显示的字段不应假定可用。
生产环境接入时要注意什么?
请验证参数、超时、错误处理和异步视频任务状态,并在模型更新后重新运行小范围测试。