Quickstart: Generate and verify an image's watermark using Imagen text-to-image (Console)

Learn how to use Imagen on Vertex AI's text-to-image generation feature and verify a digital watermark (SynthID) on a generated image. This quickstart shows you how to use Imagen image generation in the Google Cloud console.

Imagen on Vertex AI pricing is based on the feature you use. For more information, see Pricing.

A generated image of a dog
Image generated using Imagen on Vertex AI from the prompt: portrait of a french bulldog at the beach, 85mm f/2.8.

Before you begin

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. Enable the Vertex AI API.

    Enable the API

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  6. Make sure that billing is enabled for your Google Cloud project.

  7. Enable the Vertex AI API.

    Enable the API

Generate images and save a local copy

Send the text-to-image generation request using the Google Cloud console.

  1. In the Google Cloud console, open the Vertex AI Studio > Media tab in the Vertex AI dashboard.

    Go to the Vertex AI Studio tab

  2. In the Prompt (Write your prompt here) field, enter the following prompt:

     portrait of a french bulldog at the beach, 85mm f/2.8
    
  3. If not selected, in the Model options box in the Parameters panel, select Imagen 3.

  4. If not selected, in the Aspect ratio section in the Parameters panel, select 1:1.

  5. In the Number of results section, change the Number of results to 2.

  6. Click Generate.

    Generating images produces images similar to the following images:

    Sample generated images in
console

  7. To save a local copy of an image, click one of the images.

  8. In the Image details window that opens, click Export.

  9. In the Export image dialog box, click Export.

Verify an image's digital watermark

After you generate watermarked images, you can verify the digital watermark of the novel images.

  1. Create generated images and save a local copy as you did in the previous step.

  2. In the Image detail window, click Export.

  3. In the lower panel, click Verify.

  4. Click Upload image.

  5. Select a locally-saved generated image.

    Sample verified watermark in generated image in console

Congratulations! You've just used the Imagen text-to-image generation feature to create novel images and verify the digital watermark of one of the images.

Clean up

To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.

Delete the project

  1. In the Google Cloud console, go to the Manage resources page.

    Go to Manage resources

  2. In the project list, select the project that you want to delete, and then click Delete.
  3. In the dialog, type the project ID, and then click Shut down to delete the project.

What's next