ml 19647 1
This post was written with Alex Gnibus of Stability AI.
Stability AI Image Services are now available in Amazon Bedrock, offering ready-to-use media editing capabilities delivered through the Amazon Bedrock API. These image editing tools expand on the capabilities of Stability AI’s Stable Diffusion 3.5 models (SD3.5) and Stable Image Core and Ultra models, which are already available in Amazon Bedrock and have set new standards in image generation.
The professional creative production process consists of multiple editing steps to get the exact output needed. With Stability AI Image Services in Amazon Bedrock, you can modify, enhance, and transform existing images without jumping between multiple systems or sending files to external services. Everything runs through the same Amazon Bedrock experience you’re already using. The business impact can be immediate for teams that produce visual content at scale.
In this post, we explore examples of how these tools enable precise creative control to accelerate professional-grade visual content.
Stability AI Image Services span 9 tools across two categories: Edit and Control. Each tool handles specific editing tasks that typically require specialized software or manual intervention.
The tools in the Edit category make complex editing tasks more accessible and efficient.
The suite begins with fundamental yet powerful retouching tools. The Erase Object tool, for example, removes unwanted elements from images while intelligently maintaining background consistency. The following animation showcases the Erase Object tool removing a mannequin from a product shot while preserving the background. The tool can transform a source image based on a mask image or derive the mask from the source image’s alpha channel.
The Remove Background tool automatically isolates subjects with precision. This enables the creation of clean, professional product listings with consistent backgrounds or a variety of lifestyle settings, which is a game changer for ecommerce.
The following example illustrates the removal of an image background, while preserving details of a furniture product in the foreground.
The Search and Recolor and Search and Replace tools target specific elements within images for modification. Search and Recolor changes object colors; for example, showing different colorways of a dress without new photoshoots. In the following illustration, Search and Recolor changes the color swatch on furniture.
Search and Replace can swap objects entirely, which is useful for updating seasonal elements in marketing materials or replacing products. The following is an application of Search and Replace for virtual try-on experiences.
The Inpaint tool intelligently modifies images by filling in or replacing specified areas with new content based on the content of a mask image.
This category of tools provides precise manipulation of image structure and style through three specialized tools.
The Sketch tool transforms sketch-style renderings into photorealistic concepts. Architecture firms might use this to convert conceptual drawings into realistic visualizations, and apparel brands to turn design sketches into product mockups. The tool helps accelerate the creative production process from initial concepts to final visual execution.
In this example, the Sketch tool transforms a building architecture drawing to help real estate developers visualize the concept against a cityscape.
In another example, the Sketch tool transforms a mannequin drawing into a photorealistic model shot.
The Structure tool maintains the structural elements of input images while allowing content modification. This tool helps preserve layouts, compositions, and spatial relationships while changing subjects or styles. Creative teams can use the Structure tool to recreate scenes with different subjects or render new characters while maintaining consistent framing.
The following example demonstrates the Structure tool transforming a workshop scene into a new scene while preserving the composition and spatial relationships.
The Style Guide and Style Transfer tools help marketing teams produce new images that align with brand style and guidelines. The Style Guide tool takes artistic styles and colors from a reference style image and generates new images based on text prompts.
In the following example, the Style Guide tool takes clues from a brand’s color palette and textures and generates new images matching brand identity.
The Style Transfer tool uses visual characteristics from reference images to transform existing images, while preserving the original composition. For example, a home decor retailer can transform product imagery from modern minimalist to traditional styles without new photography. Marketing teams could create seasonal variations by applying different visual styles to existing product catalogs.
To demonstrate Stability AI Image Services in Amazon Bedrock, let’s walk through an example using a Jupyter notebook found in the GitHub repo.
To follow along, you must have the following prerequisites:
AmazonSageMakerFullAccess
and AmazonBedrockLimitedAccess
AWS managed policies attached. For more details, see How to use SageMaker AI execution roles.Complete the following steps to create a SageMaker AI notebook instance, which can be used to run the sample notebook:
ai-images-notebook-instance
).AmazonSageMakerFullAccess
and AmazonBedrockLimitedAccess
policies attached, or choose Create a new role.After a few minutes, SageMaker AI creates a notebook instance, and its status changes from Pending to InService.
Complete the following steps to verify that the SageMaker AI execution role that you assigned to the notebook instance has the correct permissions:
AmazonSageMakerFullAccess
and AmazonBedrockLimitedAccess
are present.Complete the following steps to run the notebook:
ai-images-notebook-instance
notebook instance.https://github.com/aws-samples/stabilityai-sample-notebooks.git
and select Include submodules and Download the repository.stabilityai-sample-notebooks/stability-ai-image-services/stability-ai-image-services-sample-notebook.ipynb
conda_python3
, then choose Select.To avoid ongoing charges, stop the ai-images-notebook-instance
SageMaker AI notebook instance that you created in this walkthrough:
ai-images-notebook-instance
SageMaker AI notebook instance that you created.After a few minutes, the notebook instance transitions from Stopping to Stopped status.
After a few seconds, SageMaker AI deletes the notebook instance.
For more details, refer to Clean up Amazon SageMaker notebook instance resources.
The availability of Stability AI Image Services in Amazon Bedrock is an exciting step forward for visual content creation and manipulation, with particularly time-saving implications for professional creative teams at enterprises.
For example, in media and entertainment, creators can rapidly enhance scenes and create special effects, and marketing teams can generate multiple campaign variations effortlessly. Retail and ecommerce businesses can streamline product photography and digital catalog creation, and gaming developers can prototype environments more efficiently. Architecture firms can visualize design concepts instantly, and educational institutions can create more engaging visual content.
With these tools, businesses of different sizes can produce professional-grade, highly engaging visual content with efficiency and creativity. These tools can streamline operations, reduce costs, and open new creative possibilities, helping brands tell their stories more effectively and engage customers in more compelling ways.
To get started, check out Stability AI models in Amazon Bedrock and the AWS Samples GitHub repo.
Just doing something a little different on this video. Testing Wan-Animate and heck while I’m…
Introduction In machine learning, no single model is perfect.
Editor’s Note: This is the first post in a series exploring how Palantir customizes infrastructure…
AI agents are evolving beyond basic single-task helpers into more powerful systems that can plan,…
As a Python library for accelerator-oriented array computation and program transformation, JAX is widely recognized…
The serial website builder Riley Walz launched a project that tracked San Francisco parking enforcement…