開始使用 Gemini 3

Gemini 3 是我們至今最強大的模型系列,以最先進的推論技術為基礎。這項產品旨在透過掌握 Agentic Workflows、自主程式設計和複雜的多模態工作,將任何構想化為現實。

本指南提供實用的整合式路徑,協助您開始在 Gemini Enterprise Agent Platform 使用 Gemini 3,並重點介紹 Gemini 3 的主要功能和最佳做法。

快速入門導覽課程

開始之前,您必須使用 API 金鑰或應用程式預設憑證 (ADC),向 Gemini Enterprise Agent Platform 進行驗證。詳情請參閱驗證方式。

安裝 Google Gen AI SDK

如要使用 Gemini 3 API 功能,必須安裝 1.51.0 以上版本的 Google Gen AI SDK for Python。

pip install --upgrade google-genai

設定環境變數,以便搭配使用 Google Gen AI SDK 與 Gemini Enterprise Agent Platform

將 GOOGLE_CLOUD_PROJECT 值替換為 Google Cloud 專案 ID。Gemini 3.1 Pro 模型 gemini-3.1-pro-preview 和 Gemini 3 Flash 模型 gemini-3-flash-preview 僅適用於全域端點:

export GOOGLE_CLOUD_PROJECT=GOOGLE_CLOUD_PROJECT
export GOOGLE_CLOUD_LOCATION=global
export GOOGLE_GENAI_USE_ENTERPRISE=True

發出第一項要求

根據預設,Gemini 3 模型和 Gemini 3 Flash 會使用動態思考功能,透過提示進行推論。如果不需要複雜的推論,可以限制模型的thinking_level,加快回覆速度並降低延遲。低思考程度適合速度至上的高處理量工作。

如需快速、低延遲的回覆:

from google import genai
from google.genai import types

client = genai.Client()

response = client.models.generate_content(
   model="gemini-3.6-flash",
   contents="How does AI work?",
   config=types.GenerateContentConfig(
       thinking_config=types.ThinkingConfig(
           thinking_level=types.ThinkingLevel.LOW # For fast and low latency response
       )
   ),
)
print(response.text)

嘗試複雜的推論工作

Gemini 3 擅長進階推論,如果是複雜工作,例如多步驟規劃、驗證程式碼生成或深度工具使用,請使用高思考等級。這些設定適用於先前需要專門推論模型的工作。

處理速度較慢、需要高度推論的工作:

from google import genai
from google.genai import types

client = genai.Client()

prompt = """
You are tasked with implementing the classic Thread-Safe Double-Checked Locking (DCL) Singleton pattern in modern C++. This task is non-trivial and requires specialized concurrency knowledge to prevent memory reordering issues.

Write a complete, runnable C++ program named `dcl_singleton.cpp` that defines a class `Singleton` with a private constructor and a static `getInstance()` method.

Your solution MUST adhere to the following strict constraints:
1. The Singleton instance pointer (`static Singleton*`) must be wrapped in `std::atomic` to correctly manage memory visibility across threads.
2. The `getInstance()` method must use `std::memory_order_acquire` when reading the instance pointer in the outer check.
3. The instance creation and write-back must use `std::memory_order_release` when writing to the atomic pointer.
4. A standard `std::mutex` must be used only to protect the critical section (the actual instantiation).
5. The `main` function must demonstrate safe, concurrent access by launching at least three threads, each calling `Singleton::getInstance()`, and printing the address of the returned instance to prove all threads received the same object.
"""

response = client.models.generate_content(
  model="gemini-3.6-flash",
  contents=prompt,
  config=types.GenerateContentConfig(
      thinking_config=types.ThinkingConfig(
          thinking_level=types.ThinkingLevel.HIGH # Dynamic thinking for high reasoning tasks
      )
  ),
)
print(response.text)

其他思考程度

Gemini 3 Flash 推出兩種新的思考等級:MINIMAL和MEDIUM,讓您進一步控管模型處理複雜推論任務的方式。

MINIMAL 提供接近零的思考預算選項,適合用於著重處理量而非推論的工作。MEDIUM 可在速度和推論之間取得平衡,雖然具備部分推論能力,但仍優先處理低延遲作業。

新 API 功能

Gemini 3 推出強大的 API 強化功能和新參數,讓開發人員精細控管效能 (延遲時間、成本)、模型行為和多模態擬真度。

下表摘要列出可用的核心新功能和參數,並提供詳細說明文件的直接連結:

新功能/API 變更 說明文件
模型:gemini-3.1-pro-preview 模型資訊卡
Gemini Enterprise Agent Platform 的 Model Garden
思考程度 思考
媒體解析度 圖片解讀
影片解讀
音訊解讀
文件解讀
想法簽名 想法簽名
溫度參數 API 參考資料
多模態函式回覆 呼叫函式:多模態函式回覆
串流函式呼叫 呼叫函式:串流呼叫函式

思考程度

thinking_level 參數可讓您指定模型生成回覆時的思考預算。選取其中一種狀態,即可在回覆品質、推論複雜度、延遲時間和成本之間取得平衡。

  • MINIMAL:(僅限 Gemini 3 Flash 和 Gemini 3.1 Flash-Lite) 限制模型在思考時盡可能使用較少的詞元,最適合用於不需要大量推論的低複雜度工作。MINIMAL 盡可能接近零思考預算,但仍需要思考簽章。
  • LOW:限制模型使用較少詞元思考,適合不需要大量推論的簡單工作。LOW 適合用於速度至關重要的高處理量工作。
  • MEDIUM:(僅限 Gemini 3 Flash、Gemini 3.1 Pro 和 Gemini 3.1 Flash-Lite) 提供平衡的做法,適合需要推論但不需要深度、多步驟規劃的中等複雜度工作。與 LOW 相比,這個模型提供更強大的推論能力,同時延遲時間比 HIGH 更短。
  • HIGH:允許模型使用更多權杖進行思考,適合需要深度推論的複雜提示,例如多步驟規劃、驗證程式碼生成,或進階函式呼叫情境。這是 Gemini 3 模型和 Gemini 3 Flash 的預設等級。如要取代先前可能仰賴專門推論模型執行的工作,請使用這項設定。

Google Gen AI SDK 範例

from google import genai
from google.genai import types

client = genai.Client()

response = client.models.generate_content(
   model="gemini-3.6-flash",
   contents="Find the race condition in this multi-threaded C++ snippet: [code here]",
   config=types.GenerateContentConfig(
       thinking_config=types.ThinkingConfig(
           thinking_level=types.ThinkingLevel.HIGH # Default, dynamic thinking
       )
   ),
)
print(response.text)

OpenAI 相容性範例

如果使用者採用 OpenAI 相容性層,標準參數會自動對應至 Gemini 3 的對等參數:

  • reasoning_effort 對應至 thinking_level。
  • none:對應至 thinking_level minimal (僅限 Gemini 3 Flash)。
  • medium:對應所有 Gemini 3 模型的 thinking_level 中等。
import openai
from google.auth import default
from google.auth.transport.requests import Request

credentials, _ = default(scopes=["https://www.googleapis.com/auth/cloud-platform"])

client = openai.OpenAI(
    base_url=f"https://aiplatform.googleapis.com/v1/projects/{PROJECT_ID}/locations/global/endpoints/openapi",
    api_key=credentials.token,
)

prompt = """
Write a bash script that takes a matrix represented as a string with
format '[1,2],[3,4],[5,6]' and prints the transpose in the same format.
"""

response = client.chat.completions.create(
    model="gemini-3.6-flash",
    reasoning_effort="medium", # Map to thinking_level high.
    messages=[{"role": "user", "content": prompt}],
)

print(response.choices[0].message.content)

媒體解析度

Gemini 3 推出 media_resolution 參數,可精細控管多模態視覺處理。解析度越高,模型越能讀取細小的文字或辨識微小的細節,但會增加詞元用量和延遲時間。media_resolution 參數會決定每張輸入圖片、PDF 頁面或影片影格分配到的詞元數量上限。

您可以全域設定解析度 (使用 generation_config),或為個別媒體元件設定解析度,可用的解析度包括 low、medium 或 high。ultra_high 解析度只能針對個別媒體元件設定。如未指定,模型會根據媒體類型使用最佳預設值。

詞元數

下表列出每個 media_resolution 值和媒體類型的大約詞元數量。

媒體解析度 圖片 影片 PDF
UNSPECIFIED (預設) 1120 70 560
LOW 280 70 280 + 文字
MEDIUM 560 70 560 + 文字
HIGH 1120 280 1120 + 文字
ULTRA_HIGH 2240 不適用 不適用
媒體解析度 詞元數上限 使用指南
ultra_high 2240 需要分析圖片細節的工作,例如處理螢幕錄影靜態畫面或高解析度相片。
high 1120 圖片分析工作,確保最高品質。
medium 560
low 圖片:280 影片:70 足以應付大多數工作。注意:low 影片每影格最多 70 個詞元。

為每個部分設定 media_resolution

您可以為每個媒體元件設定 media_resolution:

from google import genai
from google.genai import types

client = genai.Client()

response = client.models.generate_content(
  model="gemini-3.6-flash",
  contents=[
      types.Part(
          file_data=types.FileData(
              file_uri="gs://cloud-samples-data/generative-ai/image/a-man-and-a-dog.png",
              mime_type="image/jpeg",
          ),
          media_resolution=types.PartMediaResolution(
              level=types.PartMediaResolutionLevel.MEDIA_RESOLUTION_HIGH # High resolution
          ),
      ),
      Part(
          file_data=types.FileData(
             file_uri="gs://cloud-samples-data/generative-ai/video/behind_the_scenes_pixel.mp4",
            mime_type="video/mp4",
          ),
          media_resolution=types.PartMediaResolution(
              level=types.PartMediaResolutionLevel.MEDIA_RESOLUTION_LOW # Low resolution
          ),
      ),
      "When does the image appear in the video? What is the context?",
  ],
)
print(response.text)

全域設定 media_resolution

您也可以使用 GenerateContentConfig 全域設定 media_resolution:

from google import genai
from google.genai import types

client = genai.Client()

response = client.models.generate_content(
  model="gemini-3.6-flash",
  contents=[
      types.Part(
          file_data=types.FileData(
              file_uri="gs://cloud-samples-data/generative-ai/image/a-man-and-a-dog.png",
              mime_type="image/jpeg",
          ),
      ),
      "What is in the image?",
  ],
  config=types.GenerateContentConfig(
      media_resolution=types.MediaResolution.MEDIA_RESOLUTION_LOW, # Global setting
  ),
)
print(response.text)

想法簽名

思考簽章是加密權杖,可在多輪對話中保留模型的推論狀態,尤其是在使用函式呼叫時。

思考型模型決定呼叫外部工具時,會暫停內部推論程序,思考簽章就像是「儲存狀態」,可讓模型在您提供函式結果後,順暢地繼續思考鏈。

詳情請參閱「思考簽章」。

為什麼思考特徵很重要?

如果沒有思考簽章,模型在工具執行階段會「忘記」特定的推論步驟。傳回簽名可確保:

  • 背景資訊連續性:模型會保留呼叫工具的原因。
  • 複雜推論:啟用多步驟工作,其中一項工具的輸出內容會做為下一項工具的推論依據。

系統會在何處傳回想法簽名?

Gemini 3 模型和 Gemini 3 Flash 會對思考簽章強制執行更嚴格的驗證,並更新處理方式。思考簽章最初是在 Gemini 2.5 中推出。為確保模型在多輪對話中維持脈絡,您必須在後續要求中傳回思考簽章。

  • 即使使用 MINIMAL 思考程度,含有函式呼叫的模型回覆一律會傳回思考簽章。
  • 如果有多個平行函式呼叫,模型回應傳回的第一個函式呼叫部分會包含思考簽章。
  • 如果依序呼叫函式 (多步驟),每個函式呼叫都會有簽章,用戶端應傳回簽章
  • 如果模型回覆不含函式呼叫,則會在模型傳回的最後一部分中,傳回思考簽章。

如何處理思考特徵?

處理思考簽章的主要方式有兩種:使用 Google Gen AI SDK 或 OpenAI API 自動處理,或直接與 API 互動時手動處理。

自動處理 (建議)

如果您使用 Google Gen AI SDK (Python、Node.js、Go、Java) 或 OpenAI Chat Completions API,並使用標準對話記錄功能或附加完整模型回覆,系統會自動處理 thought_signatures。您不需要變更程式碼。

手動呼叫函式範例

使用 Google Gen AI SDK 時,系統會自動處理思考簽章,方法是在連續的模型要求中附加完整模型回覆:

from google import genai
from google.genai import types

client = genai.Client()

# 1. Define your tool
get_weather_declaration = types.FunctionDeclaration(
   name="get_weather",
   description="Gets the current weather temperature for a given location.",
   parameters={
       "type": "object",
       "properties": {"location": {"type": "string"}},
       "required": ["location"],
   },
)
get_weather_tool = types.Tool(function_declarations=[get_weather_declaration])

# 2. Send a message that triggers the tool
prompt = "What's the weather like in London?"
response = client.models.generate_content(
   model="gemini-3.6-flash",
   contents=prompt,
   config=types.GenerateContentConfig(
       tools=[get_weather_tool],
       thinking_config=types.ThinkingConfig(include_thoughts=True)
   ),
)

# 4. Handle the function call
function_call = response.function_calls[0]
location = function_call.args["location"]
print(f"Model wants to call: {function_call.name}")

# Execute your tool (e.g., call an API)
# (This is a mock response for the example)
print(f"Calling external tool for: {location}")
function_response_data = {
   "location": location,
   "temperature": "30C",
}

# 5. Send the tool's result back
# Append this turn's messages to history for a final response.
# The `content` object automatically attaches the required thought_signature behind the scenes.
history = [
    types.Content(role="user", parts=[types.Part(text=prompt)]),
    response.candidates[0].content, # Signature preserved here
    types.Content(
        role="user",
        parts=[
            types.Part.from_function_response(
                name=function_call.name,
                response=function_response_data,
            )
        ],
    )
]

response_2 = client.models.generate_content(
   model="gemini-3.6-flash",
   contents=history,
   config=types.GenerateContentConfig(
        tools=[get_weather_tool],
        thinking_config=types.ThinkingConfig(include_thoughts=True)
   ),
)

# 6. Get the final, natural-language answer
print(f"\nFinal model response: {response_2.text}")
自動呼叫函式範例

使用 Google Gen AI SDK 自動呼叫函式時,系統會自動處理思考簽章:


from google import genai
from google.genai import types

def get_current_temperature(location: str) -> dict:
    """Gets the current temperature for a given location.

    Args:
        location: The city and state, for example San Francisco, CA

    Returns:
        A dictionary containing the temperature and unit.
    """
    # ... (implementation) ...
    return {"temperature": 25, "unit": "Celsius"}

client = genai.Client()

response = client.models.generate_content(
    model="gemini-3.6-flash",
    contents="What's the temperature in Boston?",
    config=types.GenerateContentConfig(
            tools=[get_current_temperature],
    )
)

print(response.text) # The SDK handles the function call and thought signature, and returns the final text
OpenAI 相容性範例

使用 OpenAI Chat Completions API 時,系統會自動處理思考簽章,方法是在連續的模型要求中附加完整的模型回應:

...
# Append user prompt and assistant response including thought signatures
messages.append(response1.choices[0].message)

# Execute the tool
tool_call_1 = response1.choices[0].message.tool_calls[0]
result_1 = get_current_temperature(**json.loads(tool_call_1.function.arguments))

# Append tool response to messages
messages.append(
    {
        "role": "user",
        "tool_call_id": tool_call_1.id,
        "content": json.dumps(result_1),
    }
)

response2 = client.chat.completions.create(
    model="gemini-3.6-flash",
    messages=messages,
    tools=tools,
    extra_body={
        "extra_body": {
            "google": {
                "thinking_config": {
                    "include_thoughts": True,
                },
            },
        },
    },
)

print(response2.choices[0].message.tool_calls)

請參閱完整程式碼範例。

手動處理

如果您直接與 API 互動或管理原始 JSON 酬載,則必須正確處理模型對話中包含的 thought_signature。

傳回對話記錄時,您必須在收到簽章的確切位置傳回簽章。

如果未傳回正確的簽章,Gemini 3 會傳回 400 錯誤「<Function Call> in the <index of contents array> content block is missing a thought_signature」。

多模態函式回覆

多模態呼叫函式可讓使用者取得包含多模態物件的函式回覆,進一步提升模型的呼叫函式功能。標準函式呼叫僅支援文字函式回覆:

from google import genai
from google.genai import types

client = genai.Client()

# This is a manual, two turn multimodal function calling workflow:

# 1. Define the function tool
get_image_declaration = types.FunctionDeclaration(
   name="get_image",
   description="Retrieves the image file reference for a specific order item.",
   parameters={
       "type": "object",
       "properties": {
            "item_name": {
                "type": "string",
                "description": "The name or description of the item ordered (e.g., 'green shirt')."
            }
       },
       "required": ["item_name"],
   },
)
tool_config = types.Tool(function_declarations=[get_image_declaration])

# 2. Send a message that triggers the tool
prompt = "Show me the green shirt I ordered last month."
response_1 = client.models.generate_content(
    model="gemini-3.6-flash",
    contents=[prompt],
    config=types.GenerateContentConfig(
        tools=[tool_config],
    )
)

# 3. Handle the function call
function_call = response_1.function_calls[0]
requested_item = function_call.args["item_name"]
print(f"Model wants to call: {function_call.name}")

# Execute your tool (e.g., call an API)
# (This is a mock response for the example)
print(f"Calling external tool for: {requested_item}")

function_response_data = {
  "image_ref": {"$ref": "dress.jpg"},
}

function_response_multimodal_data = types.FunctionResponsePart(
   file_data=types.FunctionResponseFileData(
      mime_type="image/png",
      display_name="dress.jpg",
      file_uri="gs://cloud-samples-data/generative-ai/image/dress.jpg",
   )
)

# 4. Send the tool's result back
# Append this turn's messages to history for a final response.
history = [
  types.Content(role="user", parts=[types.Part(text=prompt)]),
  response_1.candidates[0].content,
  types.Content(
    role="user",
    parts=[
        types.Part.from_function_response(
            name=function_call.name,
            response=function_response_data,
            parts=[function_response_multimodal_data]
        )
    ],
  )
]

response_2 = client.models.generate_content(
  model="gemini-3.6-flash",
  contents=history,
  config=types.GenerateContentConfig(
      tools=[tool_config],
      thinking_config=types.ThinkingConfig(include_thoughts=True)
  ),
)

print(f"\nFinal model response: {response_2.text}")

串流函式呼叫

您可以使用串流部分函式呼叫引數,改善工具使用的串流體驗。如要啟用這項功能,請將 stream_function_call_arguments 明確設為 true:

from google import genai
from google.genai import types

client = genai.Client()

get_weather_declaration = types.FunctionDeclaration(
  name="get_weather",
  description="Gets the current weather temperature for a given location.",
  parameters={
      "type": "object",
      "properties": {"location": {"type": "string"}},
      "required": ["location"],
  },
)
get_weather_tool = types.Tool(function_declarations=[get_weather_declaration])


for chunk in client.models.generate_content_stream(
   model="gemini-3.6-flash",
   contents="What's the weather in London and New York?",
   config=types.GenerateContentConfig(
       tools=[get_weather_tool],
       tool_config = types.ToolConfig(
           function_calling_config=types.FunctionCallingConfig(
               mode=types.FunctionCallingConfigMode.AUTO,
               stream_function_call_arguments=True,
           )
       ),
   ),
):
   function_call = chunk.function_calls[0]
   if function_call and function_call.name:
       print(f"{function_call.name}")
       print(f"will_continue={function_call.will_continue}")

模型回覆範例:

{
  "candidates": [
    {
      "content": {
        "role": "model",
        "parts": [
          {
            "functionCall": {
              "name": "get_weather",
              "willContinue": true
            }
          }
        ]
      }
    }
  ]
}

溫度參數

  • Range for Gemini 3: 0.0 - 2.0 (default: 1.0)

對於 Gemini 3,強烈建議將 temperature 參數保留為預設值 1.0。

雖然先前的模型通常需要調整溫度,才能控制創意與確定性,但 Gemini 3 的推論能力已針對預設設定進行最佳化。

如果變更溫度 (設為低於 1.0),可能會導致非預期的行為,例如迴圈或效能降低,尤其是在複雜的數學或推論工作中。

支援功能

Gemini 3 模型也支援下列功能:

提示最佳做法

Gemini 3 是推論模型,因此提示方式會有所不同。

  • 精確的指示:輸入提示應簡潔扼要。Gemini 3 最適合直接、明確的指令。可能會過度分析舊模型使用的冗長或過於複雜的提示工程技術。
  • 輸出內容詳細程度:根據預設,Gemini 3 的輸出內容較不冗長,偏好提供直接、有效率的答案。如果您的用途需要更具對話性或「健談」的角色,您必須在提示中明確引導模型 (例如「請以友善、健談的助理身分說明這項內容」)。
  • 建立基準:如要建立基準,建議使用下列開發人員指令:You are a strictly grounded assistant limited to the information provided in the User Context. In your answers, rely **only** on the facts that are directly mentioned in that context. You must **not** access or utilize your own knowledge or common sense to answer. Do not assume or infer from the provided facts; simply report them exactly as they appear. Your answer must be factual and fully truthful to the provided text, leaving absolutely no room for speculation or interpretation. Treat the provided context as the absolute limit of truth; any facts or details that are not directly mentioned in the context must be considered **completely untruthful** and **completely unsupported**. If the exact answer is not explicitly written in the context, you must state that the information is not available.
  • 使用 Google 搜尋工具:使用 Google 搜尋工具時,Gemini 3 Flash 有時會將目前日期/時間與 2024 年的事件混淆。這可能導致模型制定錯誤年份的搜尋查詢。為確保模型使用正確的時間範圍,請在 system instructions 中明確強調目前日期: For time-sensitive user queries that require up-to-date information, you MUST follow the provided current time (date and year) when formulating search queries in tool calls. Remember it is 2025 this year.
  • 知識截點:對於某些查詢,明確告知 Gemini 3 Flash 知識截點,有助於提升回覆品質。如果 Google 搜尋工具已停用,且查詢明確要求模型能識別參數知識中的截止日期,就會發生這種情況。建議:在 system instructions 中加入下列子句: Your knowledge cutoff date is January 2025.
  • 使用 media_resolution:使用 media_resolution 參數,控制模型用來代表圖片或影片影格的詞元數量上限。高解析度可讓模型擷取圖片中的細節,每幀可能使用更多詞元;低解析度則可降低成本和延遲時間,適合視覺細節較少的圖片。
  • 提升影片分析品質:如果影片需要精細的時間分析,例如快速動作理解或高速動作追蹤,請使用較高的每秒影格數 (FPS) 取樣率。

遷移注意事項

遷移時,請考量下列功能和限制:

  • 思考程度:Gemini 3 模型會使用 thinking_level 參數,控制模型執行的內部推論量 (低或高),並平衡回覆品質、推論複雜度、延遲時間和成本。
  • 溫度設定:如果現有程式碼明確設定 temperature (尤其是低值,以取得確定性輸出內容), 建議移除這項參數,並使用 Gemini 3 預設值 1.0,以免在 複雜工作上發生潛在的迴圈問題或效能降低。
  • 思考簽章:對於 Gemini 3 模型,如果預期在某個回合中提供思考簽章,但未提供,模型會傳回錯誤,而非警告。
  • 媒體解析度和權杖化:Gemini 3 模型使用可變序列長度進行媒體權杖化,而非 Pan and Scan,並針對圖片、PDF 和影片提供新的預設解析度和權杖費用。
  • 多模態輸入內容的詞元計數:多模態輸入內容 (圖片、影片、音訊) 的詞元計數是根據所選 media_resolution 估算。因此,count_tokens API 呼叫的結果可能與最終耗用的權杖不符。只有在回應的 usage_metadata 內執行後,才能取得準確的計費用量。
  • 詞元用量:改用 Gemini 3 預設值後,圖片和 PDF 的詞元用量可能會增加,但影片的詞元用量會減少。如果預設解析度提高,導致要求超出脈絡窗口,建議明確降低媒體解析度。
  • PDF 和文件理解:PDF 的預設 OCR 解析度已變更。如果您仰賴特定行為剖析密集文件,請測試新的 media_resolution: "high" 設定,確保準確度不變。如果是 Gemini 3 模型,usage_metadata 中的 PDF 詞元數量會回報在 IMAGE 模態下,而非 DOCUMENT。
  • 影像分割:Gemini 3 模型不支援影像分割。如果工作負載需要內建影像分割功能,建議繼續使用 Gemini 2.5 Flash,並關閉思考功能。
  • 多模態函式回覆:使用 Gemini 3 模型時,您可以在函式回覆中加入圖片和 PDF 資料。

常見問題

  1. gemini-3.1-pro-preview 適用於哪個區域 Google Cloud?全球。

  2. 脈絡窗口的限制為何?Gemini 3 模型支援 100 萬個詞元的輸入脈絡窗口,以及最多 6.4 萬個詞元的輸出。

  3. gemini-3.1-pro-preview 是否支援圖像輸出?不會。

  4. gemini-3.1-pro-preview 是否支援 Gemini Live API?不會。

後續步驟