瞭解如何使用 Vertex AI 的 Imagen 文字轉圖像生成功能,並驗證生成圖像上的數位浮水印 (SynthID)。本快速入門導覽課程說明如何在Google Cloud 控制台中使用 Imagen 圖像生成功能。
Vertex AI 的 Imagen 定價取決於您使用的功能。詳情請參閱「定價」。

事前準備
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI API.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI API.
在 Google Cloud 控制台中,開啟 Vertex AI 資訊主頁中的「Vertex AI Studio」>「Media」分頁。
在「提示」(「請在這裡輸入提示」) 欄位中輸入以下提示:
portrait of a french bulldog at the beach, 85mm f/2.8
如果尚未選取,請在「參數」面板的「模型選項」方塊中選取
Imagen 3
。如果未選取,請在「參數」面板的「顯示比例」部分選取
1:1
。在「結果數量」部分,將「結果數量」變更為
2
。按一下「產生」。
產生圖片時,系統會產生類似下列圖片的圖片:
如要儲存圖片的本機副本,請按一下任一圖片。
在隨即開啟的「圖片詳細資料」視窗中,按一下「匯出」。
在「Export image」對話方塊中,按一下「Export」。
在「圖片詳細資料」視窗中,按一下「匯出」。
在下方面板中,按一下「驗證」
。按一下「上傳圖片」。
選取已儲存於本機的生成圖像。
- In the Google Cloud console, go to the Manage resources page.
- In the project list, select the project that you want to delete, and then click Delete.
- In the dialog, type the project ID, and then click Shut down to delete the project.
- 請參閱 Vertex AI 的 Imagen 總覽,瞭解所有圖片生成式 AI 功能。
- 請參閱 Vertex AI 的 Imagen 使用指南。
- 在 Model Garden 中探索更多預先訓練模型。
- 瞭解負責任的 AI 技術最佳做法和 Vertex AI 的安全篩選器。
產生圖片並儲存本機副本
使用 Google Cloud 控制台傳送文字轉圖像產生要求。
驗證圖片的數位浮水印
產生浮水印圖片後,您可以驗證新圖片的數位浮水印。
恭喜!您剛剛使用了 Imagen 文字轉圖片生成功能,建立新穎圖片並驗證其中一個圖片的數位浮水印。
清除所用資源
如要避免系統向您的 Google Cloud 帳戶收取本頁所用資源的費用,請按照下列步驟操作。