Lesson 1 of 4 Foundation Model Deployment Strategies

Choosing Amazon Bedrock Inference Options

This lesson compares the ways Amazon Bedrock runs the same model, each with different pricing, capacity guarantees and latency, and how to choose the right one for each workload.

Learning outcomes

After completing this lesson, you will be able to:

  • Choose between on-demand inference and service tiers.
  • Run asynchronous workloads with batch inference.
  • Decide when Provisioned Throughput is justified.
  • Identify other model sources such as Custom Model Import and Marketplace.

On-demand inference and service tiers

On-demand inference charges per input and output token, with no commitment and no capacity to manage, subject to Regional RPM and TPM quotas. It suits variable, unpredictable or growing traffic and is the default choice. Lambda functions are a common way to call it on demand, since both scale with traffic and cost nothing when idle.

Service tiers refine on-demand pricing by urgency. The Standard tier is the default. The Priority tier processes requests ahead of other traffic for faster, more consistent responses at a premium. The Flex tier offers a discount for workloads that tolerate longer processing times, such as evaluations and background agents. The Reserved tier reserves capacity for predictable, mission-critical traffic. The tier is selected per request for supported models.

The following diagram matches three workloads that use the same model to the Bedrock inference option that suits each.

Matching Bedrock inference options to three workloads on one model. The unpredictable, latency-sensitive chat assistant uses on-demand inference, possibly in the Priority tier, with a cross-Region profile. The nightly job uses batch inference. The steady, highly utilised internal API is the candidate for Provisioned Throughput.
All three workloads use the same model.
Sort into groups

Choose the service tier

Exam skills 2.2.1 · 4.1.2

Choose the on-demand service tier that fits each workload.

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

Batch inference

Many generative AI workloads do not need an immediate answer: summarising last month's support tickets, classifying a document archive or generating embeddings for a whole corpus. Batch inference processes such large sets of prompts asynchronously. The requests are written as JSON Lines (JSONL) records in an S3 bucket, each with a record ID and a model input, and a model invocation job, created with CreateModelInvocationJob, processes them and writes the outputs to another S3 location, matched to their inputs by record ID.

For supported models, batch inference costs about half the on-demand price. It has its own quotas, separate from on-demand traffic, and Bedrock manages throughput and retries, so the application needs no client-side throttling or retry logic. Jobs typically complete within hours rather than seconds, so batch inference suits overnight document processing, bulk classification, embedding generation and pre-computing answers, but never interactive requests.

{"recordId": "doc-0001", "modelInput": {"messages": [{"role": "user", "content": [{"text": "Summarize: ..."}]}],
  "inferenceConfig": {"maxTokens": 300}}}
{"recordId": "doc-0002", "modelInput": {"messages": [{"role": "user", "content": [{"text": "Summarize: ..."}]}],
  "inferenceConfig": {"maxTokens": 300}}}

The following diagram shows a batch inference job from input to output.

How Bedrock batch inference works. Requests are written as JSONL records with a record ID and model input in S3; a model invocation job created with CreateModelInvocationJob processes them with its own quotas and managed retries, and writes the outputs to S3, matched to their inputs by record ID.
Batch pricing applies to supported models.

Provisioned Throughput

Provisioned Throughput buys dedicated capacity in model units, each delivering a defined throughput for a specific model. It is billed per hour per model unit, either with no commitment or at a discount with a one-month or six-month commitment. It guarantees throughput regardless of other traffic and is required to serve some custom models. Applications invoke the provisioned model's ARN instead of the model ID.

Provisioned Throughput suits steady, high-volume traffic where utilisation stays high; for spiky or low traffic, it is usually more expensive than on-demand because idle hours are still billed. A common pattern sizes it for the steady baseline and lets peaks overflow to on-demand. The following table compares the options.

OptionPricingCapacityBest for
On-demand (Standard)Per tokenShared, quota-limitedVariable or unpredictable traffic
Priority tierPer token, premiumPreferential processingLatency-critical user traffic
Flex tierPer token, discountedLower priorityLatency-tolerant work
Batch inferencePer token, about 50% lowerAsynchronous jobsLarge offline datasets
Provisioned ThroughputPer model unit per hourDedicatedSteady high volume; some custom models
Cross-Region inferencePer token (source Region pricing)Pooled across RegionsHigher throughput and availability

The following diagram shows Provisioned Throughput sized for the baseline.

Sizing Provisioned Throughput for the baseline. Dedicated model units serve the steady part of the traffic, and peaks overflow to on-demand inference. Sizing for the peak would leave capacity idle for most of the day, and idle hours are still billed.
The traffic shape is illustrative.
Scenario questions

Matching inference options

Exam skills 2.2.1 · 4.1.3

Choose the Bedrock inference option for each workload.

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

Other model sources

Bedrock can also serve models beyond its serverless catalogue. Custom Model Import serves supported open-weight model architectures that were fine-tuned elsewhere, for example on SageMaker AI, through the same Bedrock APIs as other models. Imported models are billed per active model copy in five-minute windows and scale to zero when idle, which saves cost for intermittent use but means the first request after an idle period experiences a cold start while a copy is loaded.

Amazon Bedrock Marketplace offers additional specialised models from many providers. A Marketplace model is deployed to a managed endpoint on instances the customer chooses, which are billed while they run, and is then called through the Bedrock APIs, so it can use features such as Guardrails. When neither option fits, for example because the model architecture is unsupported or the team needs full control of the serving stack, the model is self-hosted on SageMaker AI, covered in the next lesson.

Worked example

Matching options to workloads

A company has three workloads on the same model: a customer chat assistant with unpredictable traffic and strict latency, a nightly job that classifies 2 million documents, and a steady internal API running at high utilisation 24 hours a day.

The chat assistant uses on-demand inference, possibly in the Priority tier, with a cross-Region profile for peaks. The nightly job uses batch inference. The steady internal API is the candidate for Provisioned Throughput with a commitment, because high utilisation makes dedicated capacity cheaper and guarantees throughput.

Check yourself

Which option suits millions of documents that must be processed by tomorrow at the lowest price?

Show answer

Batch inference, which processes JSONL input from S3 asynchronously at a lower price than on-demand.

Exam Tips

Remember for the exam

  • Variable traffic: on-demand. Large offline jobs: batch inference at a lower price.
  • Steady high utilisation or guaranteed capacity: Provisioned Throughput.
  • Latency-critical traffic: Priority tier; latency-tolerant traffic: Flex tier.
  • Imported models scale to zero and may cold start.