I priced one measured job at Anthropic's, xAI's and Google's published list prices. Same token counts on every row, so the only thing that changes from row to row is the price list.
AXI is a layer on the host side, between a model and the state it edits. The host holds the exact state, the model proposes one change per step, a deterministic check admits or refuses it, and the prompt is rebuilt short from the held state at every step. The model is unchanged. It is for the company that runs the model, not for end users, and it fits any LLM application that holds state, short jobs and long, from the first step. The architecture is by Rajnish Choubey. The tests and measurements are mine, run with an AI assistant as a tool. I am not affiliated with Anthropic, xAI, Google or Meta. ("AXI" here is not the Google or Microsoft products of the same name.)
The job
400 steps that edit a service graph, one change per step (the cache pair test and Test 23 in the repository). Three ways of holding the state:
- A: the host holds the state as data and rebuilds a short prompt each step (AXI).
- KC: the whole chat is kept and the cache is cold.
- KW: the whole chat is kept and the cache is warm (97.0 percent of its prompt tokens were read from the cache).
A verified step is a step after which the held state equals the true state. The token counts were measured on Gemini 3.8 Flash, and Google's own bill confirms them in total to about 1.3 percent (the earlier article on this).
| A (host-held) | KC (kept chat, cold) | KW (kept chat, warm) | |
|---|---|---|---|
| steps run | 400 | 390 | 400 |
| verified steps | 400 | 328 | 260 |
| prompt tokens | 470,669 | 37,967,655 | 39,923,458 |
| of them cached | 0 | 0 | 38,728,988 |
| output tokens | 57,527 | 12,351 | 13,456 |
| largest prompt of one step | 1,390 | 193,411 | 198,405 |
The cost of one verified step at list prices
Fresh prompt tokens at the input price, cached ones at the cached price, output at the output price, divided by the verified steps of the cell.
| model (dollars a million tokens: input / cached / output) | A (host-held state) | kept chat, cold | times A | kept chat, warm | times A |
|---|---|---|---|---|---|
| Gemini 3.8 Flash (0.75 / 0.075 / 3.75) | $0.0014 | $0.0870 | 61.2 | $0.0148 | 10.4 |
| Claude Sonnet 5.5 (2 / 0.1 / 10) | $0.0038 | $0.2319 | 61.2 | $0.0246 | 6.5 |
| Claude Opus 5.5 (4 / 0.2 / 20) | $0.0076 | $0.4638 | 61.2 | $0.0492 | 6.5 |
| Grok 4.3 (1.25 / 0.2 / 2.5) | $0.0018 | $0.1448 | 79.1 | $0.0357 | 19.5 |
| Grok 4.7 (2 / 0.5 / 6) | $0.0032 | $0.2317 | 72.1 | $0.0840 | 26.1 |
Per million verified steps that is $3,792 with AXI on Claude Sonnet 5.5 against $231,887 for the kept chat cold and $24,602 warm; $1,830 against $144,788 and $35,664 on Grok 4.3; $1,422 against $86,957 and $14,811 on Gemini 3.8 Flash.
Counting every step, right or wrong, so that the gap is the tokens alone: 51.4 times cold and 4.2 times warm on Claude, 66.5 and 12.7 on Grok 4.3, 51.4 and 6.8 on Gemini.
Where the prices come from
- Google: the rates in Google's own billing report (input 0.75, cached 0.075, output 3.75).
- Anthropic: the model pricing table at platform.claude.com/docs/en/about-claude/pricing, read on 26 Nov 2026. Claude Sonnet 5.5: input $2, cache hits $0.10, output $10. Claude Opus 5.5: $4, $0.20, $20.
- xAI: docs.x.ai/docs/pricing, "Last updated: October 10, 2026". Grok 4.3 under 200k tokens: input $1.25, cached $0.20, output $2.50. Grok 4.7: $2, $0.50, $6.
The same arithmetic on Google's rates gives back the figures of the Google page ($0.0014, $0.0870, $0.0148), which is the check that the method is the same.
What the arithmetic assumes
- The token counts are Gemini's. A different model counts a different number of tokens for the same text (Anthropic's page says its newer tokenizer gives about 30 percent more). Both arms scale together, so the ratios move little; the dollars would move.
- On Claude, the fresh tokens of the warm kept chat are priced at the base input price. Anthropic charges cache writes at 1.25 times base on top; adding that would raise the kept chat's warm figure. It is not added here.
- No step reaches a long-context tier: the largest prompt of the kept chat is 198,405 tokens and Grok's higher rates start at 200,000.
- No Anthropic or xAI bill was read, and the job was not run on their models. A run on them would replace the Gemini token counts and step counts with their own; this page is the arithmetic that those would be multiplied by.
Meta's Llama
Llama is open-weight and priced by whoever serves it, so there is no single list price. What it shares with every host is the memory of the cache: 2 times layers times key-value heads times head size times 2 bytes per token, which is 131,072 bytes for Llama 3.1 8B and 327,680 for 70B (public configurations). At the mean prompt of each arm (1,177 tokens for A, 97,353 for the kept chat) a session takes 154.3 MB against 12.76 GB on 8B, and 385.7 MB against 31.90 GB on 70B: 82.7 times. Llama 3.1's window is 131,072 tokens and the kept chat of this job passes it at step 264.
Check it
Every figure above is recomputed by a test from the saved result files and a small file of prices, with no model call: PRICE_CHECK.md and python/tests/test_price_check.py. To use other prices, change the numbers in docs/results/price_check.json. The repository: github.com/gaurshalendra2412/axi-runtime.




