gemini-omni-1.2-flash-ext API 价格
所有价格均以 USD 计。对比 APISea 费率与相同计费单位的官方标价。
| 选项 | APISea | 官方 | 节省 |
|---|---|---|---|
| 1080P | $0.0264 | $0.209 | −87% |
| 360P | $0.0176 | $0.023 | −23% |
| 4K | $0.0616 | $0.07 | −12% |
| 720P默认 | $0.0264 | $0.104 | −75% |
价格单位为 每秒。
gemini-omni-1.2-flash-ext 是什么?
Google 的 Gemini Omni 模型 gemini-omni-1.2-flash-ext 为开发者提供统一的 API,可用于视频生成、编辑和延长。您可以从文本提示词开始生成视频、为首帧图像添加动画、使用首尾帧引导转场,或提供最多 10 张参考图像。您还可以编辑源视频,或在其后追加新片段。可设置的选项包括分辨率、横屏或竖屏宽高比、负向提示词和系统指令。
在 APISea 上提交异步任务,并通过任务 ID 查询结果。支持的分辨率为 360p、720p、1080p 和 4k;时长规则取决于所选模式。采用按量付费,按秒计费,且仅对成功请求收费。APISea 对 360P 按秒收费 $0.0176,对 720P 或 1080P 按秒收费 $0.0264,对 4K 按秒收费 $0.0616。默认配置的价格比服务提供商的标价低约 75%。
gemini-omni-1.2-flash-ext 的亮点
多种视频工作流
通过同一个模型实现文生视频、首帧动画、首尾帧生成、多图参考、视频编辑或视频延长。
参考图片引导
提供 1–10 张角色、产品或风格参考图像。编辑和延长视频时,也可以在提供源视频的同时使用参考图像。
分辨率与画面比例
可选择输出分辨率:360p、720p、1080p 或 4k,并采用 16:9 横屏或 9:16 竖屏画面比例。延长视频时会保留源视频的宽高比。
提示词级控制
必须通过提示词描述场景或所需的修改。您可以添加负向提示词以排除不需要的内容,或添加系统指令来引导视觉风格。
分 4 步调用 gemini-omni-1.2-flash-ext 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.2-flash-ext" 及以下参数。
- 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.2-flash-ext",
"prompt": "Aerial shot over a misty mountain lake at sunrise.",
"duration": 10,
"resolution": "1080p",
"aspect_ratio": "9:16"
}'参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
|---|---|---|---|---|
model | string | 必填 | — | Video generation model name. Fixed as `gemini-omni-1.2-flash-ext`. |
nsfw_check | boolean | 可选 | false | Whether to run content moderation before submitting the video task. |
prompt | string | 必填 | — | Video description or editing instruction. It cannot be empty after leading and trailing whitespace is trimmed. For Text-to-Video, describe the scene, characters, actions, camera, and sound; with images or videos, describe the motion, style, or changes you want. |
duration | integer | 可选 | 10 | Video duration in seconds. Must be an integer. |
resolution | string | 可选 | 720p | Video resolution, case-insensitive. It determines the per-second price. |
aspect_ratio | string | 可选 | 16:9 | Only `16:9` (landscape, default) and `9:16` (portrait) are supported; other values return a 400 error. |
omni_reference_task_type | string | 可选 | — | Task type, specifying how the input material is used. |
generation_type | string | 可选 | — | Compatible field, equivalent to `omni_reference_task_type`. Allowed values: `frame` (same as `image_to_video`), `reference`, `edit`, `extend`. |
image_urls | array\<url\> | 可选 | — | Reference image array for multi-image reference (characters, products, styles, etc.). Supports 1–10 images. |
first_frame_image | string | 可选 | — | First-frame image. The first frame of the generated video is this image. Only publicly accessible HTTP/HTTPS image URLs are supported; Base64 Data URLs are not supported. |
last_frame_image | string | 可选 | — | Last-frame image for first-and-last-frame generation; the video transitions from the first frame to this image. Only publicly accessible HTTP/HTTPS image URLs are supported; Base64 Data URLs are not supported. |
image_with_roles | array\<object\> | 可选 | — | Image array with roles, an equivalent way to write `first_frame_image` / `last_frame_image` / `image_urls`. |
url | string | 必填 | — | Publicly accessible HTTP/HTTPS image URL. Base64 Data URLs are not supported. |
role | string | 可选 | — | |
video_urls | array\<url\> | 可选 | — | Array of videos to edit or extend. Only 1 video is supported. You can also use the single-value field `video_url` instead; pass only one of them. |
extend_from_task_id | string | 可选 | — | A task ID on this platform (`task_01…`). Continue editing or extending one of your previously completed `gemini-omni-1.2-flash-ext` tasks without re-uploading the video. |
negative_prompt | string | 可选 | — | Content you do not want to appear in the video. |
system_prompt | string | 可选 | — | System instruction, such as fixing the visual style or forbidding on-screen text. Must be a string. |
gemini-omni-1.2-flash-ext 的应用场景
产品视频制作
构建工作流,将产品参考图像和动作指令转化为可用于营销活动素材的短视频。
竖屏内容工具
让用户根据文本或首帧图像生成 9:16 视频,以适用于竖屏发布工作流。
视觉转场生成
接收起始图像和结束图像,生成两个指定画面之间的视频转场。
视频素材修改工作流
为团队提供由提示词驱动的界面,用于编辑源视频素材,或向此前完成的模型任务追加新内容。
获得更好结果的技巧
- 01
根据模式编写提示词
始终提供非空提示词。对于文生视频,请描述场景、角色、动作、镜头和声音;对于视频编辑,请描述所需的修改。
- 02
明确指定视频模式
提供源视频或已完成任务的 ID 时,请明确选择 edit 或 extend。使用 omni_reference_task_type 或 generation_type 其中之一,切勿同时使用。
- 03
根据模式设置时长
文生视频、首帧生成或多图生成的时长请设为 3–15 秒的整数;首尾帧生成或追加延长片段的时长请设为 3–10 秒。编辑模式下请完全省略 duration 和 seconds。
- 04
提交前选择分辨率
分辨率决定每秒价格:360P 为 $0.0176,720P 和 1080P 为 $0.0264,4K 为 $0.0616。提交任务后,通过任务 ID 查询结果。
限制与须知
处理过程为异步;必须通过任务 ID 查询结果。
参考输入最多支持 10 张图像,且仅支持一个源视频。
图像输入必须使用可公开访问的 HTTP/HTTPS URL;不支持 Base64 Data URL。
gemini-omni-1.2-flash-ext API 常见问题
在 APISea 上使用 gemini-omni-1.2-flash-ext 需要多少钱?
APISea 的价格为:360P 每秒 $0.0176,720P 每秒 $0.0264,1080P 每秒 $0.0264,4K 每秒 $0.0616。采用按量付费,且仅对成功请求收费;默认配置的价格比服务提供商的标价低约 75%。
如何调用 gemini-omni-1.2-flash-ext?
向 https://api.apisea.ai/v1/videos/generations 发送 POST 请求,使用 Bearer Token 进行身份验证,将 model 设为 gemini-omni-1.2-flash-ext,并提供非空提示词。API 会创建异步任务;您可以使用任务 ID 查询结果。
它能根据图像生成视频或编辑现有视频吗?
可以。它支持首帧图像转视频、首尾帧生成、多图参考,以及编辑或延长源视频。输入视频时必须指定任务类型;建议明确选择 edit 或 extend。
支持哪些分辨率和时长?
支持的分辨率为 360p、720p、1080p 和 4k,2160p 也可作为 4k 的别名使用。文生视频、首帧生成和多图生成支持 3–15 秒;首尾帧生成和新增延长片段支持 3–10 秒。编辑时长遵循源视频时长,且不接受 duration 参数。
默认是否启用内容审核?
不会。nsfw_check 默认值为 false;将其设为 true 后,会在提交前使用 omni-moderation-latest 审核提示词和输入图像。设为 false 或省略该参数时,不会发送审核请求,也不会产生审核费用或延迟。
生成的视频可以用于商业用途吗?
商业用途须遵守服务提供商的条款。请根据您的预期用途查阅适用条款;所提供的模型文档未说明商业许可权益。
相关模型
gemini-omni-1.1-flash-ext
Omni-Flash-Extgemini-omni-1.1-flash
gemini-omni-1.2-flash
gemini-omni-flash-preview
Veo 3.1
veo3.1-fastveo3.1-fast-official
veo3.1-lite
Veo 3.1 Quality
veo3.1-quality开始使用 gemini-omni-1.2-flash-ext 构建
一个密钥即可,按量付费,$50 起,仅对成功请求计费。