gemini-omni-1.1-flash API 价格
所有价格均以 USD 计。对比 APISea 费率与相同计费单位的官方标价。
| 选项 | APISea | 官方 | 节省 |
|---|---|---|---|
| 默认默认 | $0.0968 | $0.10 | −3% |
| 1080P | $0.1452 | $0.15 | −3% |
| 360P | $0.03256 | $0.034 | −4% |
| 4K | $0.2904 | $0.30 | −3% |
| 720P | $0.0968 | $0.10 | −3% |
价格单位为 每秒。
gemini-omni-1.1-flash 是什么?
Google 的 Gemini Omni 1.1 Flash 是一款一体化多模态视频生成模型,在 APISea 上以 gemini-omni-1.1-flash 的名称提供。它支持文生视频、图生视频、多主体参考、首尾帧插值、视频编辑和扩展。您可以围绕场景提示词、参考图片或现有视频构建工作流,生成时长为 3–10 秒、帧率为 24fps 并包含生成音频的视频。分辨率涵盖 360p、720p、1080p 和 4K,并可控制横屏或竖屏宽高比。
使用 APISea Bearer token 向 POST /v1/videos/generations 提交请求,然后通过任务 ID 查询结果。APISea 提供一个 API key 和兼容 OpenAI 的 base URL,让你访问其模型目录中的所有模型。采用按量付费,仅对成功的请求计费:Default 配置的费用为每秒 $0.0968,约比提供商的标价低 3%。分辨率决定任务的预扣档位和主要视频输出费用。
gemini-omni-1.1-flash 的亮点
六种视频工作流
可根据文本或图像生成视频、使用多主体参考、在首帧和尾帧之间插帧,也可编辑和延长现有视频。
包含音频
生成 3–10 秒、24fps 的视频,并附带生成的音频。
分辨率与方向
可选择 360p、720p、1080p 或 4K 输出。横屏设置为 16:9,竖屏设置为 9:16;使用视频输入的工作流通常会沿用源视频的宽高比。
帧与参考控制
提供起始帧和结束帧,或多个主体与风格参考图像。在提示词中说明每张参考图像的用途及相互关系。
分 4 步调用 gemini-omni-1.1-flash API
- 01
获取 API 密钥
登录 APISea,充值 $50 起,并在控制台创建一个 sk-sea 密钥。
- 02
设置 base URL
在 SDK 或 HTTP 客户端中将 https://api.apisea.ai/v1 设置为 base URL。
- 03
发送请求
调用 POST /v1/videos/generations,并传入 "model": "gemini-omni-1.1-flash" 及以下参数。
- 04
处理响应
响应中包含 task_id。轮询 GET /v1/tasks/{task_id},直到状态变为 completed,然后下载结果 URL。
curl --request POST \
--url https://api.apisea.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-omni-1.1-flash",
"prompt": "A marble rolling fast on a chain reaction style track, continuous smooth shot.",
"aspect_ratio": "16:9",
"resolution": "1080p"
}'参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
|---|---|---|---|---|
model | string | 必填 | — | Video generation model name. Must be `gemini-omni-1.1-flash`. |
nsfw_check | boolean | 可选 | false | Whether to run content moderation before submitting the video task. |
prompt | string | 可选 | — | Text instructions. For text-to-video, describe the scene. For image-to-video, video editing, or extension, describe the motion, style, or requested edit. |
resolution | string | 可选 | 720p | Output video resolution. Values are case-insensitive. |
aspect_ratio | string | 可选 | 16:9 | Video aspect ratio, used to select landscape or portrait output. |
image_urls | array\<string\> | 可选 | — | Reference image array. Only publicly accessible HTTP/HTTPS URLs are supported. |
first_frame_image | string | 可选 | — | First-frame image. Only publicly accessible HTTP/HTTPS URLs are supported. |
last_frame_image | string | 可选 | — | Last-frame image. Only publicly accessible HTTP/HTTPS URLs are supported, and it must be provided with `first_frame_image`. |
image_with_roles | array\<object\> | 可选 | — | Image array with roles. It is an equivalent alternative to `first_frame_image` / `last_frame_image` and can also declare reference images. |
url | string | 必填 | — | A publicly accessible image HTTP/HTTPS URL. |
role | string | 必填 | — | Image role: |
video_urls | array\<string\> | 可选 | — | Array of videos to edit or extend. Currently, at most one video can be provided, and it must be no longer than 10 seconds. |
metadata | object | 可选 | — | Additional parameters used to explicitly specify the generation intent. |
task | string | 可选 | — | Available task types: |
extend_from_task_id | string | 可选 | — | The local `task_id` of the previous generation task. Use it for conversational editing or further extension without re-uploading the previous video. |
gemini-omni-1.1-flash 的应用场景
短篇宣传视频
构建一个工具,将场景描述转化为带生成音频的短视频,并支持竖屏或横屏输出。
图像动画工具
允许用户提供可公开访问的图像作为起始帧,并描述所需的动作或风格。
分镜转场
根据提供的首帧和尾帧生成转场,用于分镜或视觉序列。
视频修改工作流
创建一个剪辑界面,接收短源视频和修改要求;也可以使用本地任务 ID 延长先前生成的视频。
获得更好结果的技巧
- 01
明确说明参考内容
提供多张图像时,请在提示词中说明每张图像的主体、风格及其相互关系。至少提供提示词或受支持的媒体输入。
- 02
谨慎选择分辨率
默认分辨率为 720p。APISea 360P 的费用为每秒 $0.03256,APISea 4K 的费用为每秒 $0.2904;请根据输出需求选择合适的档位。
- 03
选择一种帧控制方式
帧控制请选择 first_frame_image / last_frame_image 或 image_with_roles 其中一种,不要同时使用。两张帧图像的宽高比须与 aspect_ratio 一致。
- 04
异步处理任务
提交生成请求后,保存返回的任务 ID 并查询结果。使用 extend_from_task_id 可进一步延长视频或进行对话式编辑,无需重新上传之前的视频。
限制与须知
所有有效图像输入(包括首帧和尾帧)总数不得超过 10 张,且必须使用可公开访问的 HTTP/HTTPS URL。
视频编辑或延长最多接受一个源视频,时长不得超过 10 秒,且必须通过可公开访问的直链 HTTP/HTTPS URL 提供。
不受支持的分辨率会返回 invalid_resolution 错误;指定尾帧图像时必须同时指定首帧图像。
gemini-omni-1.1-flash API 常见问题
gemini-omni-1.1-flash 在 APISea 上的费用是多少?
APISea Default 和 APISea 720P 的费用均为每秒 $0.0968;APISea 360P 为每秒 $0.03256,APISea 1080P 为每秒 $0.1452,APISea 4K 为每秒 $0.2904。Default 配置的价格约比提供商标价低 3%,采用按量付费,仅对成功的请求计费。
如何通过 API 调用 gemini-omni-1.1-flash?
向 https://api.apisea.ai/v1/videos/generations 发送经过身份验证的 POST 请求,将 model 设为 gemini-omni-1.1-flash,并提供 Authorization Bearer token。至少包含提示词或受支持的媒体输入,然后通过任务 ID 查询异步结果。
支持哪些输出分辨率和宽高比?
支持的分辨率为 360p、720p、1080p 和 4K,默认值为 720p;2160p 会按 4K 处理。支持的宽高比为 16:9 和 9:16,但使用视频输入的工作流通常会沿用输入视频的宽高比。
它能生成音频并编辑现有视频吗?
可以。它能生成 3–10 秒、24fps 且带有生成音频的视频,并支持视频编辑和延长。提供的源视频不得超过 10 秒,且每个请求只能提供一个源视频。
默认是否启用内容审核?
不启用。提交前将 nsfw_check 设为 true,即可使用 omni-moderation-latest 审核提示词和输入图像;设为 false 或省略此参数则不会产生审核请求费用或延迟。
生成的视频可以用于商业用途吗?
商业用途须遵守提供商的条款。正式用于商业部署前,请查看适用的 Google 条款,以及输入图像、视频和生成内容涉及的权利要求。
相关模型
gemini-omni-1.1-flash-ext
Omni-Flash-Extgemini-omni-1.2-flash
gemini-omni-1.2-flash-ext
gemini-omni-flash-preview
Veo 3.1
veo3.1-fastveo3.1-fast-official
veo3.1-lite
Veo 3.1 Quality
veo3.1-quality