Using Amazon Bedrock APIs
Like other AWS services, Amazon Bedrock provides several APIs. These APIs can be placed under the Control Plane API for managing, training, and deploying FMs and the Runtime Plane API for making invocations or inference requests to the FMs. Some of the common Control Plane Bedrock APIs include ListFoundationModels, GetFoundationModels, and CreateModelCustomizationJob. On the other hand, the Runtime Plane API has two APIs: InvokeModel and InvokeModelWithResponseStream.
In addition, there are separate APIs associated with Agents for Amazon Bedrock, something we’ll cover in more detail in Chapter 10.
You can find the complete list of API calls supported by Amazon Bedrock, including all the data types and actions you can perform, at https://docs.aws.amazon.com/bedrock/latest/APIReference/. Let’s look at some of the commonly used Bedrock API calls.
ListFoundationModels
To utilize the generative capabilities of Bedrock, the first step is...