Skip to main content

Estimator

Cloud vs local cost calculator

What would this month’s requests cost through an API, and what would they cost on your computer? Enter your usage and power costs to compare.

All amounts are in US dollars. The starting example is editable.

Your cloud usage

Start with an editable example. A token is a piece of text. Batches group requests for later processing.

Count billed requests above the provider’s free allowance. An unlisted rate leaves this component unknown.

Cloud provider and model

Choose the model that would handle this workload. Rates apply to the request size entered.

This scenario bills 0% of prompt tokens as cache reads and 0% as cache writes.

This scenario uses a reusable cache boundary after the repeated prefix and reuse before it expires. Only that prefix is written once per conversation; the remaining input is billed ordinarily. For implicit writes beyond that prefix or missed cache reads, enter the billed read and write shares directly. Include input excluded from caching in the average prompt size, but leave it out of the repeated prefix.

This model requires at least 1,024 eligible input tokens in a cached prefix. Shorter prefixes get no cache discount or prefix-write charge.

Use percentages of billed input tokens. Ordinary input, cached reads and writes together cover the input once. Write percentages follow request volume in the usage scenarios.

OpenAI: GPT-6.1 Terra

Per million tokens for this request in US dollars: prompts $1.00, cached prompts $0.05, answers $5.00.

30-minute writes $1.25; 12-hour writes $2.50. These replace ordinary input billing for written tokens. Twelve-hour writes use the Responses API.

Batch prices are half the standard rates (OpenAI Batch API). Cache writes replace ordinary input billing: 1.25 times the input rate for 30 minutes, or 2.5 times for 12 hours in the Responses API. Web search results add input tokens billed at this model’s input rate; include them in the average prompt size.

Rates checked November 25, 2026. Open OpenAI pricing for today’s rates.

Your local costs

Already owned excludes the purchase price. Running costs and valued setup time still count.

Starts from your saved computer when it has a listed card or chip.

Leave empty to calculate from requests and speeds. Otherwise enter hours for this complete monthly workload; supplied speeds still check whether those hours suffice.

Running time: 15.97 hours a month.

Cloud monthly cost

Calculated from your entries.

$9.75

Ordinary input
$2.25
Cached input reads
$0.00
30-minute cache writes
$0.00
12-hour cache writes
$0.00
Answer tokens
$7.50
Cache storage
$0.00
Additional cache cost entered
$0.00
Web search
$0.00
Subscription
$0.00
Other cloud costs
$0.00

Local monthly cost

Calculated from your entries.

$0.72

Computer cost spread over time
$0.00
Electricity
$0.72
Local storage
$0.00
Maintenance
$0.00
Setup time spread over time
$0.00

Monthly saving with local AI

$9.03

Based on the entered costs and workload.

Months to recover upfront cost

No upfront cost

No purchase or setup cost to recover under these inputs.

Copy results to keep these rates and amounts.

How different usage changes the cost

Request counts change in these scenarios. Running hours follow the request count unless you entered them; watts stay at your entered values. This compares money cost only.

Half usage: Cloud $4.88; local $0.49. Local AI saves $4.39 per month.

Base case: Cloud $9.75; local $0.72. Local AI saves $9.03 per month.

Double usage: Cloud $19.50; local $1.18. Local AI saves $18.32 per month.

Every current cloud model for this workload

ModelMonthly costCompared with your computer
OpenAI: GPT-6 Luna$0.98$0.26 more than local
Together AI: GPT-OSS 120B$1.24$0.52 more than local
OpenAI: GPT-4.1 mini$3.30$2.58 more than local
OpenAI: GPT-5 mini (shutting down on Dec 11, 2026)$3.56$2.84 more than local
Google: Gemini 2.5 Flash (being replaced on Dec 1, 2026)$4.43$3.71 more than local
Google: Gemini 3.5 Flash-Lite$4.43$3.71 more than local
OpenAI: GPT-6.1 Terra$9.75$9.03 more than local
OpenAI: GPT-6.2 Sol$19.50$18.78 more than local
OpenAI: GPT-5.6 Terra$22.50$21.78 more than local
OpenAI: GPT-6.2 Astra$78.00$77.28 more than local
Your computer$0.72—

Inputs for this calculation

  • Cloud model: OpenAI: GPT-6.1 Terra. Prices checked on November 25, 2026.
  • 1,500 requests per month; 1,500 input tokens and 1,000 output tokens per request.
  • Batch requests: 0%; billed search requests: 0.
  • Cache use: implicit.
  • Repeated start of each request: 0 tokens across 1 turns per conversation; this scenario bills 0% of input as cache reads.
  • Already-owned computer: no purchase cost is allocated. Electricity, storage, maintenance and valued setup time still apply.
  • Running: 180 watts for 15.97 hours/month (calculated). Idle: 20 watts for 80 hours/month. Electricity: 0.16 USD/kWh.
  • Answer speed: 30 tokens per second; prompt-reading speed: 300 tokens per second.

Calculation notes

  • Totals are calculated before display rounding. The comparison covers money cost.
  • The starting example repeats no prompt prefix, so prompt caching saves nothing until you enter the repeated part of your prompts. When caching is used, reads and writes are separate billing quantities; batch and cache shares apply uniformly to requests.
  • This scenario uses a reusable cache boundary after the repeated prefix and reuse before it expires. Only that prefix is written once per conversation; the remaining input is billed ordinarily. For implicit writes beyond that prefix or missed cache reads, enter the billed read and write shares directly. Include input excluded from caching in the average prompt size, but leave it out of the repeated prefix.
  • This model requires at least 1,024 eligible input tokens in a cached prefix. Shorter prefixes get no cache discount or prefix-write charge.
  • Running hours include reading prompts and generating answers. Waiting and concurrent use add time.
  • Already owned excludes the purchase price; running costs and valued setup time still apply.
  • Usage scenarios change request counts and calculated running hours. Cache-write percentages follow the token volume.
  • Explicit cache storage represents aggregate stored tokens and their hours this month; it stays fixed in usage scenarios.

The answer speed starts from your saved computer when its card or chip is listed. Replace it with your own measured speed if you have one.

Source: OpenAI: GPT-6.1 Terra pricing, checked on November 25, 2026. Check the provider’s current rates, billing terms, and applicable taxes before spending money.

Compare the costs you would actually pay

Start with how you pay for the cloud model, your expected requests per month, typical prompt and answer sizes in tokens, and the cloud model you would otherwise use. Then enter the local computer cost attributable to this work, electricity rate, power use, answer and prompt-reading speeds, storage and setup costs. The calculator works out the monthly running hours from your requests and those speeds; you can enter the hours yourself instead. The starting usage example is a workload for you to edit.

InputUse this basisNote
Monthly workloadRequests and typical input and output tokens for your taskInput and output tokens have different prices
HardwareAn existing computer, a new purchase, or an upgrade to the one you haveAn existing computer you would keep anyway is not a new purchase
ElectricityPower draw, running time and your electricity ratePower comes from your computer's draw, not the file size
Local answer speedThe generation rate reported for your model on your computerUse your own measured throughput
Prompt reading speedThe prompt-processing rate your app reports; usually much faster than answer speedReplace the example 300 tokens per second with your app's rate
Storage and setupThe costs you actually expect to incurInclude every recurring charge

An existing computer needs no new hardware purchase. To buy a graphics card or upgrade parts for this task, choose Upgrade and enter the upgrade cost and what the replaced parts would resell for. Compare those cases separately, and vary usage as well: occasional requests and continuous workloads give different answers.

Start from the plan you pay for

How you pay for the cloud model changes what the cloud side counts:

  • Pay per token: you pay for the tokens you send and receive, plus any cache, search and other charges. Enter the model's prices through the model choice, not by hand.
  • Flat monthly plan: enter the monthly plan price. Tokens, caching and searches are shown as included in the plan, so the cloud cost is the plan price and anything you enter as Other cloud cost.
  • Plan plus extra tokens: enter the plan price and the usage beyond it. The plan price is added to the token and search charges.

A subscription allowance and a usage-billed API are different products. Choose the mode that matches what you pay.

Prompt caching starts off unless the model caches repeated prompts on its own. If your prompts begin with the same text each time, such as instructions or a document, enter how many tokens repeat and how many turns a conversation has. The calculator then works out how much input is billed as cached reads and cache writes. The starting example repeats no prompt prefix, so caching saves nothing until you enter the repeated part. Choose Enter cache shares directly to type the percentages yourself; reads and writes together cannot exceed 100% of input. Enter billed search units above any free allowance: Google Gemini 2.5 Flash bills grounded prompts, while Gemini 3.5 Flash-Lite bills individual search queries (one prompt can trigger several). OpenAI bills search calls. Include variable search-content input tokens in the average prompt size when applicable. If the calculator shows a fixed token charge per search, it adds those tokens to the search total. Leave them out of your average prompt size.

The repeated prefix must qualify for the provider's cache and end at a reusable cache boundary. For GPT-5.6 and later, it needs at least 1,024 eligible input tokens. The calculator assumes that prefix is written once and reused before it expires. Use Enter cache shares directly for the read and write percentages on your bill. On GPT-6.2, top-level instructions are ordinary input; include them in the average prompt size and exclude them from the reusable prefix. OpenAI prompt caching.

GPT-6.2 Sol and Astra use standard or Batch text-token rates in this calculator. For requests above 272,000 input tokens the higher long-prompt tier applies to the entire request. Run short and long workloads separately if they straddle that threshold. Fast, Ultrafast, background-processing discounts, regional premiums, and other service-specific charges are not calculated; enter any additional cost separately.

Paste your measured speed

The two speeds matter more than any other local input. If you have run the model, choose Paste speed from your app, then paste the end of an ollama run --verbose answer or the statistics line LM Studio shows. The speeds are read in your browser and fill the prompt-reading and answer fields, which then carry a Measured badge. A pasted speed describes that run on that computer. If you have not run the model, try several typed speeds.

Check that the workload is possible

The calculator turns your requests and the two speeds into running hours: answer time plus prompt-reading time. At 30 tokens per second for answers and 300 for prompts, 1,500 requests of 1,500 prompt tokens and 1,000 answer tokens take about 16 hours a month, so doubling the requests doubles the electricity. At the same speeds, 100,000 such requests need about 1,065 hours, more than a month has for one continuously running computer, so no saving is shown.

Those figures cover prompt reading and answer generation at the entered speeds. Add time for model loading, retrieval and pauses.

Read monthly cost and payback separately

The monthly comparison includes the purchase, recurring and usage costs you entered. Spreading a hardware purchase across a chosen number of months is a planning convention.

Payback is how long lower recurring costs would take to recover an up-front expense under the stated workload. If local recurring costs are not lower, the expense does not pay back. If recovery would take longer than the months you planned, the page says so and gives the months it would take.

For a purchase or upgrade, Total cost over time plots both sides month by month, including the purchase, and marks where the local line drops below the cloud line when that happens within your plan.

See every cloud model at once

Every current cloud model for this workload prices your usage on each listed model, cheapest first, and shows how each compares with your computer's monthly cost. A model whose price cannot be worked out for your inputs shows why. Models the provider has scheduled to stop are labelled with their date, and a link that names one after that date uses its replacement's prices.

Before choosing the cheaper option

Read the local and cloud comparison, check the exact local model in the RAM and VRAM calculator, and try a task before buying hardware.

Use Copy link to revisit the selected cost assumptions, or copy or print the result with its inputs. Opening a link recalculates from the site's current data.

Missing amounts show the known subtotal and name each unknown component. Running and idle time must fit within 730 hours, and entered running hours must cover the workload at the supplied speeds. If you supply running hours without every applicable speed, the comparison assumes those hours cover the workload. Copy, print and settings links keep incomplete drafts.