3 Building Applications with the Amazon Bedrock API
This chapter covers
- Making your first API calls with Amazon Bedrock
- Coding solutions for textual and image models
- Applying prompt engineering knowledge
- Calling different foundational models with the API
- Building your first application with Amazon Bedrock API
Many practitioners have found a variety of uses for Generative AI; whether it be to act as a personal assistant, helping them generate content, and many more. This involves the integration of the APIs used to call the foundational models into the applications which the users must perform the actions required. In the previous chapter, we looked at prompt engineering, which is crucial to learn before working with APIs because it provides a deep understanding of how to effectively communicate with the model to get accurate and relevant responses. This foundational knowledge ensures that users can optimize their interactions, making the most of the API's capabilities and achieving better outcomes in their applications. In this chapter, we will delve into how to start using the Amazon Bedrock API for your own use cases, building the foundation for what will later be building full-fledged applications with integrated Generative AI capabilities. We will walk through the foundational concepts necessary to use the API, how to call the API, and then implement a couple of solutions with it, such as a food recommender and with generating images.