跳到正文
Vercel Blog(vercel.com)· Jerilyn Zheng·· 18 天前品質評分43

Gemini Omni 1.2 Flash 登上 Vercel AI Gateway,可透過單一 API key 生成影片

Gemini Omni 1.2 Flash now available on AI Gateway

重點導讀

Google 的 Gemini Omni 1.2 Flash 現已在 Vercel AI Gateway 提供,可用單一 API key 生成影片,無須另外準備 Google 帳號。

  • 生成與編輯影片:可從文字提示生成 3–15 秒、含原生音訊的影片,也可編輯 3–15 秒來源片段,並使用最多 6 張參考圖片。
  • 延長與微調:每次呼叫可延長 3–10 秒,影片總長最多 30 秒;也可在後續呼叫中使用 previousInteractionId 微調先前生成的片段。
  • 輸出規格與用法:支援 360p、720p、1080p、4K,畫面比例為 16:9 或 9:16。在 AI SDK 中使用 generateText 或 streamText,即可接收生成影片檔案;模型名稱為 google/gemini-omni-1.2-flash。
  • AI Gateway 費用與功能:平臺依供應商定價收費,不加價,也不對推論收取平臺費用;Bring Your Own Key(BYOK)請求亦適用。另提供用量與成本追蹤、重試與故障切換設定、效能最佳化、自訂報表、Zero Data Retention 支援、API key 預算及路由規則。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

Gemini Omni 1.2 Flash from Google is now available on AI Gateway. Generate videos from text prompts with one API key and no separate Google account.

Gemini Omni 1.2 Flash generates 3–15 second videos with native audio and edits 3–15 second source clips with up to six reference images. Extend videos by 3–10 seconds per call, up to 30 seconds total, or refine generated clips in follow-up calls using previousInteractionId. Output supports 360p, 720p, 1080p, and 4K in 16:9 or 9:16. Use generateText or streamText in AI SDK to receive the generated video as a file.

Generate a video

Use google/gemini-omni-1.2-flash as the model name. This example generates a three-second, 360p clip and saves it as video.mp4:

Receive video in a streaming response

With streamText, read fullStream to handle generated files as they arrive. The video is delivered as a completed file:

AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in custom reporting, Zero Data Retention support, budgets for API keys, routing rules, and more.

AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.

Explore more models in the AI Gateway model catalog.

Read more

來源: Vercel Blog (vercel.com)
開啟原文

讀者討論

理性交流 · 即時討論