The dedicated GPU vs API cost crossover is not a simple comparison of an hourly GPU rate with an API price. It depends on the model that meets your quality bar, the tokens you actually process, the GPU's sustained throughput and the share of its paid capacity you use. Use the model below to calculate a first-pass break-even point, then adjust it for reliability and operating costs before making a commitment.
If you are still deciding which work should use AI at all, start with our AI strategy and solutioning service. This article assumes you already have a recurring workload and are choosing how to serve it.
Dedicated GPU vs API cost: what are you comparing?
A proprietary API charges for processed tokens, usually with separate input and output prices. Self-hosting an open-weight model means paying for the compute, storage, networking and people needed to run it. A dedicated GPU bill is mostly fixed while it is running. An API bill generally rises with usage.
That difference creates a crossover. Below it, paying per token tends to be cheaper because you avoid idle hardware. Above it, a well-utilised GPU may cost less per equivalent unit of work. But the word equivalent matters: an open-weight model is not a cheaper substitute if it fails the task, needs repeated attempts, or requires a larger model and more infrastructure to reach acceptable results.
The calculations here use the December 2026 prices and benchmark assumptions supplied for this comparison. Treat them as planning inputs, not guaranteed quotes. GPU availability, cloud region, contract, instance configuration, API pricing and throughput can all change the result. The RunPod cloud GPU pricing guide and DigitalOcean's token economics analysis are useful reference points for how hardware price and utilisation shape the calculation. Confirm current prices and test your own workload before you buy capacity.
What goes into the break-even calculation?
The base equation is simple:
Break-even monthly tokens = monthly self-hosting cost ÷ API price per token
It is easiest to calculate with prices per million tokens:
Break-even tokens in millions = monthly self-hosting cost ÷ API price per million tokens
For example, if your self-hosted deployment costs $5,746 a month and the API costs $6 per million blended tokens, the arithmetic is:
$5,746 ÷ $6 = 958 million tokens per month
That is a hardware-only estimate. It says that at 958 million tokens the API bill and the GPU bill are about equal, if all tokens are comparable and the GPU can handle the required traffic. It does not say the GPU can serve that volume at the required latency, nor that a self-hosted model produces equivalent results.
Calculate a blended API price
Most APIs charge different rates for input and output tokens. Input tokens are the prompt, system instructions and supplied context. Output tokens are the model's response. If a workload uses three input tokens for every output token, its mix is 75% input and 25% output.
Use this formula:
Blended price per million = (input share × input price) + (output share × output price)
With the supplied December 2026 Claude Sonnet rates of $3 per million input tokens and $15 per million output tokens, a 3:1 mix costs:
(0.75 × $3) + (0.25 × $15) = $6 per million tokens
The supplied GPT-4o rates of $2.50 input and $10 output produce a blended price of $4.375 per million at the same mix. The supplied GPT-4o-mini rates of $0.15 input and $0.60 output produce $0.2625 per million. These examples are not interchangeable quality benchmarks. They show how much the API price changes with model and token mix.
Use your actual usage data if you have it. An agent that repeatedly sends long histories may have a very different input-to-output ratio from a short classification task. Also check whether the provider bills cached input tokens at a different rate. A workload with frequent repeated context may cost less than a blended rate based on uncached input.
Separate hardware cost from total cost of ownership
The base model should use the full monthly cost of the self-hosted service, not just a GPU price. Start with:
- GPU rental, including every GPU required to fit the model and serve the load.
- Storage for model weights, logs and any persistent cache.
- Networking and data transfer where charged.
- Redundancy or a warm standby if the service must stay available during a host failure.
- Engineering time for deployment, monitoring, patching, upgrades and incident response.
- Any orchestration, security or support services you need.
The equation then becomes:
Break-even monthly tokens = total monthly self-hosting cost ÷ API price per million × 1,000,000
For a more useful comparison, include the cost of model retries, failed outputs, human review and any change in task completion rate. If one model needs two attempts to do the same work, its effective cost is not captured by a simple price per generated token.
Why GPU utilisation changes the answer
A rented GPU usually costs money while it is available, whether it is generating tokens or waiting for a request. The cost of idle time is sometimes called the idle tax. It is not an extra invoice line. It is the effect of spreading a fixed monthly bill over fewer useful tokens.
A practical effective-cost formula is:
GPU cost per million tokens = hourly GPU cost ÷ (sustained tokens per second × 3,600 × utilisation) × 1,000,000
Here, utilisation means the share of the measured serving capacity used over the time you are paying for it. It is not simply GPU memory use or a peak reading from a monitoring dashboard. Use sustained throughput for your actual request lengths, batch behaviour and concurrency.
The supplied DigitalOcean benchmark notes give one example for an H200 running Llama 3.3 70B FP8 at 2,036 tokens per second. At 73% utilisation, the reported effective cost is $0.643 per million tokens; at 40%, it is $1.173; at 25%, it is $1.877. Those are benchmark-specific values, not a universal H100 or H200 price. The important pattern is that lower utilisation pushes the effective unit cost up. See DigitalOcean's token economics analysis for its traffic-profile context.
Human-facing traffic often arrives in bursts. A service can look busy during the working day and still leave substantial paid capacity unused overnight or between requests. Queueable work, such as document extraction or offline classification, can fill those gaps. But only count that work if it can genuinely be delayed, uses the same model and does not create new support or data handling costs.
Capacity is a second constraint
Break-even arithmetic alone does not tell you whether one GPU node can process the required tokens. A node has a practical throughput ceiling. The supplied assumptions estimate roughly 1,500 to 2,050 tokens per second for a 2× H100 setup serving a 70B model at FP8 under continuous batching. At 1,800 tokens per second, 100% theoretical use for 720 hours would be about 4.67 billion tokens per month.
That is a ceiling, not a service-level promise. Production systems need room for traffic spikes, longer contexts, output generation, failures and latency targets. A workload with a 4.67 billion token monthly forecast cannot safely assume that one such node will serve it without queues or degradation. Sustained utilisation and reliable capacity are different things: utilisation raises the economics, while spare capacity protects the service.
The same notes estimate 1,200 to 1,600 tokens per second for a 1× L40S serving Llama 3.1 8B FP16. Monthly output at full theoretical saturation is around 3.5 billion tokens under those assumptions. Test these figures against the exact inference engine, quantisation, prompt lengths, output lengths, concurrency and latency objectives you plan to use.
Comparison table: what matters, and why?
| Criterion | Dedicated GPU with open-weight model | Proprietary or hosted API | Why it changes the decision |
|---|---|---|---|
| Cost shape | Mostly fixed while the instance runs | Usually variable with tokens processed | Fixed cost rewards steady, high volume. Variable cost protects you when demand is low or uncertain. |
| Utilisation | You pay through idle periods unless you can stop or scale down the service | No dedicated idle GPU bill for your application | A low average load can erase an attractive GPU hourly rate. |
| Throughput | Depends on model size, hardware, quantisation and serving stack | Provider operates the serving capacity | Measure sustained throughput on your request mix, not just a peak benchmark. |
| Model choice | You choose from models you can host and operate | Provider manages the model endpoint | A smaller hosted model may be cheaper than a large self-hosted model, or vice versa. Quality must be tested. |
| Scaling | Requires capacity planning and often additional nodes | Provider generally handles infrastructure scaling | A sudden peak can require GPU headroom or create a queue. API limits and quotas also need checking. |
| Operations | Your team owns deployment, upgrades, monitoring and recovery | Provider owns much of the model-serving stack | Infrastructure savings can be offset by engineering time and on-call responsibility. |
| Data control | Can keep inference within your chosen environment, subject to the whole architecture | Data is sent to an external service under its terms and configuration | Data residency, privacy, security and contractual requirements can outweigh price. |
| Availability | You design redundancy and failover | Provider runs the service, but you still depend on its availability and contract | A single GPU host is not the same as a resilient production service. |
| Time to start | Requires model and infrastructure setup | Often faster to integrate and test | API use can be the sensible first step while demand and quality are still being established. |
| Price certainty | Stable hourly rate, but uncertain cost per useful token | Cost follows usage, but rates and token volumes can change | Forecast both monthly spend and cost per completed task. |
Three worked break-even scenarios
These examples use the supplied rates and estimates, all stated as December 2026 planning inputs. They compare token costs, not equivalent model quality. The point is to show how the outcome changes when you switch the API target or include operating costs.
1. A 70B open-weight model against a frontier API
Assume a 2× H100 SXM deployment on RunPod Secure Cloud at $3.99 per GPU-hour. The two GPUs cost $7.98 an hour. At 720 hours per month, the hardware bill is:
$3.99 × 2 × 720 = $5,745.60 per month
Against the supplied Claude Sonnet blended rate of $6 per million tokens, the hardware-only break-even is:
$5,745.60 ÷ $6 × 1,000,000 = 957.6 million tokens per month
At 30 days in a planning month, that is about 31.9 million tokens a day. Under the arithmetic, serving more than this volume on the GPU costs less than serving the same token mix through that API. But that conclusion only holds if the open-weight model is good enough for the task, you can sustain the required throughput and you do not omit material operating costs.
The supplied scenario adds $3,500 a month for amortised engineering and orchestration overhead, bringing its estimated total to $9,245.60. On that basis, break-even moves to about 1.54 billion tokens per month. This is a useful reminder that labour can move the threshold substantially. The $3,500 is an assumption from the scenario, not a standard cost for every team. Use your actual staffing and support model.
At 1,800 tokens per second, 957.6 million tokens represents about 20.5% of the theoretical monthly output of 4.67 billion tokens. The 1.54 billion total-cost threshold represents roughly 33%. These are approximate comparisons, because the benchmark throughput and the traffic volume may not have the same token mix or latency profile. The deployment also needs spare headroom, so do not treat theoretical capacity as fully saleable capacity.
2. Self-hosted Llama against a hosted open-weight API
Now compare the same broad class of open-weight model with a serverless Llama API at an assumed blended rate of $0.80 per million tokens. A 2× H100 deployment on Lambda at the supplied low rate of $3.29 per GPU-hour costs:
$3.29 × 2 × 720 = $4,737.60 per month
The raw break-even calculation is:
$4,737.60 ÷ $0.80 × 1,000,000 = 5.92 billion tokens per month
But the supplied throughput assumption for one 2× H100 node is around 4.67 billion theoretical tokens per month at full saturation. So the node cannot reach the calculated break-even volume under those assumptions, even before adding labour, redundancy or storage. At the theoretical throughput ceiling, its hardware-only cost is about $1.02 per million tokens, already above the $0.80 hosted API assumption.
This is why cheap hosted open-weight inference can be difficult for one organisation to beat with a dedicated node. A provider can pool demand from many customers and keep its fleet busy. An individual team often cannot match that utilisation. The Calcaas comparison of dedicated GPUs and LLM APIs discusses the same broad trade-off. Confirm the hosted provider's current rate, included limits and model version before using it in a business case.
Self-hosting might still win with cheaper hardware, a more efficient serving configuration, a different model or much higher utilisation across multiple workloads. But each change needs its own calculation. Increasing volume beyond one node's capacity means adding more GPUs, which adds cost and may not improve cost per million tokens.
3. An 8B model against GPT-4o-mini
A smaller model may fit on one L40S. Using the supplied RunPod price of $1.09 per hour, a 720-hour month costs:
$1.09 × 720 = $784.80 per month
At the supplied GPT-4o-mini blended rate of $0.2625 per million tokens, the hardware-only threshold is:
$784.80 ÷ $0.2625 × 1,000,000 = 2.99 billion tokens per month
The supplied L40S throughput estimate implies a theoretical monthly capacity of about 3.5 billion tokens. So this example only breaks even close to full use. At 2.99 billion tokens, the GPU needs to deliver about 85% of that theoretical monthly output. There is little room for quiet periods, maintenance, traffic peaks or spare capacity.
This is a narrow economic case, not a general recommendation. It depends on an 8B open-weight model matching the task quality of the selected hosted model. If the model needs more prompting, output tokens, retries or review, the apparent saving can disappear. If the API workload can be routed to an even cheaper suitable model, the self-hosted threshold rises further.
| Scenario | Self-hosting assumption | API comparison | Hardware-only break-even | Practical reading |
|---|---|---|---|---|
| 70B model replacing Claude Sonnet | 2× H100 at $5,745.60/month | $6 per million blended | 958 million tokens/month | Plausible if quality matches and workload is steady. Estimated total cost with $3,500 monthly operations rises to about 1.54 billion. |
| Self-hosted 70B versus hosted Llama | 2× H100 at $4,737.60/month | $0.80 per million | 5.92 billion tokens/month | Above the one-node theoretical capacity of about 4.67 billion tokens. This setup does not break even on hardware alone under the assumptions. |
| 8B model versus GPT-4o-mini | 1× L40S at $784.80/month | $0.2625 per million | 2.99 billion tokens/month | Needs about 85% of the stated 3.5 billion theoretical monthly capacity, before non-hardware costs. |
How to build your own break-even calculator
A spreadsheet is enough for a first pass. Make every assumption visible so finance, engineering and product can challenge it. Do not put one blended number in a business case without showing how you got there.
Inputs to collect
- Monthly workload: Count actual input and output tokens separately. If you have no production data, sample representative requests and estimate from a small pilot.
- API rates: Enter the current model's input and output prices, plus cached-input prices if applicable. Record the date and the provider's pricing page or quote.
- Model performance: Test a candidate open-weight model against a representative evaluation set. Track task success, error types, refusals, latency and human review, not just a subjective quality score.
- GPU configuration: Record the instance type, number of GPUs, hourly rate, region and the model's memory requirements. Include the actual configuration needed for the context length and concurrency you expect.
- Sustained throughput: Benchmark tokens per second using your prompt lengths, output lengths, batching and concurrent requests. Repeat under realistic traffic rather than relying on a vendor's best-case figure.
- Utilisation: Estimate average productive use over paid hours. Model quiet periods and peaks separately. Do not assume a busy test window represents a full month.
- Operating cost: Add storage, data transfer, observability, deployment tooling, engineering effort, security review and support.
- Availability: Set a requirement for recovery and uptime, then price the standby capacity, failover design or managed service needed to meet it.
Spreadsheet structure
Use a monthly view with one row for each candidate architecture. These formulas provide a starting point:
- GPU monthly cost = hourly GPU rate × number of GPUs × paid hours per month.
- API monthly cost = input tokens in millions × input price + output tokens in millions × output price.
- Blended API price = total API cost ÷ total tokens in millions.
- Self-hosted monthly cost = GPU cost + storage + network + platform services + labour + redundancy.
- Self-hosted cost per million = self-hosted monthly cost ÷ useful tokens served in millions.
- Break-even tokens = self-hosted monthly cost ÷ API price per million × 1,000,000.
- Capacity ceiling = measured sustained tokens per second × 3,600 × paid hours × realistic utilisation.
For the capacity ceiling, use the lower of your measured throughput and the figure your latency objective allows. If the break-even token volume is higher than capacity, the setup cannot reach break-even as modelled. If it is just below the ceiling, it may not be a viable production design because there is no margin for a burst, a host problem or a maintenance window.
Build at least three cases:
- Low case: lower demand, low utilisation and conservative throughput.
- Expected case: forecast demand and measured normal performance.
- High case: higher demand and utilisation, while still keeping enough capacity to meet your response-time target.
Then vary one assumption at a time. A sensitivity table can show the break-even price or monthly volume at 25%, 40%, 60% and 80% utilisation. Use the percentages as scenarios, not as claims about what every team achieves. The Pristren guide to local LLM versus API costs and Rajat Pandit's LLM ROI calculator offer additional ways to frame the build-versus-buy arithmetic. Check their assumptions against your workload rather than copying their output.
The costs that move the crossover
Redundancy and availability
A single GPU instance is a single point of failure. If the service must continue through a host or software failure, you may need a second active instance or a warm standby. The supplied example says active-active or warm standby can double the GPU spend, taking a $5,745 monthly bill to about $11,490 before other costs.
That does not mean every service needs two identical nodes. You might accept a recovery window, queue requests during an outage, or use an API fallback for selected traffic. The right design depends on business impact. Write down the recovery time and data loss you can tolerate, then cost the architecture that meets those requirements.
Engineering and support
Running vLLM, TensorRT-LLM or another inference stack involves more than launching a container. Someone has to manage model and runtime updates, hardware drivers, performance regressions, access controls, monitoring, capacity, incident response and rollback. Quantisation is a method of reducing the numerical precision used to store or run a model, often to fit it on less hardware. It can change model behaviour, so it needs evaluation as well as performance testing.
The supplied estimate of 15 to 20 hours of senior platform engineering per month, valued at $3,000 to $5,000, is an example assumption. Your cost may be lower if the platform team and operational tooling already exist, or higher if the service needs new skills and a formal on-call roster. Count the work even if it comes from an existing team. Its time has an opportunity cost.
Prompt caching and repeated context
Prompt caching can change the API side of the calculation. If the same system instructions or reference material are sent repeatedly, a provider may discount cached input tokens. The supplied notes cite an Anthropic cached-input price of $0.30 per million for the specified Sonnet example, compared with $3 per million for uncached input. Those rates are model and date specific. Verify the current terms before relying on them.
Do not apply a caching discount to every input token. Estimate the fraction of eligible input that is actually reused and the provider's cache rules, including any minimum duration or token requirements. Then recalculate the blended API price. A lower API price means more tokens are required before a fixed GPU bill breaks even.
Data transfer, storage and security work
Model weights, logs and cached data need storage. Data transfer may add costs when inputs or outputs move between services or regions. The supplied notes give indicative storage and egress ranges, but they are not a universal cloud price list. Use the rate for your chosen provider, region and network path.
Also include the work needed to protect prompts, outputs and model endpoints. Self-hosting does not automatically make a system secure or compliant. You still need access control, logging decisions, retention rules, vulnerability management and a plan for model updates. For Australian financial services, assess the actual service and outsourcing arrangement against the relevant obligations rather than assuming that a GPU in a particular location resolves them. Our AI guidance for financial services and AI governance playbook for Australian boards provide context for those decisions.
Pros and cons by option
Dedicated GPU and self-hosted open-weight model
Pros
- A potentially lower cost per token when demand is high, steady and efficiently batched.
- More control over model selection, inference configuration and deployment environment.
- The ability to keep inference inside an environment you operate, subject to the full data flow and controls.
- The option to serve several workloads on shared capacity if they can use the same model and tolerate the same service characteristics.
- Less direct exposure to a provider's per-token pricing changes, although hardware and engineering costs can still change.
Cons
- A fixed bill continues through idle periods unless you can safely stop or scale down the hardware.
- You own deployment, upgrades, capacity planning, monitoring and incident response.
- Redundancy and peak capacity can add GPUs before the average workload justifies them.
- A model that is weaker for a task may create extra retries, reviews or errors that erase the apparent token saving.
- The team needs to measure and maintain inference performance across model and runtime changes.
Proprietary or hosted inference API
Pros
- Low initial infrastructure effort and a faster route to testing a use case.
- Usage-based billing can suit irregular or low-volume workloads.
- The provider operates the serving infrastructure and may offer a broad choice of managed models.
- A hosted open-weight API can provide access to open models without your team operating GPUs.
- API features such as prompt caching can lower costs for some repeated-context workloads.
Cons
- Cost usually grows with token volume, and output tokens can be much more expensive than input tokens.
- You depend on provider pricing, quotas, endpoint availability and the provider's service terms.
- You need to assess where data is processed, how it is retained and what controls are available.
- A provider's per-token rate may make sustained high-volume use expensive, even if it is simple to operate.
- Moving between models or providers still requires testing and integration work.
Verdict by situation
Choose an API when demand is uncertain or intermittent
If you are still validating demand, use an API to measure real usage and task quality. You avoid paying for a GPU that sits idle while the product finds its shape. APIs are also a sensible fit for irregular peaks, low-volume internal tools and workloads that need capabilities your self-hosted candidate cannot match.
This is not a commitment to stay on an API forever. Keep token counts, model outcomes and latency in your telemetry. Once the workload is stable, you can rerun the calculation with production data.
Consider a dedicated GPU when volume is steady and model fit is proven
A dedicated deployment deserves serious analysis when you have stable high volume, the candidate model meets the task bar and measured utilisation supports the economics. The frontier API example above crosses on hardware at about 958 million monthly tokens, but the total-cost case moves to around 1.54 billion with the stated operating allowance. Capacity and redundancy can move it again.
Treat that threshold as a prompt to benchmark, not as an automatic switch point. The right question is not only, "Are we above break-even?" It is also, "Can we serve this traffic with enough headroom, at the required quality and service level, for the full cost shown?"
Prefer a hosted open-weight API when you want the model without the GPU operations
A managed endpoint can be a middle path. It may give you access to an open-weight model while the provider pools infrastructure and runs the serving layer. The supplied $0.80 per million example is cheaper than many frontier-model rates, and the single-node calculation shows why matching a low hosted price with a dedicated GPU can be difficult.
Compare like with like: model version, input and output rates, throughput limits, data terms, service levels and support. A low list price is not a complete production quote.
Use a hybrid when different work has different economics
Many systems do not need one model-serving choice for every request. A high-quality model may handle difficult reasoning or exceptions, while a smaller model handles classification or extraction. An API can cover peaks or act as a fallback while a GPU serves predictable baseline demand. Batchable work can use spare capacity if it does not compete with interactive requests.
The routing logic must be evaluated. A cheaper model that incorrectly handles a request may trigger an expensive retry or human escalation. Define which tasks are eligible for each route, test them against a fixed evaluation set and monitor results after release. Our AI agents and automation service works on these production design questions, including evaluation, guardrails and observability.
A practical decision checklist
Before approving a GPU purchase or long-running rental, confirm that you can answer these questions:
- Do we have at least a representative month of input and output token data, or a clearly labelled pilot estimate?
- Have we calculated the actual blended API price for the model and token mix we use?
- Does the self-hosted candidate meet our quality bar on the tasks that matter?
- Have we benchmarked sustained throughput at realistic prompt lengths, output lengths and concurrency?
- Is the monthly break-even volume below the capacity we can serve while preserving headroom?
- Does the calculation include a realistic utilisation estimate, not just peak capacity?
- Have we included redundancy, engineering time, storage, networking and security work?
- Have we checked prompt caching and other API discounts that could lower the comparison price?
- Do our data handling and availability requirements support the proposed deployment?
- Have we set a review date and measurable conditions for keeping, expanding or stopping the deployment?
If several answers are unknown, the next step is usually a measured pilot, not a production cluster. Record the workload, test the model and serving stack, and compare cost per completed task. If you need help turning that evidence into a build, buy or hybrid recommendation, our platform engineering team can assess the architecture and operating requirements. The first step is to write down the workload and service constraints you need to meet.
Where PADISO fits
We help teams decide where AI pays, compare build and buy options, and design the platform and operating model behind production systems. Start with an AI readiness test if you want a structured view of the gaps to resolve before committing to infrastructure.
Next step
Export a representative month of token usage, calculate your blended API price, and benchmark one candidate model against the real workload. If you want a second view on the cost model and deployment choice, talk to PADISO.