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,接著依 task 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 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.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 可以打造什麼
短篇宣傳影片
打造一款能將場景描述轉換成含生成音訊短片的工具,並提供直式或橫式輸出選項。
圖片動畫工具
讓使用者提供可公開存取的圖片作為起始影格,並描述想要的動作或風格。
分鏡轉場
根據提供的起始影格與結束影格,為分鏡或視覺序列生成轉場。
影片修訂工作流程
建立可接受短片來源影片及修改要求的剪輯介面,或使用本機 task 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
以非同步方式處理任務
提交生成請求後,請保留回傳的 task ID,並據此查詢結果。如需進一步延長影片或進行對話式編輯,可使用 extend_from_task_id,無須重新上傳先前的影片。
限制與須知
所有實際使用的圖片輸入(包括起始影格和結束影格)總數不得超過 10 張,且必須使用可公開存取的 HTTP/HTTPS URL。
編輯或延長影片時,最多只能提供一段來源影片,長度不得超過 10 秒,並須透過可公開存取的直接 HTTP/HTTPS URL 提供。
不支援的解析度會回傳 invalid_resolution 錯誤;若提供結束影格圖片,就必須同時提供起始影格圖片。
gemini-omni-1.1-flash API 常見問題
在 APISea 上使用 gemini-omni-1.1-flash 的費用是多少?
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?
將經過驗證的 POST 請求傳送至 https://api.apisea.ai/v1/videos/generations,並將 model 設為 gemini-omni-1.1-flash,同時提供 Authorization Bearer token。至少加入提示詞或支援的媒體輸入,接著依 task 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