The latest Gemini models, like
Gemini 3.1 Flash Image (
Nano Banana 2 ), are available to use with Firebase AI Logic on all platforms!
Learn more. Gemini 2.0 Flash and Flash-Lite models will be retired on
June 1, 2026 . To avoid service disruption, update to a newer model like
gemini-2.5-flash-lite.
Learn more.
提供意見
指定存取模型的位置
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
按一下 Gemini API 供應商,即可在這個頁面查看供應商專屬內容和程式碼。
Gemini Developer API
Vertex AI Gemini API
Gemini Developer API 提供全球模型存取權,因此系統會從全球資源池中,選取可用的模型處理要求。
注意: 本頁面並非 說明您 (開發人員) 或您所在地區的其中一位使用者是否可以存取 Gemini Developer API 。進一步瞭解 Gemini Developer API 的支援區域 和相關使用限制 。
本頁說明如何在要求中明確指定所存取模型的位置 (例如,為符合資料落地要求)。如果這項功能對您來說很重要,建議改用 Vertex AI Gemini API 存取生成模型。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-03-15 (世界標準時間)。
想進一步說明嗎?
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-03-15 (世界標準時間)。"],[],[]]