TL;DR
Bedrock, SageMaker, or your own vLLM stack? Compare managed LLM inference on AWS by cost model, latency, model choice and ops burden — and when each one wins.
The first LLM feature ships the same way in every team: a prompt, an API call, a response in the product. The second feature is where the bill and the architecture show up. Somebody has to run the model, and on AWS there are three honest answers — call a managed API, run a managed endpoint, or run the serving stack yourself — and they differ in cost shape, latency behaviour, model choice, and how much of your week they consume. Picking the wrong one does not break the feature. It quietly taxes every request after it, either in dollars per token, in idle GPU hours, or in on-call pages at 2am.
This article compares the three on the dimensions that decide the outcome: what each one actually is, the shape of the bill, latency and throughput under real traffic, model choice and fine-tuning, and lock-in. Prices and model lists are from the AWS documentation and pricing pages as checked on 23 November 2026 — treat any number here as a snapshot and re-check the pricing page before you budget, because both change often. The short version up front: start on Bedrock, move a workload to SageMaker when steady traffic and your own model make per-instance billing cheaper than per-token billing, and self-host only when a measured cost, latency, or data-control requirement forces you off both managed options.
The three options, in one paragraph each
Amazon Bedrock is a fully managed API to foundation models. You send a prompt to the Converse API and get a completion back; AWS runs the model, the scaling, and the infrastructure, and you pay per token. As checked on 23 November 2026, Bedrock offers more than 100 foundation models from Amazon Nova, Anthropic Claude, OpenAI, xAI, Meta, Mistral AI, DeepSeek, Google, Cohere, and others, through one API. There are no instances to size, no GPUs to provision, and no serving engine to patch. The trade is control: you cannot change the model weights, you cannot tune the serving stack, and the model list is whatever AWS has onboarded.
Amazon SageMaker AI is a managed platform for your own models. You bring a model — a fine-tuned checkpoint, an open-weight model from SageMaker JumpStart, or a container you built — and deploy it to a real-time inference endpoint. SageMaker runs the endpoint, supports autoscaling, and exposes enhanced inference metrics, but you choose the instance type, the container, and the scaling policy, and you pay for the instance hours the endpoint runs, including idle time. The trade is the opposite of Bedrock's: you own the model and the serving decisions, and you also own the bill when nobody is calling it.
Self-hosted inference means running the serving engine yourself, usually vLLM or Hugging Face Text Generation Inference, on EC2 GPU instances, on EKS, or on premises. vLLM 0.34.0 shipped on 16 November 2026 and exposes an OpenAI-compatible API, so your application code barely changes when you move between it and a managed API. You pay per GPU-hour plus the engineering time to keep the fleet healthy. The trade is the fullest control — any open-weight model, any batching policy, any hardware — in exchange for owning uptime, upgrades, and capacity planning yourself.
What each one actually is
Bedrock: the API call
Bedrock's unit of work is a single API call. The Converse API takes a model id and a list of messages and returns the response, with tool use, streaming, and prompt caching handled by the service. There is nothing to deploy, and the first call from a new account is the first line of code, not a provisioning step.
# Bedrock: one API call, no infrastructure. Model access is enabled per model in the console.
import boto3, json
client = boto3.client("bedrock-runtime", region_name="us-east-1")
response = client.converse(
modelId="anthropic.claude-sonnet-4-5-20250929",
messages=[{"role": "user", "content": [{"text": "Summarise this ticket in one line."}]}],
inferenceConfig={"maxTokens": 256, "temperature": 0.2},
)
print(response["output"]["message"]["content"][0]["text"])Two details matter in practice. First, model access is gated per model and region — enabling access is a console step before the first call, and not every model is available in every region. Second, Bedrock also offers cross-Region inference, which routes a request to another region when the home region is busy; that is how the service absorbs spikes without you provisioning anything, and it is also why latency can vary request to request. For most products this is the right default: the latency distribution is somebody else's problem, and the cost is exactly proportional to usage.
Bedrock's pricing has four shapes, and they are worth naming because they change the comparison. On-demand is per-token, priced per model. Batch inference runs asynchronous jobs at 50% below on-demand pricing, according to the Bedrock pricing page. The newer service tiers add Flex at a 50% discount to Standard for workloads that tolerate variable latency, Priority at a 75% premium for latency-sensitive traffic, and Reserved capacity for a committed baseline. Provisioned Throughput is the older reserved-capacity mechanism for guaranteed throughput on a specific model. The practical reading: Bedrock is cheapest when your traffic is bursty or unpredictable, and the tier choice is a latency decision, not just a price decision.
SageMaker: the endpoint
A SageMaker real-time endpoint is a managed fleet behind a URL. You pick the instance type — GPU size, count, and autoscaling policy — and SageMaker keeps the endpoint up, replaces failed instances, and scales within the policy you set. The documentation describes real-time inference as ideal for interactive, low-latency workloads, with endpoints fully managed and autoscaling supported. The model itself is yours: deploy an open-weight model from JumpStart, or a checkpoint you trained or fine-tuned in SageMaker, or your own inference container.
# SageMaker JumpStart: deploy a pre-trained open-weight model to a managed endpoint.
from sagemaker.jumpstart.model import JumpStartModel
model = JumpStartModel(model_id="meta-textgeneration-llama-3-3-70b-instruct")
predictor = model.deploy(
initial_instance_count=1,
instance_type="ml.g6.12xlarge",
accept_eula=True,
)
print(predictor.predict({"inputs": "Summarise this ticket in one line."}))The endpoint is yours in a way a Bedrock model id never is. You can pin the exact weights, patch the serving container, attach a VPC configuration, and run the same endpoint for a fine-tuned model that no API provider offers. The cost of that ownership is the idle bill: the endpoint charges for the instance hours it runs, whether it serves one request a minute or one a second. Autoscaling bounds the cost on the way up, but the minimum instance count is the floor you pay for the privilege of a warm endpoint. This is the option that rewards steady, predictable traffic — and punishes a demo that nobody uses.
Self-hosted: the serving stack
Self-hosting is vLLM or TGI on hardware you control. The server loads the weights, manages the KV cache, batches requests continuously, and exposes an API your application already knows how to call. The launch is one command, and the hard parts — capacity, upgrades, failure handling — are yours.
# vLLM 0.34.0 (16 November 2026): OpenAI-compatible server on your own GPU. vllm serve meta-llama/Llama-3.3-70B-Instruct \ --host 0.0.0.0 --port 8000 \ --gpu-memory-utilization 0.9 \ --max-model-len 8192
# The application code is the same shape as any OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(base_url="http://vllm.internal:8000/v1", api_key="not-needed")
response = client.chat.completions.create(
model="meta-llama/Llama-3.3-70B-Instruct",
messages=[{"role": "user", "content": "Summarise this ticket in one line."}],
)
print(response.choices[0].message.content)vLLM's advantage over a naive self-hosted server is continuous batching with PagedAttention: requests share the GPU efficiently instead of queuing behind one long generation, which is the difference between a server that handles ten concurrent users and one that handles a hundred on the same card. That is also why the comparison with SageMaker is closer than it looks — SageMaker can run the same vLLM container on its endpoint, so the choice between them is often about who owns the fleet, not which engine serves the tokens. What self-hosting adds over SageMaker is the hardware and the network: spot instances, reserved capacity, a cluster you already own, or an on-premises GPU that the data is not allowed to leave.
Cost: three different bills
The three options do not have three prices for the same thing. They have three different billing models, and the cheapest one depends entirely on your traffic shape.
| Bedrock | SageMaker endpoint | Self-hosted vLLM | |
|---|---|---|---|
| You pay for | Tokens in and out | Instance-hours, running or idle | GPU-hours + engineer time |
| Zero traffic costs | $0 | Full idle instance cost | Full idle GPU cost (unless you shut it down) |
| Bursty traffic | Ideal — cost tracks usage exactly | Wasteful — you pay for the warm floor | Wasteful — unless you autoscale to zero |
| Steady high traffic | Expensive — every token is billed | Cheapest managed — the instance is saturated | Cheapest overall — if you run it well |
| Cost control | Per-token budget, batch at 50% off, Flex tier | Autoscaling policy, smaller instances, scale-to-zero where possible | Spot, reservations, right-sizing, request batching |
| Hidden cost | Cross-region routing, prompt caching gaps | Idle time, data transfer, model storage | On-call, upgrades, capacity planning |
A concrete anchor, from the Bedrock pricing page as checked on 23 November 2026: DeepSeek v3.2 in US regions is listed at $0.62 per million input tokens and $1.85 per million output tokens on Standard on-demand. A million-token workload on that model is roughly two dollars; the same workload on a SageMaker endpoint is the price of the instance-hours it took, and on a self-hosted GPU it is the price of the GPU-hours plus the amortised time of whoever keeps the server alive. The honest way to compare is not a price table but a load test at your traffic: take a week of real request logs, price the tokens, price the instance-hours at your measured utilisation, and price the GPU-hours plus a rough hourly rate for the on-call burden. The answer usually flips at a clear utilisation threshold — below it, per-token wins; above it, per-instance wins — and the threshold is yours to measure, not mine to guess.
Two cost traps deserve naming. The first is the idle endpoint: a SageMaker endpoint or a self-hosted GPU that serves a few requests an hour is the most expensive way to run an LLM, and the fix is either Bedrock or an endpoint that scales to zero, which real-time endpoints do not do by default. The second is the token bill that nobody owns: on Bedrock, cost is proportional to prompt size, so a RAG pipeline that stuffs 8,000 tokens of context into every call will dominate the bill no matter which model you pick. The lever there is retrieval quality, not the inference service — a point our guide to serverless AI on AWS covers from the architecture side, and our AWS cost optimisation guide covers from the billing side.
Latency and throughput
Latency has three parts, and each option wins a different one. Time to first token is dominated by queueing and prompt processing; inter-token latency is dominated by the serving engine and GPU; cold start is dominated by model loading. Bedrock's cold start is effectively zero — the fleet is warm and shared — but your request can queue behind others, and cross-Region routing adds variance. A SageMaker endpoint is warm once deployed, so time to first token is stable, but scaling out takes minutes: a traffic spike that exceeds the autoscaling policy queues requests until new instances are healthy. A self-hosted vLLM server is the most predictable of the three once it is warm — you control the batching policy and the hardware — but a cold server loads tens of gigabytes of weights before it serves anything, and an autoscaler that adds a GPU node has the same minutes-long ramp as SageMaker.
Throughput is where self-hosting earns its reputation. Continuous batching means a single GPU serves many concurrent requests at near-full utilisation, and a team that tunes max-num-seqs and the KV cache can extract several times the throughput of a naive server on the same card. Bedrock's throughput is effectively unbounded from your side — you buy more tokens, not more GPUs — but it is throttled per model and region, and the throttle is a quota you have to request increases for. SageMaker sits between: you get the throughput of the instances you pay for, and nothing more, until the autoscaler reacts.
The decision rule is simple to state and worth measuring: if your latency budget is dominated by time to first token on sporadic traffic, Bedrock's warm fleet wins. If your latency budget is dominated by sustained throughput on predictable traffic, a saturated endpoint or a tuned vLLM server wins. If your traffic is spiky and your latency budget is tight, none of the three is good out of the box — you need provisioned capacity (Bedrock Provisioned Throughput or a SageMaker endpoint with a high minimum) and you pay for it. The same reasoning applies to the surrounding system: our guide to edge vs regional AI inference and latency budgets works through where the milliseconds actually go, and our Kubernetes guide to AI/ML workloads covers the autoscaling and GPU-scheduling side of running inference on your own cluster.
Model choice, fine-tuning, and lock-in
Model choice is the dimension that most often decides the answer before cost is even discussed. Bedrock gives you frontier models you cannot run yourself — Claude, OpenAI's models, Grok — and the newest ones arrive there first, because the providers ship to Bedrock as a distribution channel. What you do not get is the weights: no fine-tuning of a frontier model on Bedrock changes the base weights, and a model that is retired or repriced is a migration you did not choose. SageMaker and self-hosting give you the opposite: any open-weight model, any checkpoint, any fine-tune — Llama, Qwen, DeepSeek, Gemma — and the weights are yours to keep, move, or run anywhere. What you do not get is the frontier: the best open-weight model is still a step behind the best closed model on most benchmarks, and the gap is a product decision, not an infrastructure one.
Fine-tuning sharpens the split. On Bedrock, fine-tuning is available for selected models and produces a custom model you call through the same API — convenient, but the custom model lives inside Bedrock. On SageMaker, fine-tuning is the platform's home turf: train on your data, deploy the checkpoint to an endpoint, and the whole pipeline from data to serving is one service. Self-hosted, fine-tuning is a training job on your own cluster and the checkpoint is a file you deploy wherever you like. The honest question is not "can I fine-tune" but "does fine-tuning beat a better prompt and better retrieval" — for most teams, retrieval wins first, and fine-tuning earns its keep only when the task needs behaviour the base model cannot be prompted into.
Lock-in follows the same lines. Bedrock's lock-in is the API and the model list: the Converse API is AWS-shaped, and moving to another provider means re-validating prompts and outputs on a different model. SageMaker's lock-in is the deployment shape: endpoints, IAM roles, and autoscaling policies are AWS-shaped, but the model is a file and the container is yours, so the exit is a redeploy. Self-hosted has the least lock-in and the most responsibility: the model, the engine, and the API are all portable, and the bill for that portability is the team that keeps it running. A team that treats "no lock-in" as a goal without pricing the operations behind it is buying freedom with on-call hours.
The recommendation
| Option | Best for | Latency | Freshness of models | What it costs you |
|---|---|---|---|---|
| Bedrock | First LLM feature, bursty traffic, frontier models | Warm fleet, some queue variance | Newest closed models, first | Per-token bill at scale; no weights, no tuning of the serving stack |
| SageMaker endpoint | Steady traffic, your own fine-tuned or open-weight model | Stable once warm; scale-out takes minutes | Any open-weight model, any checkpoint | Idle instance-hours; you own sizing and scaling policy |
| Self-hosted vLLM | Data cannot leave your environment, or measured cost beats both managed options | Most predictable once warm; cold start is a weight load | Any open-weight model, anywhere | GPU-hours plus on-call, upgrades, and capacity planning |
The default architecture that follows from the table: start on Bedrock. Ship the feature against the Converse API, measure real token usage and latency for a month, and let the bill tell you whether the workload is bursty enough to stay. Move a workload to SageMaker when the traffic is steady, the model is yours, and the instance-hours at your measured utilisation are clearly below the token bill — and keep the endpoint's minimum instance count as small as the latency budget allows. Self-host when a measured requirement forces it: data that cannot leave your environment, a cost gap that survives an honest accounting of engineer time, or a throughput target that managed capacity cannot hit at your price. Every move off Bedrock should be justified by a number from your own logs, not by a preference for owning the stack.
Architecture Decision
>
Decision: Ship LLM inference on Amazon Bedrock (Converse API, on-demand) for all new features; move a workload to a SageMaker real-time endpoint only when a month of production logs shows steady traffic and an instance-hours cost clearly below the token bill; self-host with vLLM only on a measured cost, latency, or data-residency requirement.
>
Context: One product team is adding LLM features to an existing AWS product — summarisation, classification, and a support assistant. Traffic is unknown and bursty, the team is five engineers with no ML-ops experience, and the product handles customer data under contracts that require knowing where the data goes. The team is choosing between Bedrock, SageMaker, and self-hosting before the first feature ships.
>
Options considered: (a) Bedrock on-demand for everything. (b) SageMaker real-time endpoints for everything. (c) Self-hosted vLLM on EKS for everything. (d) Bedrock first, with a measured migration path to SageMaker or self-hosted per workload.
>
Why this one: Option (b) charges idle instance-hours for features whose traffic is unknown, and the team would be sizing GPUs before it has a single production request. Option (c) puts a five-person product team on GPU fleet duty — upgrades, capacity, and 2am pages — for a feature that has not proven its value yet. Option (a) is correct for launch but incomplete as a policy: at steady high volume the token bill eventually exceeds instance-hours, and a team with no migration path will keep paying it. Option (d) gets the launch cheap and keeps the escape hatch honest — the migration trigger is a number from the logs, not a feeling.
>
What it costs you: A per-token bill that scales with success, and a monthly review of token usage, latency, and cost per workload to decide whether any workload has crossed its migration threshold. Bedrock model access is per model and region, so adding a new model is a console step, and cross-Region inference means latency can vary request to request. The Converse API is AWS-shaped, so a future move to another provider re-validates prompts and outputs.
>
When to reverse it: When a workload's monthly token bill exceeds the instance-hours cost of a saturated SageMaker endpoint at the same traffic — move that workload, and keep the rest on Bedrock. When a contract or regulation requires data to stay inside your own environment — self-host that workload, and only that workload. When the team hires or grows ML-ops capacity and the measured cost gap justifies the operational load — then self-hosting stops being a tax and starts being a saving. The reversal trigger is measured — token spend, utilisation, and latency from production logs — not fashion.
When not to use each option
Do not use Bedrock when the model itself is the product — when you need to fine-tune weights your users depend on, ship a model inside an air-gapped environment, or guarantee that a specific checkpoint never changes under you. A managed API can retire a model, reprice it, or change its behaviour, and your only recourse is a migration you did not schedule. Do not use Bedrock for predictable, high-volume, low-margin traffic either: at saturation, per-token pricing is the most expensive way to serve tokens, and the bill arrives monthly whether or not anyone reviewed it.
Do not use a SageMaker endpoint for bursty or experimental traffic. An endpoint that serves three requests an hour costs nearly the same as one that serves three thousand, and the idle hours are the tax on a feature nobody has validated yet. Do not use SageMaker for a model you could call as an API either — if Bedrock already hosts the model you need, the endpoint is paying for control you are not using.
Do not self-host because managed services feel expensive in the abstract. The GPU bill is the visible half; the invisible half is the engineer who patches vLLM, plans capacity before a launch, and gets paged when a node dies during a traffic spike. Do not self-host a single model on a single GPU with no failover and call it production — a managed endpoint's replacement of failed instances is a feature, and rebuilding it yourself is a project. And do not self-host to avoid lock-in while ignoring the lock-in you are building: a bespoke serving stack with custom batching, custom metrics, and custom deployment scripts is harder to leave than a Converse API call.
What to do next
Ship the first feature on Bedrock this week: enable model access for one model, make the first Converse call from your service, and log tokens and latency per request from day one. At the end of the first month, price the workload three ways from your own logs — tokens, instance-hours at your measured utilisation, and GPU-hours plus a rough rate for the operations time — and move only the workloads where the arithmetic is unambiguous. Keep the decision in the open: write down the migration threshold for each workload, review it monthly, and let the logs, not the tooling fashion, decide when a workload graduates from the API to an endpoint or to your own fleet.
Why This Matters
Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.
Trade-offs to Consider
Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.
When NOT to Use This
Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.
Decision Framework
Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.