
The Cheapest GPU Is Not the Cheapest Answer: Sizing a Model with Amazon SageMaker AI
An instance that costs three times more per hour can cost less per answer, and a cheaper one can cost more. How Amazon SageMaker AI's inference recommendations help compare GPUs, how to turn hourly prices into cost per million tokens, and what to check before running a job.
The question a GPU price list can't answer
An earlier article, The Price of Off: Costing a Stopped AWS Workload , looked at what keeps billing after everything seems to be switched off. The same logic applies before anything is switched on. A model that has not answered a single request yet already carries a cost decision, and that decision is the choice of GPU.
The first question anyone hosting a model on AWS meets sounds simple: which instance should it run on? A price list answers a different question: what does one hour on each instance cost? The gap between those two questions is where money disappears, because an Amazon SageMaker AI real-time endpoint "incurs cost as long as it remains in service" [6], whether it answers ten requests or ten thousand.
The money at stake is growing. Gartner forecasts that in 2026 global spending on inference ($23.3 billion) will surpass spending on training ($19 billion), and that 55% of AI-optimized IaaS spending will support inference in 2026, rising to 59% in 2027 [1]. That is a forecast for one spending category, not for all AI spending, but the direction is clear: running models is becoming the larger bill.
The usual way to find the right GPU is to test it by hand. AWS's own documentation describes this as manually testing "combinations of GPU instance types, serving containers, parallelism strategies, and optimization techniques", and calls the result a "weeks-long manual process" [2]. In April 2026 AWS launched a managed alternative, generative AI inference recommendations in Amazon SageMaker AI [3], followed by a visual version in SageMaker AI Studio [4]. This article is based on AWS documentation and AWS blog posts, not on hands-on testing, and it explains what the feature does, what it leaves out, and how to read its results.
Why the hourly price is the wrong unit
Unit economics means dividing what something costs by what it produces. A truck that costs three times more per day to rent can be the cheaper way to move a warehouse of boxes, if it carries ten times as many. The rental price matters, but the cost per box is what decides.
For a language model, the rental is the instance-hour and the box is the token. The conversion is simple arithmetic, and AWS's own G7 benchmark post spells it out:
Cost per 1 million output tokens = ($/hour × 1,000,000) ÷ (output tokens/second × 3,600) [6]
AWS adds that "Cost is therefore a derived price-performance metric" [6]. That wording matters. The API defines the
cost performance target as "Cost per hour of the deployment configuration" [7], and Studio describes its Minimize cost goal as finding "the cheapest infrastructure cost for low-volume workloads" [5]. The documentation reviewed does not publish a per-token cost figure for the cost column. Cost per million tokens is something the reader calculates.The table below is a worked example with invented numbers, not measured data and not real AWS prices. Instance A costs $2 per hour and serves 200 tokens per second. Instance B costs three times more, $6 per hour, and serves 1,000 tokens per second.
Situation | Instance A ($2/h, 200 tok/s) | Instance B ($6/h, 1,000 tok/s) |
|---|---|---|
Both fully busy | $2.78 per 1M tokens | $1.67 per 1M tokens |
Low traffic: 40 tokens/s on average | $13.89 per 1M tokens | $41.67 per 1M tokens |
High traffic: 1,000 tokens/s on average | $2.78 per 1M tokens (needs 5 instances, $10/h) | $1.67 per 1M tokens (1 instance) |
The same pair of instances produces opposite winners. B is three times more expensive per hour, yet 40% cheaper per token when it is busy. At low traffic, B sits mostly idle while the meter runs, and A wins by a factor of three. The simplification is deliberate: it ignores redundancy, scaling delays and partly used instances.

The sizing ladder
A useful way to think about this is a ladder with four rungs. Each answers a different question and needs one more piece of data than the rung below. The ladder is a framing for this article, not an AWS concept.
- Hourly price. What does an hour on this instance cost? Needs: instance type and Region. This is the number on the price list.
- Throughput. How many tokens per second does this model deliver on this instance? Needs: a benchmark of the model under a realistic workload.
- Cost per million output tokens. What does the work cost when the instance is fully used? Needs: rungs 1 and 2, plus the formula above.
- Cost per token actually served. What does the work cost at the traffic that really arrives? Needs: rung 3 plus real usage data, because idle hours are billed too.
Price lists stop at rung 1. Inference recommendations produce rung 2 by measuring the model, and AWS says it benchmarks "each configuration on real GPU infrastructure" using NVIDIA AIPerf [3]. Rung 3 is arithmetic. Rung 4 depends on traffic that only the reader knows.
What AWS measured: a real example
AWS's G7 benchmark post (September 2026) used inference recommendations on the Nemotron-3-Nano-30B model with two workload shapes, a chat workload (512 input tokens, 256 output tokens) and a retrieval-style workload (3,500 input, 200 output) [6]. Only the top result per metric is published:
Workload | Lowest cost per 1M output tokens | Highest throughput |
|---|---|---|
Chat (512 in / 256 out) | ml.g7.2xlarge, $0.90 | ml.g7.48xlarge, 2,397 tokens/s |
RAG (3,500 in / 200 out) | ml.g7.2xlarge, $2.29 | ml.g7.48xlarge, 816 tokens/s |
The pattern repeats the worked example: the instance with the lowest cost per token was not the one with the highest throughput. AWS also reports that G7 gave "approximately 1.4× lower cost per token than G6e" for both workloads, and approximately 4.9× lower than G6 for chat and 5.6× lower for the retrieval workload [6].
Three cautions apply before generalising. First, AWS notes that "Only G7 instances have native FP4 Tensor Core support", and the model used NVFP4 weights, which run on G5 and G6 without hardware acceleration [6]. The comparison favours G7 structurally. Second, it is one model on one benchmark. Third, G7 availability is limited. The benchmark post names US East (Ohio) and US West (Oregon) only [6], while AWS’s July announcement also lists US East (N. Virginia) [13], so availability in any other Region needs checking in the console.
How the feature works
The workflow, as documented [2][4][7]:
- Model. Model files in Amazon S3 or the SageMaker Model Registry, in Hugging Face checkpoint format with SafeTensor weights. Studio also accepts models from JumpStart [4].
- Workload. Four presets in Studio: Interact (chat-style, short inputs and moderate outputs), Generate (longer outputs), Summarize (high input-to-output ratio) and Custom (a dataset, concurrency and token lengths of your own) [4].
- Goal. One of three: minimize cost, minimize latency or maximize throughput. Up to three instance types can be compared [2][7].
- Results. Time to first token, inter-token latency, request latency at P50, P90 and P99, throughput and cost for each configuration, each one deployment-ready [2].
- Deploy. One action in Studio, or through the API [2].
- Regions. Seven: US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Tokyo), Europe (Frankfurt) and Europe (Ireland) [2].
A real-world use case
The scenario is hypothetical. A small team has fine-tuned a compact open model to summarise internal documents and saved it as SafeTensors in Amazon S3, in a supported Region. The plan so far is the one most newcomers start with: pick a large GPU "to be safe".
Before deploying anything, the team runs a recommendation job. In Studio it picks the Summarize preset, because summarisation reads a lot and writes a little [4], chooses a goal, and names up to three candidate instances. Presets can return results quickly, while custom benchmarks "typically take one to three hours" [5]. During the job SageMaker creates endpoints and runs benchmark jobs, which are billed as normal compute, and AWS says it deletes the endpoints when the job ends [5]. The G7 post still ends with an instruction to delete the resources created, so the Endpoints page deserves a look after every job [6].
The results come back as measured throughput and cost for each candidate. The team then applies the ladder: convert each hourly cost to cost per million tokens (rung 3), and compare the result with the traffic it actually expects (rung 4). If the assistant is used a few hours a day by a handful of people, the table above shows why the small instance may win even if the big one is faster.
The decision: three choices before the first job
The goal depends on volume. Studio describes Minimize cost as the cheapest option "for low-volume workloads" and Maximize throughput as serving the most tokens per second "for high-volume workloads" [5]. Choosing the goal is really a statement about expected traffic.
The unit has to be converted. The tool ranks configurations on measured performance and cost per hour. Turning that into cost per million tokens, and then into cost at real traffic, is the reader's job.
The benchmark itself has to be budgeted. "Generating recommendations incurs no additional cost", but "standard compute costs apply for the optimization jobs and the endpoints that SageMaker AI provisions during benchmarking" [5]. Two practical checks come before the first job. GPU endpoint quotas are enforced per instance type, and a request over the account's quota fails with a
ResourceLimitExceeded error such as "The account-level service limit 'ml.m5.xlarge for endpoint usage' is 0 Instances"; AWS documents how to request an increase through Service Quotas [11]. The sources reviewed do not say what GPU quotas a new account starts with, so checking Service Quotas first is the safe move. Credits are the second check: AWS says the $100 in Free Tier credits for new customers "work across SageMaker AI, including endpoint deployments" [12], but none of the pages reviewed says whether GPU instance types or recommendation jobs are allowed on the Free plan.The solution: a short routine
- Measure before deploying. Run a recommendation job for the real model and a realistic workload, with at most three candidate instances.
- Convert to rung 3 and rung 4. Use the formula, then divide by the share of time the instance would really be busy.
- Deploy the chosen configuration, and plan for idle time. A real-time endpoint bills while it is in service [6]. Documented options are limited. An endpoint can scale to zero instances only if it hosts inference components, and while at zero it "can't respond to any incoming inference requests until it provisions at least one instance", a process that "takes several minutes" and produces errors on requests in the meantime [8]. Asynchronous endpoints can scale to zero and queue requests until capacity returns [9]. Serverless Inference does not support GPUs [10]. Deleting an endpoint that is not needed is the simplest option.
- Re-run on a schedule. AWS suggests re-running jobs "after fine-tuning or updating your model", "when new instance types become available in your AWS Region" and "at a regular cadence, for example every few weeks" [4]. The documentation also lists regression testing after container or framework updates as a use case [2].
The question for you
If two instances were available, one cheaper per hour and one cheaper per answer, would the traffic data exist to choose between them, or would the choice be a guess? And before the first request, which of the four rungs would the cost estimate reach?
Instances are rented by the hour. Answers are consumed by the million tokens.
Sources
- Gartner – Gartner Forecasts Worldwide AI-Optimized IaaS Spending to Grow 96% Through 2026 (August 10, 2026): https://www.gartner.com/en/newsroom/press-releases/2026-08-10-gartner-forecasts-worldwide-artificial-intelligence-optimized-iaas-spending-to-grow-96-percent-in-2026
- AWS Documentation – Optimized generative AI inference recommendations (Amazon SageMaker AI): https://docs.aws.amazon.com/sagemaker/latest/dg/generative-ai-inference-recommendations.html
- AWS What's New – Amazon SageMaker AI launches optimized generative AI inference recommendations (April 2026): https://aws.amazon.com/about-aws/whats-new/2026/04/sagemaker-ai-inference-rec/
- AWS Machine Learning Blog – Launching UI for generative AI inference recommendations in Amazon SageMaker AI (July 13, 2026): https://aws.amazon.com/blogs/machine-learning/launching-ui-for-generative-ai-inference-recommendations-in-amazon-sagemaker-ai/
- AWS Documentation – Generative AI inference recommendations in SageMaker AI Studio: https://docs.aws.amazon.com/sagemaker/latest/dg/generative-ai-inference-recommendations-studio.html
- AWS Machine Learning Blog – Benchmarking small LLM inference on SageMaker AI: G7 vs G5 and G6 (September 8, 2026): https://aws.amazon.com/blogs/machine-learning/benchmarking-small-llm-inference-on-sagemaker-ai-g7-vs-g5-and-g6/
- AWS Documentation – Get started with generative AI inference recommendations (job parameters and performance targets): https://docs.aws.amazon.com/sagemaker/latest/dg/generative-ai-inference-recommendations-get-started.html
- AWS Documentation – Scale an endpoint to zero instances: https://docs.aws.amazon.com/sagemaker/latest/dg/endpoint-auto-scaling-zero-instances.html
- AWS Documentation – Autoscale an asynchronous endpoint: https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference-autoscale.html
- AWS Documentation – Deploy models with Amazon SageMaker Serverless Inference: https://docs.aws.amazon.com/sagemaker/latest/dg/serverless-endpoints.html
- AWS re:Post Knowledge Center – SageMaker ResourceLimitExceeded error: https://repost.aws/knowledge-center/sagemaker-resource-limit-exceeded-error
- AWS Machine Learning Blog – Developers can now access SageMaker Studio through the new AWS experience (October 19, 2026): https://aws.amazon.com/blogs/machine-learning/developers-can-now-access-sagemaker-studio-through-the-new-aws-experience/
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article