Getting started in the Amazon Bedrock console - Amazon Bedrock

Getting started in the Amazon Bedrock console

This section describes how to use the playgrounds in the AWS console to submit a text prompt to a Amazon Bedrock foundation model (FM) and generate a text or image response. Before you run the following examples, you should check that you have fulfilled the following prerequisites:

Prerequisites

  • You have an AWS account and have permissions to access a role in that account with the necessary permissions for Amazon Bedrock. Otherwise, follow the steps at I already have an AWS account.

  • You've requested access to the Amazon Titan Text G1 - Express and Amazon Titan Image Generator G1 models. Otherwise, follow the steps at Request access to a Amazon Bedrock foundation model.

  • You're in the US East (N. Virginia) (us-east-1) Region. To change regions, choose the Region name at the top right of the console, next to your IAM role. Then select US East (N. Virginia) (us-east-1).

Explore the text playground

The following example demonstrates how to use the text playground:

  1. Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/.

  2. From the left navigation pane, choose Text under Playgrounds.

  3. Choose Select model and select a provider and model. For this example, we will select Amazon Titan Text G1 - Lite. Then choose Apply

  4. Select a default prompt from below the text panel, or enter a prompt into the text panel, such as Describe the purpose of a "hello world" program in one line.

  5. Choose Run to run inference on the model. The generated text appears below your prompt in the text panel.

Explore the image playground

The following example demonstrates how to use the image playground.

  1. Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/.

  2. From the left navigation pane, choose Image under Playgrounds.

  3. Choose Select model and select a provider and model. For this example, we will select Amazon Titan Image Generator G1. Then choose Apply

  4. Select a default prompt from below the text panel, or enter a prompt into the text panel, such as Generate an image of happy cats.

  5. In the Configurations pane, change the Number of images to 1.

  6. Choose Run to run inference on the model. The generated image appears above the prompt.