← Free tools
Free · about 2 minutes

Private AI vs API cost calculator.

For teams deciding between an AI API and running their own model. Enter your daily requests and the kind of work, then the results of your own load test, and compare the monthly cost of the OpenAI, Claude or Gemini API with a private model on rented GPUs. Until you enter a load test, we show the API cost only.

Everything is worked out in your browser, and your numbers are never stored or sent. If you accepted analytics, we record use of the tool and, for a valid comparison, which option had the lower estimate. How the sums work.

Cost calculatorCalculator updated: 30 November 2026
Which API would you use?
Model quality
What each request looks like

Users × requests each. 200 people asking 15 questions a day is 3,000.

Where would private AI run?

24 for a round-the-clock service. With fewer, private AI can't answer requests while the GPUs are off, so use fewer only if every request can wait, such as batch jobs.

Show costs in
Your load test

A server is one copy of the model. Here it has 4 GPUs of H100 80GB. Run a load test on a server like that, with your own traffic, and enter what it showed. We don’t suggest a figure.

We start from 4 for mid-tier. Changing it clears your load test result, which only applies to the GPU setup it was run on.

The most requests you get in any one minute while the GPUs run, not a daily average. It can't be lower than your average, about 6.9 a minute (10,000 a day over 24 hours).

Test the same model (Llama 3.3 70B Instruct, 16-bit (BF16)), GPU setup, prompt and answer lengths, and response-time target you will use, and count only requests that met the target. Decimals are fine, for a server that handles less than one request a minute.

Whole servers kept running in case one fails. 0 means no failover: if a server stops, the rest may not cover your traffic.

We have no figure for this hosting, so you need to enter one: what it costs you a month for the people who run it. 0 is allowed if you enter it.

No private AI result yet

To compare the two, we need your load test. Still needed: the requests in your busiest minute, the requests a minute one server handled in your load test and what it costs a month for the people who run it (0 is allowed if you enter it).

Until then, the numbers below are not a comparison. We show no private AI total, no cheaper option and no break-even, because private AI costs depend on how many servers your traffic needs, and only your load test can tell us that.

API$1,825a month

GPT-6.2 Sol, 10,000 requests a day × 30.42 days, about $0.0060 a request.

One server, whether or not it can handle your traffic$13,696a month, GPUs only

4 GPUs of H100 80GB at $4.69 an hour for each GPU (Lambda, 4x NVIDIA H100 SXM instance), 24 hours a day. No people cost and no spare servers. Your traffic may need more than one server.

What a server means here. Llama 3.3 70B Instruct, 16-bit (BF16): the weights are about 141.1 GB, and 4 GPUs of H100 80GB have 320 GB, which leaves about 179 GB for requests and overheads. That only checks the weights fit. It doesn’t show these GPUs can handle your traffic.

This compares cost, not quality. Llama 3.3 70B Instruct is a sizing example, not equal in quality to GPT-6.2 Sol, and it has its own licence (Llama 3.3 Community License). Check the licence and test both on your own examples first.

Estimates only, at public list prices. Lambda lists these prices plus applicable sales tax, VAT or GST. E2E's price list says its prices exclude 18% GST. Real costs depend on your setup, discounts and how much traffic each GPU can serve. How this works.

How this works

The same model as our guide to private LLM vs API costs: a variable API bill against a stepped private one, where the steps come from your own load test.

The API

Requests a day × 30.42 days × (input tokens × input price + output tokens × output price) ÷ 1 million. Prices are standard list prices per 1 million tokens, without batch or caching discounts. Output includes any thinking tokens the provider bills.

Private AI

A server is one copy of the model, with the number of GPUs you set. Servers needed = the requests in your busiest minute ÷ the requests a minute one server handled in your load test, rounded up. Total servers = servers needed + spare servers (0 means no failover). Monthly cost = total servers × GPUs per server × price per GPU-hour × hours a day × 30.42 days, plus the people who run it. The price per GPU-hour is the one listed for a server of that size.

You enter the load test result. We never suggest one, fill one in or turn a benchmark into a default. Until the busiest minute, the load test result and the people cost are all valid, we show the API cost and the GPU cost of one server, and nothing else.

People

For US hosting there is no default: you enter what it costs you a month, and 0 is allowed if you enter it. For Indian hosting we start from half of one AI engineer's time, about ₹64,167 a month: half of ₹15.4 lakh a year, the midpoint of AmbitionBox's self-reported range of ₹14.6 to 16.2 lakh for AI engineers in India with 1 to 6 years' experience, from 5.7k salaries (page updated 29 November 2026) (AmbitionBox, checked 30 November 2026). That’s salary only, before employer costs. Switching hosting never carries one country’s default over to the other, and it keeps a figure you typed.

Break-even

Private cost rises in steps, one for each server you add, so the two cost lines can cross more than once. We keep your ratio of busiest minute to average and your hours a day, change only the volume, and find the lowest whole number of requests a day at which private AI costs the same as the API or less. It is worked out exactly, server step by server step. Above that volume an extra server can make the API cheaper again, so check your exact volume rather than reading it as “private AI is cheaper above this”. If a server costs more than the API would for the traffic it handles, there is no break-even, and we say so.

A worked example

Say your load test, with your busiest minute, works out at 3 servers needed after rounding up, and you keep 1 spare. That’s 4 servers of 4 H100 80GB GPUs each, 16 GPUs, running 24 hours a day at $4.69 an hour on Lambda: 16 × $4.69 × 24 × 30.42 = $54,785 a month, plus the people cost you enter. The 3 servers and 1 spare are made up to show the arithmetic. They aren’t a measurement of any model, and the calculator never fills in a load test result for you.

Prices used

API prices, US dollars per 1 million tokens
ProviderTop-tierMid-tierSmallChecked
OpenAIGPT-6.2 Astra: $8 in, $40 outGPT-6.2 Sol: $2 in, $10 outGPT-6 Luna: $0.10 in, $0.50 out30 November 2026
Anthropic ClaudeClaude Fable 5.2: $8 in, $40 outClaude Sonnet 5.5: $2 in, $10 outClaude Haiku 5.5: $0.10 in, $0.50 out (Prompts up to 100K tokens.)30 November 2026
Google GeminiGemini 4 Carbon: $4 in, $20 out (Google's price from 1 December 2026 ($2 and $10 until 30 November).)Gemini 4 Hydrogen: $1.50 in, $7.50 outGemini 3.5 Flash-Lite: $0.30 in, $2.50 out30 November 2026
GPU rental, on-demand, per GPU-hour
WhereGPUPrice for each GPU-hour, by server sizeTaxChecked
US GPU cloud (Lambda)H100 80GB1 GPU: $4.89, 2 GPUs: $4.79, 4 GPUs: $4.69, 8 GPUs: $4.59Lambda lists these prices plus applicable sales tax, VAT or GST.30 November 2026
US GPU cloud (Lambda)A100 40GB1 GPU: $1.99, 2 GPUs: $1.99, 4 GPUs: $1.99, 8 GPUs: $1.99Lambda lists these prices plus applicable sales tax, VAT or GST.30 November 2026
Indian GPU cloud (E2E Networks)H100 80GB₹379.05 whatever the server size, NVIDIA H100 80GB, on-demandE2E's price list says its prices exclude 18% GST.30 November 2026
Indian GPU cloud (E2E Networks)A100 40GB₹179 whatever the server size, NVIDIA A100 40GB, on-demandE2E's price list says its prices exclude 18% GST.30 November 2026
Open models used as sizing examples, one for each tier
TierModel and precisionWeightsIn one serverLicenceChecked
Top-tierQwen3-235B-A22B-Instruct-2507-FP8, FP8 (8-bit), from QwenAbout 236.4 GB8 × H100 80GB = 640 GB, so the weights take about 37%Apache 2.030 November 2026
Mid-tierLlama 3.3 70B Instruct, 16-bit (BF16), from MetaAbout 141.1 GB4 × H100 80GB = 320 GB, so the weights take about 44%Llama 3.3 Community License30 November 2026
SmallLlama 3.1 8B Instruct, 16-bit (BF16), from MetaAbout 16.1 GB1 × A100 40GB = 40 GB, so the weights take about 40%Llama 3.1 Community License30 November 2026

These models are sizing examples. They aren’t equal in quality to the API models in the same tier, each has its own licence to check, and fitting the weights in GPU memory doesn’t show a server can handle your traffic: that is what your load test is for. Weights are the sizes of the model files in each publisher’s own repository. Rupees and dollars convert at ₹93.15 to the dollar (open.er-api.com, 30 November 2026). Buying your own servers isn’t priced here yet.

Calculator last changed: 30 November 2026. Every source above has its own checked date. Estimates only, not a quote or financial advice.

Questions about the calculator

Is running a private AI model cheaper than using an API?

Only at enough volume, and only if your GPUs can handle it. A fixed set of rented GPUs costs the same every month whether you use it or not, while an API bill grows with use. How many servers you need depends on your busiest minute and on what one server handled in your own load test, so the calculator shows no private AI total until you enter both. It then shows both monthly costs and the lowest volume at which private AI costs the same as the API or less. Every extra server adds a step to the private cost, so the API can be cheaper again above that volume: check your exact volume. Below it, the API costs less.

Why would we go private if the API is cheaper?

Because cost is rarely the main reason. Teams go private when data can't leave their systems by contract, sector rule or policy, when they need a pinned model version they control, or when a fixed bill suits them better than one that moves with usage. Each of those comes with engineering work you need to staff.

Where do the prices come from?

From the providers' public price pages: OpenAI, Anthropic and Google for API tokens, Lambda for US GPU rental and E2E Networks for Indian GPU rental. The open models used as sizing examples come from their publishers' model cards. Each price and the date we checked it is listed under How this works, and the dates differ because each source is checked separately. Prices change, so the engineering lead updates them every quarter.

What does the calculator leave out?

It takes your load test result as given: it can't measure capacity or check that your test was fair. On the private side it leaves out storage, networking, monitoring, security, evaluation runs, backups, a staging environment, setup, fine-tuning, any engineering or on-call time beyond the monthly figure you enter, and tax. Idle GPU time is included only within the hours you enter. On the API side it leaves out batch and caching discounts, extra charges for long prompts or regional processing, and failed or repeated requests. Output must include any thinking tokens the provider bills, so a reasoning model can cost more than shown. Negotiated discounts are left out on both sides. It doesn't price buying your own servers yet.

How do I find out how many requests a minute one server handles?

Run a load test on one server: the same model, precision, GPU setup, prompt and answer lengths, and response-time target you will use. Raise the traffic until answers start missing the target, and count only the requests that met it. That number is what you enter, and it is yours alone: the calculator never suggests one, because a vendor's headline figure rarely matches your prompts. Enter your busiest minute too, the most requests you get in any one minute while the GPUs run, not a daily average. If you change the model, the GPUs per server, the request type or where it runs, the old test no longer applies, so the calculator clears it.

Do you store what I enter?

No. Everything is worked out in your browser. If you copy the link, your inputs, including your load test numbers, travel in the part after the # sign, which browsers never send to a server. If you accepted analytics cookies, we record that the calculator was used, which option had the lower estimate once you have a valid comparison, and clicks on the share and estimate buttons, not your numbers. If you press a button to contact us, our team gets a notice with the button's text and the page, whether or not you accepted analytics, but never your numbers or result.

Want the real numbers for your setup?

Own Your AI runs open models in your own cloud account or on your own servers, including hosting in India. We size it from your data and traffic.