

# Edit an image with the image sandbox


If you use the image playground with a Stable Diffusion XL model, you can use the image sandbox to make changes to a model.

**Note**  
The image sandbox action is only available with Stable Diffusion XL models.

**To edit an image in the image sandbox**

1. Navigate to the Amazon SageMaker Unified Studio landing page by using the URL from your administrator.

1. Access Amazon SageMaker Unified Studio using your IAM or single sign-on (SSO) credentials. For more information, see [Access Amazon SageMaker Unified Studio](getting-started-access-the-portal.md).

1. At the top of the page, choose the **Discover**.

1. In the **GENERATIVE AI** section, choose **Image and video playground**.

1. If the **Configurations** pane isn't open, choose the configuration button.

1. For **Model** select a model to use.

1. For **Action** choose **Remove object**.

1. (Optional) For **Negative prompt** enter text that describes content or concepts that you do not want the model to include in the image.

1. In **Reference image** choose **Upload image** and upload the image that you want the model to use with the action. 

1. (Optional) In **Advanced configurations**, change how the model generates images by making advanced configuration changes. For more information, see [Advanced configuration options](explore-image-playground.md#bedrock-image-advanced-configurations).

1. In the center pane, use the masking tool to draw a bounding box around the area of the image that you want the action to update. You can do the following:

   1. Resize the bounding box by selecting a corner of the bounding box with your mouse button. Then, drag the mouse to resize the bounding box. Release the mouse button to complete resizing the bounding box.

   1. Move the bounding box by selecting the interior of the bounding box with your mouse button. Move the bounding box to the new location and release the mouse button.

1. In the **Enter prompt** text box, enter the prompt that describes the edit that that you want the model inside the bounding box. 

1. Press Enter on your keyboard to start the action. Amazon Bedrock in SageMaker Unified Studio shows the image that the model generates in the playground.