AWS Generative AI Service - Amazon Bedrock Launched April 2023 , 28 September 2023 Amazon Generative AI Service Amazon Bedrock is now officially released and available.
In the ever-expanding realm of Artificial Intelligence (AI), generative AI stands out as a potent force for crafting innovative content, enriching user interactions, and streamlining intricate operations. Amazon Web Services (AWS) introduces Amazon Bedrock, a comprehensive hosted service that empowers developers to tap into the capabilities of top-tier AI startups as well as Amazon own Foundation Models (FMs).
Amazon Bedrock is a serverless, fully managed solution that provides access to a diverse range of foundational models via a user-friendly API. These models have been developed by renowned AI pioneers, including AI21 Labs, Anthropic, Cohere, Stability AI, and Amazon in-house innovation, Amazon Titan. You can leverage this service to identify the optimal Foundation Model (FM) tailored to their unique use cases, conduct hassle-free experimentation, and seamlessly incorporate them into their applications using a suite of AWS tools and functionalities.
1. Diverse Foundation Models: Bedrock offers a wide variety of foundation models suitable for different applications, including text and images, giving you flexibility in choosing the right model.
2. Private Customization: You can customize these models privately with your own data, granting you exceptional control and adaptability for tailoring AI solutions to your specific needs.
3. Serverless Convenience: Bedrock provides a user-friendly serverless experience, simplifying model integration and deployment using familiar AWS tools. This eliminates infrastructure management complexities and enables a focus on building advanced AI applications.
Amazon Bedrock streamlines generative AI usage, offering diverse models, private customization, and a hassle-free serverless experience—a top choice for developers seeking to create innovative AI applications effortlessly.
The Amazon Bedrock region is currently only supported in the following areas: US East (N. Virginia), US West (Oregon), US East (Ohio), and Asia Pacific (Singapore).
Navigate to the "Model access" option in the left-hand menu and activate the models you wish to utilize.
I reviewed the terms of use, selected all the available models and then saved it.
For Claude models, you will need to provide additional details to gain access.
Ready to use within minutes of saving.
PlayGrounds panel available at Amazon Bedrock that allows us to quickly test the behavior in our models.
Generate images using Stability AI "SDXL0.8".
View API Request
{
"modelId": "stability.stable-diffusion-xl-v0",
"contentType": "application/json",
"accept": "application/json",
"body": "{\"text_prompts\":[{\"text\":\"cat, wine, evening, big ben\"}],\"cfg_scale\":10,\"seed\":0,\"steps\":50}"
}
I tried the "Jurassic-2 Ultra" from AI21 Labs.
I confirmed that I can also chat in Mandarin, but it doesn't work well.
Cohere AI
View API request
{
"modelId": "cohere.command-text-v14",
"contentType": "application/json",
"accept": "*/*",
"body": "{\"prompt\":\"Give me a python hello world example.\",\"max_tokens\":400,\"temperature\":0.75,\"p\":0.01,\"k\":0,\"stop_sequences\":[],\"return_likelihoods\":\"NONE\"}"
}
Using Amazon Bedrock from Boto3
On-Demand pricing:
https://aws.amazon.com/bedrock/
https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html