## What we measured

For seven days we measured every token Shakudo produced in production. The window ran from 24 November 2026 at 02:45 UTC to 1 December 2026 at 02:45 UTC. It covered software development, sales, marketing, and operations.

The total was 46,547,297,440 tokens across 209,068 spend events. That traffic ran on Kimi K3.1 Pro, served by [Fireworks](https://docs.fireworks.ai/serverless/pricing).

Then we priced that same traffic four other ways, applying each provider's published rates to the same three token classes: uncached input, cached input, and output. Same workload, same week, four bills.

![How the measurement was built: spend events split into token classes, then priced at each provider](https://cdn.shakudo.io/images/blog/token-bill-in-house-economics/fig1-flow.png)

The spread is not a rounding error. It decides whether an AI programme is affordable.

## Four ways to buy the same tokens

Every provider prices the same three token classes: uncached input, cached input, and output. The spread between the cheapest and the most expensive option is fifty times on output alone, which is why a blended rate per million tokens tells you almost nothing.

We applied published list rates to our own token counts, with no committed-use discount for anyone. The six rates we used, and the date we checked them, are in the paper, so the arithmetic can be audited line by line.

The provider pages we pulled them from are the [Fireworks pricing page](https://docs.fireworks.ai/serverless/pricing) and the [OpenAI pricing page](https://platform.openai.com/docs/pricing).

Anthropic publishes its own list on the [Anthropic pricing documentation](https://docs.anthropic.com/en/docs/about-claude/pricing).

One detail matters more than the rate card itself. The OpenAI long-context rates apply to the whole request once input crosses 272,000 tokens, not to the portion above the line. And 68,672 of our requests crossed it.

## What the week cost

| Deployment | Seven days | Monthly run rate | Annual run rate | External token spend |
|---|---|---|---|---|
| Fireworks Kimi K3.1 Pro | $20,873.24 | $90,450.71 | $1,085,408.48 | Included |
| Anthropic Opus 5.5 | $33,558.65 | $145,420.84 | $1,745,050.05 | Included |
| OpenAI GPT 6.2 Sol | $26,232.25 | $113,673.07 | $1,364,076.86 | Included |
| OpenAI GPT 6.2 Astra | $104,928.99 | $454,692.29 | $5,456,307.43 | Included |
| Self-hosted NVIDIA DGX B300 with Shakudo | $8,730.77 | $37,833.33 | $454,000.00 | $0 |

Table: The same workload priced five ways over one week, with monthly and annual run rates projected from that week.

![Annual run rate for the same weekly token volume across the five purchase paths](https://cdn.shakudo.io/images/blog/token-bill-in-house-economics/fig2-paths.png)

Our own deployment came out at $454,000 a year. Against Fireworks that is a saving of $631,408 a year, or 58 percent. Against Sol it is 67 percent. Against Opus 5.5 it is 74 percent. Against Astra it is 92 percent.

The self-hosted hardware side is a standard eight-GPU system. NVIDIA documents the [DGX B300 platform](https://www.nvidia.com/en-us/data-center/dgx-b300/) and the [HGX reference designs](https://www.nvidia.com/en-us/data-center/hgx/) that most systems in this class follow.

The self-hosted figure rests on two published assumptions: a DGX B300 amortised at $17,000 a month, which is $204,000 a year, and Shakudo at $250,000 a year. We are the vendor in that second line, so treat the owned number as our price to ourselves, quoted at the same rate we publish. Over two years the total is $908,000, made up of $408,000 of hardware and $500,000 of platform. There is no external token spend in that line at all.

## Caching moves the answer, but not the ranking

Caching is the largest single lever in token cost. Remove it and the same workload costs between four and a half and six times as much: $94,564 instead of $20,873 at Fireworks, $619,809 instead of $104,929 at Astra. The full four-row comparison is in the paper.

Caching cut our bill by 78 percent. It is the first thing to fix, whichever way you buy tokens. But it did not reorder the field. Self-hosted still wins, because on your own hardware the cache is already in your building and the marginal cost of a cache read is your own electricity.

One honest caveat: our source data records cache reads but not cache writes, so these estimates exclude cache creation and refresh charges. They also exclude batch discounts, priority modes, and regional multipliers. Real bills will differ in both directions.

## Why the shape of the workload matters

A per-token bill scales with a number you do not control: usage. Every engineer who adopts an AI coding tool, every salesperson who drafts with an agent, every analyst who asks a second follow-up question, moves the meter. That is the point of the tools, and it is also the trap.

Our own traffic shows the shape of the problem. Peak days ran 27 percent above our trough days inside a single week. Over a year, that variance compounds against a fixed budget.

Here is the number a platform lead asks about first. Forty-six and a half billion tokens in a week is about 77,000 tokens a second, sustained, including the overnight hours. One DGX B300 carried that, and how much headroom was left is the question that decides whether you can do the same. The paper covers the serving setup that made it possible and the utilisation we assumed.

On owned infrastructure the cost is a step function, not a ramp. You buy the capacity, and then the forty-seventh billion token is close to free. The work moves from negotiating rates to raising utilisation, which is a problem an operations team can actually solve.

![Break-even curve: the fixed self-hosted cost against per-token spend as volume scales](https://cdn.shakudo.io/images/blog/token-bill-in-house-economics/fig3-breakeven-v2.png)

Because the owned cost is fixed, the crossover is just that cost divided by what the per-token path would charge for the same work. On our traffic it sits at about two fifths of our volume against Fireworks, a third against Sol, a quarter against Opus 5.5, and under a tenth against Astra.

Three things move it for you: which model you would otherwise buy, your cache hit rate, and the utilisation you can sustain on owned hardware. Caching cuts both ways, because without it every per-token bill above rises four to six times and the crossover falls with it.

There are real trade-offs, and we will not pretend otherwise. You take on GPU operations, model upgrades, and capacity planning. You need people who can run [vLLM](https://github.com/vllm-project/vllm) or [TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM) well enough to keep utilisation high.

You also inherit responsibility for the weights themselves, because an open release is something you have to track, pin, and re-validate. The [MoonshotAI repositories](https://github.com/MoonshotAI) are where that trail starts.

If your volume is low, per-token is cheaper and simpler, and the crossover point is the only number that matters.

## How to run this test on your own traffic

You cannot copy our result. Your workload, your context lengths, and your cache hit rate are yours. But the method travels, and it comes down to two steps.

1. Export a week of spend with the three token classes recorded per request. Daily totals hide the thing you are trying to change, and they break the long-context arithmetic.
2. Apply each provider's published list rates to your own counts, per request, then add your hardware amortisation and platform cost at a utilisation you are willing to state out loud.

The rest of the method lives in the paper: how we handled long-context surcharges, how we treated cache writes, and the validation we ran against the source ledger.

A note on tooling: the pipeline that produced this analysis reads a spend table, splits token classes, and applies a rate card per request. The same shape works whether you run [Kimi](/integrations/moonshot-kimi) on your own GPUs, serve through [Triton](/integrations/nvidia-triton-inference-server), or use a hosted API as your baseline.

## What this does to a budget

The gap between $454,000 and $1,085,408 a year is not a procurement saving. It is the difference between an AI programme that runs everywhere in the company and one that runs in a pilot.

When a token bill is variable, every team that wants to use AI is competing for the same line item. Platform teams start rationing. Rationing produces shadow AI, and shadow AI is the governance problem you were trying to avoid. A fixed infrastructure cost removes that pressure and makes the governance argument much easier to win.

That is the real result of the measurement. Not cheaper tokens. A different decision.

Three things change when the cost stops scaling with usage:

- Platform teams stop rationing access, so governance becomes a policy conversation instead of a queue.
- Product teams can plan a roadmap without a per-seat token budget as the constraint.
- Finance gets a capital plan with a known ceiling instead of a variable line that grows with adoption.

The paper is the version you can hand to finance: every rate with the date we checked it, the per-request long-context arithmetic, the daily breakdown, the break-even table at five volume levels, and the questions your CFO will ask. [Download it here](/blog/token-bill-in-house-economics).

If you would rather know your own crossover than ours, [send us a week of your spend table](/contact-us) and we will run the same model on it. It takes us about a day, and you get your number, not ours.

## FAQ

### Is a self-hosted DGX B300 cheaper than paying per token?

At our volume, yes, and by a wide margin. The crossover depends on what you would otherwise buy: it lands at about 42 percent of our volume against Fireworks, 33 percent against Sol, 26 percent against Opus 5.5 and 8 percent against Astra. Below those shares, per-token pricing wins.

### Do these numbers include caching?

The headline figures use our measured cache reads. We also show a no-cache comparison, and we exclude cache-write charges because the source ledger did not record them. Be clear about the direction of that omission: leaving writes out makes every per-token bill look cheaper than it really is, which works against our own conclusion. Real gaps are wider than the ones here, not narrower.

### What breaks if we self-host?

Utilisation. The hardware cost is fixed, so an idle GPU is the expensive failure mode. It helps to serve with [vLLM](/integrations/vllm), keep prefix caching on, and treat model upgrades as routine operations rather than projects. The paper lists the six cost-drift drivers we watch and the control for each.