Local LLM cost per token: trace one token each way

By Christophe Paka · Facts checked on 7 November 2026

A thread on r/LocalLLM asked: "After making the big purchase, is local AI worth it to you?" It drew 196 comments. A small firm owner asked another: "Is there a way to make LLM usage free for small businesses?"

Guess wrong and you buy a machine that costs more each month than the API it replaced. The local llm cost per token comes from a short list of inputs, and the figure shows each one. Every box is a number you measure or look up.

Two columns. Local: hardware cost divided by months of use, plus measured watts times your electricity rate, gives your real cost per token. Hosted: a named partner's rate per token, checked on its live page and dated, gives yours.
Figure 14.1: Two meters, one comparison. Every input on this map is one you measure or look up.
Use this diagram on your site

Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.

How to read this figure

  1. Start top left: the machine. The first box divides the hardware price by the months you use it. That is amortization: spreading a machine's price over its life. A machine bought for the model counts in full. If it also does other work, count only the model's share.

  2. Add the power. The second box adds the watts you measure times your electricity rate. Power is billed in kilowatt hours: one kilowatt used for one hour. A busy graphics card draws far more than an idle one, so measure while the model works.

  3. Read the local total. The green box is your real cost per token run locally. A local model costs nothing per question, but the machine and its power do. Your own time to install, update and fix it is a third cost you may add.

  4. Switch to the right column. A named partner's rate sits at the top. A token is a piece of text, about three quarters of a word. Hosted prices usually come per million tokens, priced apart for tokens in (your prompt) and tokens out (the answer). So count both kinds of token.

  5. Date the hosted price. The middle box says to check that rate on the partner's live page and write the date. Prices change, so a figure from a blog or a book is a starting point, not your bill. No box on either side holds a number chosen for you.

Key takeaways

  • Count the machine, its power and your time before you call local free.
  • Read hosted prices from your partner's own page, and write the date beside them.
  • Measure watts with a plug in meter while the model works, and again at idle.

Try this: cost your workload two ways

You need a calculator or a spreadsheet, your electricity bill, and a plug in wall power meter if you have one. No meter? Write "not measured" and do the other steps.

  1. Divide the machine's price by its life in months. Count only a share if it also does other work.
  2. Plug the machine into the meter, give the model a long task, and read the watts. Read them again at idle.
  3. Turn watts into kilowatt hours: multiply by your hours of use, then divide by a thousand. Multiply by the rate on your bill.
  4. Count your tokens: requests each day times working days times tokens per request, with tokens in and out kept apart.
  5. Read a price from your chosen partner's own page, write the date, and multiply tokens in and out by their prices per million.
  6. Write one sentence that names the smaller figure, the date and every input.

Expected result: Two dated monthly figures, every input written down, and one sentence that names the cheaper path. For Ridge, the small firm in the book, a $5,499 machine over 36 months costs $152.75 a month, and measured power adds $5.28, about 3 percent of that. Hosted at Maverick's median rates, the same month's 15.4 million tokens cost about $5.32.

Questions readers ask

Is running a local LLM free?

No. Downloading Llama is free, and so is its licence for most users. But three things cost money: the machine, its power and your time. Only a firm that already owns a big enough machine, and does not count staff time, runs it close to free.

How do I compare local and API costs fairly?

Use the same unit on both sides: money for one month. Spread the machine's price over its months of use, add measured power, then price your monthly tokens at a partner's dated rate. The crossover chart shows where the two meet.

Will cloud model prices stay this low?

No one can promise that. One reader wrote "I don't trust that cloud models will stay at their current prices". A hosted price can change, which is why the map says to date it. Your own machine's cost is set the day you buy it, so only the hosted side can move.

Sources: Artificial Analysis: Llama 4 Maverick; Ollama pricing; Llama 4 model page (Meta).

This figure is from Llama Made Crystal Clear, chapter 14.

The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.

Get the book

All diagrams