Google Cloud 上的 Anthropic Claude 模型提供全代管和無伺服器模型,可做為 API 使用。如要在 Agent Platform 使用 Claude 模型,請直接向 Agent Platform API 端點傳送要求。Anthropic Claude 模型使用代管 API,因此不必佈建或管理基礎架構。如要改為在 Anthropic 代管的基礎架構上使用 Anthropic 的 Claude 開發人員平台,請參閱「在 Google Cloud 使用 Claude 模型 (Anthropic 代管)」。
您可以串流 Claude 回覆,縮短使用者感受到的延遲時間。串流回覆會使用伺服器傳送事件 (SSE),以遞增方式串流回覆。
Claude 模型採即付即用計費模式,或使用佈建輸送量時支付固定費用。如要瞭解即付即用定價,請參閱 Anthropic Claude 模型 Google Cloud 定價頁面。
Claude Google Cloud 模型
Anthropic 提供下列模型,可在 Gemini Enterprise Agent Platform 使用。如要存取 Claude on Google Cloud 模型,請前往其 Model Garden 模型資訊卡。
Anthropic 的 Claude 模型支援 Agent Platform 要求與回覆記錄功能。啟用 30 天的要求/回覆記錄功能,記錄提示和完成活動,追蹤使用者是否濫用模型。詳情請參閱「記錄要求和回應」。
如要記錄每個 Claude 要求的權杖數量、延遲時間和錯誤,而不儲存提示或回覆,請參閱「記錄推論要求中繼資料」。如要瞭解 Claude 欄位名稱,請參閱「Claude 模型的詞元數量」。
確認模型啟用狀態
合作夥伴模型啟用功能是專案專屬,並透過 Google Cloud Marketplace 授權管理,而非專案層級的 Agent Platform API 設定。如要瞭解必要角色和組織政策,請參閱「授予使用者合作夥伴模型的存取權」。
如要確認是否已啟用 Claude 模型,請在Google Cloud 控制台中選取專案,然後在 Model Garden 中開啟模型資訊卡:
如果專案已啟用模型,模型資訊卡會顯示「View code」(查看程式碼) 或「Open notebook」(開啟筆記本) 等使用動作。
如果專案未啟用模型,模型資訊卡會顯示「Enable」(啟用) 或「Request access」(要求存取權)。
不支援使用 Google Cloud CLI 或 Agent Platform API 列出專案啟用的合作夥伴模型。gcloud ai model-garden models list 指令會列出公開的 Model Garden 目錄,而非依專案的 Cloud Marketplace 授權篩選。
Claude Fable 模型
Claude Opus 模型
Claude Sonnet 模型
Claude Haiku 模型
Google Cloud 上的 Claude 模型 (Anthropic 代管)
Google Cloud 上的 Claude 模型 (Anthropic 代管) 服務可讓您在 Google Cloud使用 Anthropic 的 Claude 開發人員平台。Anthropic 推出新功能 (包括新模型和研究預先發布版) 當天,您就能透過這項服務使用。
詳情請參閱「在 Google Cloud 使用 Claude 模型 (Anthropic 代管)」。