Overview

AWS Bedrock is a managed service that facilitates the development and deployment of generative AI applications by providing access to a selection of foundation models (FMs) via a unified API. These FMs include models from Amazon (such as Amazon Titan) and third-party providers like AI21 Labs, Anthropic, Cohere, Meta, and Stability AI AWS Bedrock homepage. The service aims to abstract the underlying infrastructure complexities, allowing developers and technical buyers to focus on application logic and model integration.

Bedrock provides capabilities for customizing FMs with proprietary data using techniques like fine-tuning and retrieval-augmented generation (RAG). For RAG, it integrates with Knowledge Bases for Amazon Bedrock, which allows FMs to retrieve information from enterprise data sources like Amazon S3, enabling more contextually relevant responses Knowledge Bases for Amazon Bedrock documentation. Additionally, Agents for Amazon Bedrock enable developers to create conversational agents that can perform multi-step tasks by orchestrating FM calls and interacting with company systems Agents for Amazon Bedrock documentation.

The platform is designed for enterprises that require robust security, compliance, and scalability for their AI initiatives. It supports various compliance standards, including HIPAA eligibility, GDPR, SOC 1, 2, and 3, and multiple ISO certifications AWS Bedrock compliance details. Developers can interact with Bedrock through familiar AWS SDKs and the AWS Command Line Interface (CLI), integrating with other AWS services such as Amazon S3 for data storage and AWS Lambda for serverless function execution. This integration capability allows for the creation of end-to-end generative AI workflows within the existing AWS ecosystem.

AWS Bedrock is suitable for organizations looking to build applications such as chatbots, content generation tools, summarization services, and intelligent search. Its managed nature reduces the operational overhead associated with deploying and maintaining large language models (LLMs). The service's focus on enterprise-grade features, including Guardrails for Amazon Bedrock for implementing safety policies, positions it for use cases requiring responsible AI deployment Guardrails for Amazon Bedrock documentation. This approach contrasts with some open-source model deployments where these safety layers must be implemented manually, as noted in discussions on responsible AI development by organizations like Anthropic Anthropic's approach to responsible AI development.

Key features

  • Foundation Model Access: Provides access to a range of FMs from Amazon and third-party providers through a single API, supporting text, image, and embedding models.
  • Knowledge Bases for Amazon Bedrock: Enables FMs to query and retrieve information from private data sources, enhancing accuracy and relevance through retrieval-augmented generation (RAG).
  • Agents for Amazon Bedrock: Allows developers to create autonomous agents that can perform complex tasks by orchestrating FMs, integrating with enterprise applications, and managing conversation flows.
  • Model Customization: Supports fine-tuning FMs with proprietary data to improve performance for specific tasks and domains.
  • Guardrails for Amazon Bedrock: Offers tools to implement safety policies and filter undesirable content in both user inputs and model outputs, supporting responsible AI deployment.
  • Enterprise-Grade Security & Compliance: Built on AWS infrastructure, providing features like encryption, access controls, and adherence to compliance standards including HIPAA, GDPR, SOC, and ISO.
  • Developer Tools & SDKs: Supports interaction via AWS SDKs (Python, JavaScript, Java, Go, C++, .NET, Ruby, PHP) and the AWS CLI, integrating with other AWS services.

Pricing

AWS Bedrock pricing is pay-per-use, based on inference units and data processing for models, as well as storage and retrieval for knowledge bases and agent orchestration. Pricing varies by model and AWS region. A free tier is available for certain models and usage levels.

Service Component Pricing Model Details As of Date
Foundation Model Inference On-demand Per input token and per output token, varies by model (e.g., Amazon Titan, Anthropic Claude, AI21 Labs Jurassic, Cohere Command, Meta Llama 2, Stability AI Stable Diffusion). 2026-06-23
Provisioned Throughput Hourly rate For dedicated model capacity, billed per hour, varies by model and throughput unit. 2026-06-23
Model Customization Per training hour, per stored custom model Billed for training time and storage of the fine-tuned model. 2026-06-23
Knowledge Bases Per vector storage, per ingestion unit, per retrieval unit Billed for vector database storage, data ingestion, and retrieval operations. 2026-06-23
Agents Per agent orchestration unit Billed for the execution and orchestration of agent steps. 2026-06-23

For detailed and up-to-date pricing information, refer to the AWS Bedrock pricing page.

Common integrations

Alternatives

  • Google Cloud Vertex AI: A unified platform for building, deploying, and scaling machine learning models, including access to Google's foundation models like Gemini and PaLM.
  • Microsoft Azure OpenAI Service: Provides access to OpenAI's powerful language models, including GPT-3, GPT-4, and DALL-E 2, with Azure's enterprise-grade security and capabilities.
  • Cohere: Offers a suite of large language models for text generation, summarization, embedding, and search, available via API with a focus on enterprise applications.

Getting started

The following Python example demonstrates how to invoke a text generation model (e.g., Anthropic Claude) using the AWS Bedrock Runtime client. This code sends a prompt and prints the generated response.

import boto3
import json

def invoke_claude(prompt_text):
    client = boto3.client(service_name='bedrock-runtime', region_name='us-east-1')

    body = json.dumps({
        "prompt": f"\n\nHuman: {prompt_text}\n\nAssistant:",
        "max_tokens_to_sample": 200,
        "temperature": 0.7,
        "top_p": 0.9
    })

    model_id = 'anthropic.claude-v2'
    content_type = 'application/json'

    response = client.invoke_model(
        body=body,
        modelId=model_id,
        accept=content_type,
        contentType=content_type
    )

    response_body = json.loads(response.get('body').read())
    return response_body.get('completion')

if __name__ == "__main__":
    user_prompt = "Write a short poem about cloud computing."
    generated_text = invoke_claude(user_prompt)
    print(f"Generated Poem:\n{generated_text}")

Before running this code, ensure you have the boto3 library installed (pip install boto3) and your AWS credentials are configured. This example uses the bedrock-runtime client to interact with the model invocation API Anthropic Claude model parameters.