Amazon Bedrock API Reference
This document provides detailed information about the Bedrock API actions and their parameters. For more information about setting up the Amazon Bedrock APIs, see Set up the Amazon Bedrock API.
Amazon Bedrock endpoints
To connect programmatically to an AWS service, you use an endpoint. Refer to the Amazon Bedrock endpoints and quotas chapter in the AWS General Reference for information about the endpoints that you can use for Amazon Bedrock.
Amazon Bedrock provides the following service endpoints.
-
bedrock
– Contains control plane APIs for managing, training, and deploying models. For more information, see Amazon Bedrock Actions and Amazon Bedrock Data Types. -
bedrock-runtime
– Contains data plane APIs for making inference requests for models hosted in Amazon Bedrock. For more information, see Amazon Bedrock Runtime Actions and Amazon Bedrock Runtime Data Types. -
bedrock-agent
– Contains control plane APIs for creating and managing agents, knowledge bases, prompt management, and prompt flows. For more information, see Amazon Bedrock Agents Actions and Amazon Bedrock Agents Data Types. -
bedrock-agent-runtime
– Contains data plane APIs for invoking agents and flows, and querying knowledge bases. For more information, see Amazon Bedrock Agents Runtime Actions and Amazon Bedrock Agents Runtime Data Types.
Note
Check that you're using the correct endpoint when making an API request.
AWS Command Line Interface references
Refer to the following references for AWS CLI commands and operations:
AWS SDK references
AWS software development kits (SDKs) are available for many popular programming languages. Each SDK provides an API, code examples, and documentation that make it easier for developers to build applications in their preferred language. SDKs automatically perform useful tasks for you, such as:
-
Cryptographically sign your service requests
-
Retry requests
-
Handle error responses
Refer to the following table to find general information about and code examples for each SDK, as well as the Amazon Bedrock API references for each SDK. You can also find code examples at Code examples for Amazon Bedrock using AWS SDKs.
SDK documentation | Code examples | Amazon Bedrock prefix | Amazon Bedrock runtime prefix | Amazon Bedrock Agents prefix | Amazon Bedrock Agents runtime prefix |
---|---|---|---|---|---|
bedrock |
bedrock-runtime |
bedrock-agent |
bedrock-agent-runtime |
||
bedrock | bedrockruntime | bedrockagent | bedrockagentruntime | ||
bedrock |
bedrockruntime |
bedrockagent |
bedrockagentruntime |
||
bedrock | bedrock-runtime | bedrock-agent | bedrock-agent-runtime | ||
bedrock |
bedrockruntime |
bedrockagent |
bedrockagentruntime |
||
Bedrock | BedrockRuntime | BedrockAgent | BedrockAgentRuntime | ||
Bedrock | BedrockRuntime | BedrockAgent | BedrockAgentRuntime | ||
bedrock |
bedrock-runtime |
bedrock-agent |
bedrock-agent-runtime |
||
Bedrock | BedrockRuntime | BedrockAgent | BedrockAgentRuntime | ||
aws-sdk-bedrock |
aws-sdk-bedrockruntime |
aws-sdk-bedrockagent |
aws-sdk-bedrockagentruntime |
||
BDK | BDR | BDA | BDZ | ||
AWSBedrock |
AWSBedrockRuntime |
AWSBedrockAgent |
AWSBedrockAgentRuntime |