erabot.ai
ProductPricingCase studiesEvalBlogDocs
Book a demo

Blog

Practical guides on reducing AI costs and optimizing token usage.

2026-11-17

The default model is the expensive one: five products, one bug

The default model in five open-source AI products was the priciest option available. One called its most expensive model DEFAULT_MINI_MODEL. What the audit found, and why defaults rot.

7 min readmodel-selectionllm-coststeardown
2026-11-10

Claude Haiku vs Sonnet: when the cheaper model is safe

Haiku costs a fraction of Sonnet per token, so the swap looks free. When we tested 31 model swaps on real code, our own quality gate rejected 12 of them. Here is how to tell which kind yours is.

6 min readmodel-selectionllm-costsanalysis
2026-11-10

GPT-4o vs 4o-mini: which tasks survive the downgrade

The price gap between a frontier model and its mini sibling is wide enough to change your bill. The question is which of your calls can take the swap. A task-shape checklist, and the call we found running on a model 65x too expensive.

6 min readmodel-selectionllm-costsguide
2026-11-10

How much does the Claude API cost? What we modeled across 15 real products

Per-token prices are published, but they do not tell you what your bill will be. We audited 15 open-source AI products and modeled where their LLM spend comes from.

6 min readpricingllm-costsanalysis
2026-11-10

How much does Claude Code cost? What the number depends on

Claude Code bills either through a subscription plan or per token on the API. Which one is cheaper depends on session length, tool surface and cache hit rate, not on how much you code.

6 min readcoding-agentsllm-costsguide
2026-11-10

Why is Claude Code so expensive? The mechanics, and what we measured

Claude Code costs grow faster than your usage because every turn re-reads the whole conversation. Here is the arithmetic, plus what we found auditing six open-source coding agents.

7 min readcoding-agentsllm-costsanalysis
2026-11-03

How to reduce Claude Code token usage — and the bill it doesn't fix

Practical ways to reduce Claude Code token usage: fresh sessions, disconnecting MCP servers, compacting early, right-sizing the model. Then the bill those habits never touch — the LLM calls inside the app you ship.

6 min readcoding-agentsllm-costsguide
2026-10-28

LLM token compression: what the 90% savings claims actually measure

LLM token compression is advertised at 85–97% savings. Read the fine print and almost every one of those figures is measured on JSON, logs, command output or tool schemas — not source code, where the credible numbers land nearer 20–55%.

6 min readcompressionllm-costslandscape
2026-10-21

The Jevons trap: why cheaper tokens made your AI bill bigger

Per-token prices keep falling, yet enterprise AI bills keep climbing. That is the Jevons paradox at work — and it is why 'just wait for prices to drop' is not a cost strategy. The only lever that survives a price war is cutting waste in the code.

6 min readmarketllm-costsjevons-paradox
2026-10-21

LLM cost tools 2026: observability vs code-time vs runtime routers

A map of the LLM cost tooling market as a five-rung ladder — REPORT, ALERT, RECOMMEND, APPLY, VERIFY — and the honest finding underneath it: no single tool combines code-time static detection with a shadow-verified cheaper-model swap. The capability is still fragmented.

7 min readlandscapellm-coststools
2026-10-21

Provider prompt caching in 2026: the discounts, and the fine print

Every major provider now discounts the repeated front of your prompt — but the rates, the defaults, and whether you touch code at all differ by provider. Here is what OpenAI, Gemini, and Anthropic actually offer, the one code change that matters, and when caching quietly costs you money instead of saving it.

6 min readprompt-cachingllm-costsguide
2026-10-21

Tool-schema bloat: the 70-97% token cut hiding in your function definitions

Every tool you give an agent ships its full JSON schema and docs as input tokens — on every turn, cached or not. One NAACL 2025 paper cut tool documentation by 70-97%. Here is how to spot the bloat in your code and trim it honestly.

6 min readllm-costsfunction-callingagents
2026-10-19

How to reduce LLM token costs: the 2026 solutions landscape

The techniques that actually cut your LLM bill, and an honest comparison of the tool categories that help — observability, gateways and routers, eval platforms, FinOps dashboards, and code-level cost analysis — with where each one fits and what it misses.

9 min readguidellm-costscomparison
2026-10-18

Can a cheaper model do the job? How to actually prove it

"Just use a cheaper model" is the most common LLM cost advice and the most dangerous, because almost nobody verifies it properly. Why a green check on ten examples proves nothing — and how to run a non-inferiority check that holds up.

10 min readmodel-selectionevalsllm-costsshadow-testing
2026-10-18

LLM API pricing (October 2026): every model's cost per million tokens

A verified reference table of LLM API list prices — input, output, and cached-input per 1M tokens — for the current models from OpenAI, Anthropic, Google, xAI, DeepSeek, Mistral, Cohere and more, checked against each provider's own pricing page.

6 min readpricingllm-costsreference
2026-10-18

LLM Cost Optimization: the complete guide

Your LLM bill is not a mystery — it is a handful of code patterns that repeat. The six that drive almost every overspend, how to estimate the damage honestly, and how to prove a fix holds quality before you ship it.

12 min readguidellm-costsoptimization
2026-10-18

The caching trap: when a cost fix silently breaks your token counters

Prompt caching is usually the single biggest LLM cost win — but turning it on changes what input_tokens means, and any code reading that number for a budget, context, or truncation decision can break silently. A real incident, and the fix.

9 min readcachingtokensllm-costswar-story
2026-10-18

The harness is the lever: why the model matters less than how you call it

The biggest factor in whether a cheaper model works is not the model — it is the harness around it: the prompt, the examples, the retrieval, the decomposition. That reframes cost right-sizing from a model-picking problem into a re-engineering one.

8 min readmodel-selectionevalsllm-costs
2026-10-17

MetaGPT ships you a config that defaults to gpt-4-turbo — for a tool that runs a whole AI software team

Third in the series. The cost decision in MetaGPT lives in the example config everyone copies: gpt-4-turbo and ada-002, both legacy. For a framework that runs a simulated team, that default multiplies across every agent.

4 min readteardownconfigllm-costs
2026-10-16

We scanned gpt-researcher expecting waste. It's actually well-built — here's what good looks like

Second in the series. We pointed erabot at a top autonomous research agent expecting a mess and were mostly wrong — its model tiering is right. The one candidate, and why resolving config is the whole game.

4 min readteardownragllm-costs
2026-10-15

We ran erabot on OpenAI's own Swarm — it extracts names with a model that costs ~65× too much

OpenAI's experimental Swarm framework extracts names from a sentence with gpt-4-turbo-preview — a legacy model whose input costs ~65× more than gpt-4o-mini. A one-word fix, and the #1 leak we find.

4 min readteardownmodel-selectionllm-costs
2026-07-25

Inside the shadow harness: how we prove a cost fix won't degrade quality

The cheapest advice in AI cost tooling is "use a smaller model." It is also the most dangerous. Before erabot recommends a model swap, it replays your real inputs through both models and lets a judge decide. On our own audits, it rejected 12 of 31 proposed swaps.

7 min readshadow-testingqualitymodel-selectionagentic
2026-07-25

Observability tells you what you spent. It can't tell you how to spend less.

Every AI cost tool on the market operates at runtime — it reports the bill after the code ships. A 2026 review of the category admitted the gap out loud: no tool does code-level, pre-deployment analysis. That gap is the whole product.

6 min readobservabilityfinopspositioningllm-costs
2026-07-25

The 62% problem: agentic AI bills are mostly re-sent context

Stanford research finds re-sent context accounts for 62% of agent inference bills. That waste does not live in your model choice — it lives in your code, and it compounds on every step of every agent run. Here is where it hides and how to find it.

7 min readagenticllm-costscachingcontext
2026-07-24

Case study: two structural LLM-cost bugs in a production RAG platform

We pointed erabot’s agentic auditor at the chat path of a widely-used open-source enterprise RAG platform. It read 18 files, cleared two false positives, and surfaced two cross-file cost bugs a line-level linter can’t see: a frontier model doing bulk summarization, and a prompt cache silently busted by message ordering.

7 min readcase-studyllm-costsragprompt-cachingagentic-audit
2026-07-24

Our eval said F1 = 1.00. It was lying, and we published the retraction.

How we caught our own circular evaluation, rebuilt the ground truth independently, and engineered detection recall from 0.42 to 0.73 with measurements instead of vibes — including a detection pass we built, measured at P=0.14, and deleted.

7 min readevalsdetectionengineering-honestyresearch
2026-07-24

The verbosity trap: when the cheaper model costs 29% more

We replayed real traffic through model downgrades across five task classes. Blanket "use a cheaper model" advice was wrong for three of them, and on two the cheap model was more expensive. Data inside.

6 min readmodel-selectionroutingllm-costsresearch
2026-07-24

We audited 15 open-source AI products for LLM cost waste. All 58 patches applied cleanly.

LibreChat, Dify, Flowise, MetaGPT, OpenHands, Onyx and more, run through the erabot agentic audit: 29 root-cause findings, 58 machine-generated patches, and a quality gate that rejected 12 of our own agent's suggestions.

8 min readauditagenticllm-costsresearch
2026-04-22

Open-sourcing erabot: the CLI + scanner for LLM cost waste

We open-sourced the tree-sitter detector and Typer CLI behind erabot.ai under MIT. Install it with pip, run it locally, read the code on GitHub. Here is what we kept open, what stays closed, and why.

9 min readopen-sourceclillm-coststree-sitter
2026-03-26

The Hidden Cost of Long Context Windows: Why Bigger Isn't Always Better

Long context windows from Claude and GPT-4 seem like a superpower — until you see the bill. Learn why context length is the biggest hidden cost driver in AI applications.

7 min readcontext-windowsclaude-apicost-optimization
EB
erabot.ai

Scan any codebase. See exactly what you spend on AI. Get one-click fixes.

No spam. Only launch updates and cost optimization tips.

Product

  • Product
  • CLI
  • Pricing
  • Migration audit
  • Changelog
  • Docs

Resources

  • Example audit
  • Blog
  • Case studies
  • Eval

Company

  • Security
  • Privacy
  • Terms
  • Support

© 2026 erabot.ai. All rights reserved.