- LLM cost engineering
- Field notes 2026.11
- Published 2026.09.03
- 7 min read
Reduce LLM token costs
Accuracy up. Token cost down. Latency reduced.
Your models work night and day.
So they better be optimal.
Against any foundation model. Client token bills fell 18% to 93% before any partner discount, measured on ground truth, p95 latency and cost per successful task.
| Line | Tokens | Cost |
|---|---|---|
| System prompt × 8 turns | 48,000 | $0.24 |
| Tool schemas × 8 turns | 72,000 | $0.36 |
| Retrieved chunks | 60,000 | $0.30 |
| Repeated history | 90,000 | $0.45 |
| Reasoning tokens | 24,000 | $0.60 |
| Failed run, retried | 1 run | $0.49 |
| The answer | 2,000 | $0.05 |
| Total | $2.49 | |
| Accuracy on ground truth | ↑ | |
| p95 latency | ↓ | |
How
Four levers, in that order.
We tune the system around the model in four places: what goes in, what each call costs, how many calls the loop makes, and what model runs. Baseline first, one lever at a time.
- Up to 93% fewer tokens
Context: only what the call needs
Retrieval, reranking, sparse reading, and compaction that keeps the cache warm. Reading is the biggest line item: observations are 60 to 80% of agent tokens, and only 6 to 15% of what gets read is used. [1]
On the receipt Retrieved chunks 60,000 → 9,000 tokens. History 90,000 → 18,000.
Read less, solve more ↗ - 58% cut over 8 live weeks
Cache and route every call
Stable prefixes at a tenth of the input price, batch tiers at half, a cheap model first with escalation on low confidence, and a cache for repeat questions. [2]
On the receipt System prompt and tool schemas read from cache at a tenth of the price.
Closed-loop routing ↗ - Cost per successful task
Tight loops, scored per task
Every loop runs against our open evaluation framework: accuracy, p95 latency, and cost per successful task. Prompt wording alone moves reasoning tokens 2.4 to 7.4x with no gain in success. [3]
On the receipt Reasoning 24,000 → 8,000 tokens. The failed run, and its retry, are gone.
Evaluation framework on GitHub ↗ - 770M beat 540B
The model itself, when the eval says so
Distill, fine-tune, quantize, or draft-and-verify. A 770M model trained on a frontier model’s rationales beat a 540B model in the original study. [4]
On the receipt Routine turns move to a distilled model: −$0.10.
Distilling step-by-step ↗

Most teams pay for tokens the model never needed.
We find them, measure the removal, and keep the accuracy.
Sixteen techniques
Welcome to the weeds.
Six of these usually apply to a given stack. Which six depends on your traffic.
Context
| Technique | What it does | Measured effect | Sources |
|---|---|---|---|
| Contextual retrieval and reranking | Fewer, better chunks in context. | −67% retrieval failures | [5] |
| Sparse reading | Preview, then read only the evidence the step needs. | Up to 92.9% fewer tokens | [1] |
| Prompt compression | A small model deletes low-information tokens before the call. | 2–5x compression | [6][7] |
| Compaction that keeps the cache | Drop stale tool output and old turns without breaking the prefix. | 61–87% lower cost on long sessions | [8][9] |
Cache and route
| Technique | What it does | Measured effect | Sources |
|---|---|---|---|
| Prompt caching | Mark the stable prefix, or let the provider match it. | Cached input at 0.1x | [10][11] |
| Cache-aware agent loops | Cache system prompt and tools. Keep volatile output after the breakpoint. | 41–80% cost cut on long runs | [12] |
| Batch and flex tiers | Queue what can wait an hour. Slow synchronous calls at the same rate. | 50% off | [13][14] |
| Routing, cascades, semantic cache | Cheap model or cached answer first. Escalate on low confidence. | 58% live, up to 98% in benchmarks | [2][15][16] |
Tight loops
| Technique | What it does | Measured effect | Sources |
|---|---|---|---|
| Effort and reasoning controls | Set thinking per call. Stop paying for max everywhere. | Low to max, per request | [17] |
| Prompt and harness discipline | “Try multiple approaches” multiplies reasoning tokens. Harness choice moves cost per success 5 to 30x. | 2.4–7.4x reasoning tokens, no gain | [18] |
| Structured outputs | Schema-bound answers. No prose padding. | JSON schema enforced | [19] |
| Cost per successful task | The metric the loop is tuned against. Tokens and cache hits are consequences. | Accuracy · p95 · cost | [3] |
The model
| Technique | What it does | Measured effect | Sources |
|---|---|---|---|
| Distillation | Train a small model on the big model’s rationales. Target the failures that escalate. | 2x the cut of random distillation | [4][2] |
| Fine-tuning on your ground truth | The smaller model learns your schema, your tone, your edge cases. | Held to the same eval | [20] |
| Quantization and prefix cache | Self-hosted: activation-aware 4-bit weights, prefix reuse in the serving layer. | >3x speedup vs FP16 | [21][22] |
| Speculative decoding | A draft model guesses. The big model verifies in parallel. Now batched for agents. | 2–3x faster | [23][24] |
Partner rates
Discounts on the tokens themselves.
We partner with OpenAI and Anthropic. For qualifying new clients that can mean discounts on the tokens themselves, on top of everything above.
Our partners and collaborators
Ab initio
When no foundation model fits, we build one.
Data, architecture, training loop, evaluation, and serving, written at the level where the cost is decided. We have worked at that depth since the first transformer paper: speech systems that informed early Whisper, a scientific question-answering layer for NASA Space Biology, and a write-up on language-model products a year before ChatGPT.
NASA Space Biology work · Pioneering the LLM revolution · Our write-up a year before ChatGPT
Results, before any partner discount
18% to 93%
token cost saved across client engagements.
Almost every client has room to save money and improve accuracy and/or p95 latency. The baseline tells us which, in about a week.
Short answers
Token cost FAQ
How much can LLM token costs be reduced?
Our client engagements saved 18% to 93% of token cost before any partner discount. The range depends on how much of each prompt is stable, how many agent turns repeat context, and whether a smaller model holds accuracy on the ground-truth set.
Does reducing tokens reduce accuracy?
Usually the opposite. Tight retrieval and shorter loops remove noise from the context. Every change runs against the evaluation framework, so accuracy, p95 latency, and cost per task are measured before and after it ships.
What is the fastest first win?
Prompt caching. Cached reads cost a tenth of fresh input at Anthropic and up to 90% less at OpenAI. Batch processing takes another 50% off work that can wait an hour. Partner token discounts apply on top for qualifying cases.
More reading
- LLM model benchmarks which evals to trust for which work
- Claude vs ChatGPT vs Gemini price and scores side by side
- RAG evaluation ground truth for retrieval
- GenAI and LLM integration putting models into real systems
- Inference serving quantization, batching and caches
- Agentic engineering and training distillation and fine-tuning
- Speech modeling models we built from scratch
- Pioneering the LLM revolution our work before ChatGPT
Sources
- Read less, solve more
- Closed-loop routing
- Evaluation framework on GitHub
- Distilling step-by-step
- Contextual retrieval and reranking: Anthropic study
- Prompt compression: arXiv 2403.12968
- Prompt compression: arXiv 2607.15516
- Compaction that keeps the cache: arXiv 2606.17016
- Compaction that keeps the cache: Context editing docs
- Prompt caching: Explicit caching docs
- Prompt caching: Automatic caching docs
- Cache-aware agent loops: arXiv 2601.06007
- Batch and flex tiers: Batch processing docs
- Batch and flex tiers: Flex processing docs
- Routing, cascades, semantic cache: arXiv 2305.05176
- Routing, cascades, semantic cache: GPTCache repository
- Effort and reasoning controls: Effort docs
- Prompt and harness discipline: arXiv 2608.01347
- Structured outputs: Structured outputs docs
- Fine-tuning on your ground truth: Supervised fine-tuning docs
- Quantization and prefix cache: arXiv 2306.00978
- Quantization and prefix cache: vLLM prefix caching docs
- Speculative decoding: arXiv 2211.17192
- Speculative decoding: arXiv 2608.24004
Published 2026.09.03. Updated 2026.09.04.