Lesson 1 of 5 Generative AI and Machine Learning Architectures

Understanding Amazon Bedrock Models, APIs and Pricing

This lesson explains what Amazon Bedrock provides, how applications call foundation models, how inference profiles and service tiers work, and how usage is priced and limited.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the capabilities that Amazon Bedrock adds around foundation models.
  • Distinguish the Converse and InvokeModel APIs and when each is used.
  • Explain how cross-Region and application inference profiles affect throughput, residency and cost tracking.
  • Choose between on-demand tiers, batch inference and prompt caching for a workload.

What Amazon Bedrock provides

A foundation model (FM) is a large model trained on broad data that can be adapted to many tasks, such as answering questions, summarising, classifying, generating code or producing embeddings. Amazon Bedrock offers foundation models from Amazon (for example the Amazon Nova family and Amazon Titan Text Embeddings) and from other providers such as Anthropic, Meta, Mistral AI and others, all through one AWS API, in the customer's account and Region, with no servers or GPUs to manage. AWS does not use prompts and responses to train the models.

Around the models, Bedrock adds managed capabilities that an architecture often needs: Knowledge Bases for Retrieval Augmented Generation, Guardrails for content and safety policies, Agents for tool-using assistants, batch inference for large offline jobs, model evaluation, and options to customise or import models. Amazon Bedrock AgentCore, covered later in this chapter, provides infrastructure for running agents built with any framework.

How applications call models

Applications use the Bedrock Runtime API. The Converse and ConverseStream operations accept a list of messages, a system prompt, inference parameters (such as maximum tokens and temperature) and optional tool definitions in one format for every supported model, so switching models is largely a change of model ID. InvokeModel sends each provider's native request body and is still used for embeddings and provider-specific features. Converse is stateless: the application keeps the conversation and sends the earlier turns with each request.

A request names either a model ID or an inference profile. System-defined cross-Region inference profiles route requests from the source Region to other Regions in a geography (for example US or EU) or globally, which raises available throughput without extra infrastructure; application inference profiles are created by the customer around a model or a cross-Region profile so that usage can be tagged and tracked. Requests are authorised with IAM actions such as bedrock:InvokeModel on the model and profile ARNs, and private connectivity uses an interface VPC endpoint for bedrock-runtime.

Sort into groups

Converse, InvokeModel or a profile?

Exam skills 1.2.1

Choose how an application should call Bedrock for each need.

Log in to try this activity Interactive activities are free with an account.

Quotas, pricing and service tiers

On-demand use is charged per input and output token (or per image), and each account has Regional quotas for requests and tokens per minute; exceeding them returns a ThrottlingException, which clients handle with retries and backoff. Bedrock also offers service tiers on the same API: Standard (the default), Priority for faster responses at a premium, Flex at a discount for work that tolerates longer processing, and Reserved capacity that guarantees tokens per minute for a fixed monthly fee. Batch inference processes prompts from S3 at about half the on-demand price, and prompt caching reduces the cost of repeated prompt prefixes.

The following table summarises the main ways to call Bedrock and when each fits.

OptionHow it worksFits
Converse / ConverseStreamOne message format for all models, optional streaming and toolsNew chat, generation and tool-use code
InvokeModelProvider-native request bodyEmbeddings, provider-specific features
Cross-Region inference profileRoutes requests within a geography or globallyHigher throughput without new infrastructure
Batch inferenceAsynchronous job over prompts in S3Large offline workloads at lower cost
Match the pairs

Bedrock pricing options

Exam skills 1.2.1 · 3.1.4

Match each workload with the Bedrock pricing option that suits it.

Log in to try this activity Interactive activities are free with an account.
Worked example

Adding summarisation to a claims system

An insurer wants claim notes summarised for adjusters as soon as they are saved, and every claim from the last ten years summarised once for a data project. Data must stay in the EU.

The architect adds a Lambda function, triggered by an EventBridge event when a note is saved, that calls Converse through the EU geographic cross-Region inference profile, so peaks are absorbed without leaving the EU. The function runs in private subnets and reaches Bedrock through an interface endpoint, and its role allows invocation only of that profile and model.

The historical backlog does not go through the function at all: claim notes are exported to S3 as JSONL and processed by a batch inference job at a lower price, with results written back to S3 for the data project. An application inference profile tagged CostCenter=claims lets finance see the feature's token costs.

Check yourself

Why would an application that must keep data in the EU avoid the global cross-Region inference profile?

Show answer

A global profile can route requests to any commercial Region, while a geographic EU profile keeps processing within EU Regions. Both raise throughput, but only the geographic profile respects the residency requirement.

Exam Tips

Remember for the exam

  • Switch models without rewriting request handling: Converse API.
  • Throttling within a geography: cross-Region inference profile; data must stay in the EU: EU geographic profile, not global.
  • Large offline jobs: batch inference; repeated long prompts: prompt caching; latency-tolerant work: Flex tier.
  • Private access from VPCs: interface endpoint for bedrock-runtime with an endpoint policy.