Quickstart: Generate and verify an image's watermark using Imagen text-to-image (Console) Stay organized with collections Save and categorize content based on your preferences.
API reference overview: To view an overview of the API options for image generation andediting, see theimagegeneration model API reference.
Learn how to use Imagen on Vertex AI's text-to-image generation feature andverify a digital watermark (SynthID) on a generated image. Thisquickstart shows you how to use Imagen image generation in theGoogle Cloud console.
Imagen on Vertex AI pricing is based on the feature you use. For moreinformation, seePricing.

Before you begin
- 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.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
- Create a project: To create a project, you need the Project Creator role (
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Vertex AI API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.Make sure that you have the following role or roles on the project: Vertex AI User
Check for the roles
In the Google Cloud console, go to theIAM page.
Go to IAM- Select the project.
In thePrincipal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
- For all rows that specify or include you, check theRole column to see whether the list of roles includes the required roles.
Grant the roles
In the Google Cloud console, go to theIAM page.
Go to IAM- Select the project.
- ClickGrant access.
In theNew principals field, enter your user identifier. This is typically the email address for a Google Account.
- In theSelect a role list, select a role.
- To grant additional roles, clickAdd another role and add each additional role.
- ClickSave.
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
- Create a project: To create a project, you need the Project Creator role (
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Vertex AI API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.Make sure that you have the following role or roles on the project: Vertex AI User
Check for the roles
In the Google Cloud console, go to theIAM page.
Go to IAM- Select the project.
In thePrincipal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
- For all rows that specify or include you, check theRole column to see whether the list of roles includes the required roles.
Grant the roles
In the Google Cloud console, go to theIAM page.
Go to IAM- Select the project.
- ClickGrant access.
In theNew principals field, enter your user identifier. This is typically the email address for a Google Account.
- In theSelect a role list, select a role.
- To grant additional roles, clickAdd another role and add each additional role.
- ClickSave.
Generate images and save a local copy
Send the text-to-image generation request using the Google Cloud console.
In the Google Cloud console, go to theVertex AI> Media Studiopage.
In thePrompt (Write your prompt here) field, enter the followingprompt:
portrait of a french bulldog at the beach, 85mm f/2.8If not selected, in theModel options box in theParameters panel, select
Imagen 3.If not selected, in theAspect ratio section in theParameters panel, select
1:1.In theNumber of results section, change theNumber of results to
2.ClickGenerate.
Generating images produces images similar to the following images:

To save a local copy of an image, click one of the images.
In theImage details window that opens, clickExport.
In theExport image dialog box, clickExport.
Verify an image's digital watermark
After you generate watermarked images, you can verify the digital watermark ofthe novel images.
Create generated images and save a local copy as you did in the previousstep.
In theImage detail window, clickExport.
In the lower panel, click
ClickUpload image.
Select a locally-saved generated image.

Congratulations! You've just used the Imagen text-to-imagegeneration feature to create novel images and verify the digital watermark ofone of the images.
Clean up
To avoid incurring charges to your Google Cloud account for the resources usedon this page, follow these steps.
What's next
- Learn about all image generative AI features in theImagen on Vertex AI overview.
- Readusageguidelines forImagen on Vertex AI.
- Explore more pretrained models inModel Garden.
- Learn aboutresponsible AI best practices and Vertex AI's safetyfilters.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.