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 上提交非同步任務,並透過 task 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 key
登入 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 時,請明確選擇編輯或延伸。請使用 omni_reference_task_type 或 generation_type 其中之一,勿同時使用兩者。
- 03
依模式設定影片長度
文字、首幀或多圖片生成請使用 3–15 秒的整數長度;首尾幀生成或新增延伸片段請使用 3–10 秒。編輯模式不需提供 duration 和 seconds。
- 04
提交前選擇解析度
解析度會決定每秒價格:360P 每秒 $0.0176、720P 和 1080P 每秒 $0.0264,4K 每秒 $0.0616。提交任務後,再透過 task ID 查詢結果。
限制與須知
處理採非同步方式;必須透過 task 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?
使用 Bearer Token 驗證,向 https://api.apisea.ai/v1/videos/generations 傳送 POST 請求,將 model 設為 gemini-omni-1.2-flash-ext,並提供非空白提示詞。API 會建立非同步任務;請使用其 task ID 查詢結果。
它可以從圖片生成影片或編輯現有影片嗎?
可以。它支援首幀圖片轉影片、首尾幀生成、多圖片參考,以及來源影片編輯或延伸。輸入影片時必須指定任務類型;建議明確選擇編輯或延伸。
支援哪些解析度和影片長度?
解析度包括 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