Skip to main content
AWS Bedrock supports image input with models like amazon.nova-pro-v1:0. You can use this to analyze images and get information about them.

Code

cookbook/models/aws/bedrock/image_agent.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Set your AWS Credentials

3

Install libraries

4

Add an Image

Place an image file named sample.jpg in the same directory as your script.
5

Run Agent