There is a specific moment, somewhere around week three of running your first always-on agent, when the invoice arrives and you sit down a little heavier in your chair. Mine was a $340 month for what I thought was a side project. The demo cost pennies. The daemon cost rent.

The problem is not that agents are expensive. It is that the pricing models we all learned on — flat monthly subscriptions — were designed for humans typing questions. Agents do not type questions. They loop.
Why your $20 plan dies the moment you add an agent
Subscription plans are built around a human workday: a few dozen conversations, some file uploads, a rate limit you will never feel. An agent doing autonomous work burns through that cap before lunch. A single research task with 40 tool calls looks, from the API's point of view, like 40 people chatting at once.
So you do what everyone does: you switch to metered API billing. That is where the contradiction bites. Subscriptions hide cost; metering reveals it. And what it reveals is ugly, because almost nobody understands what an agent actually spends tokens on.

Where the tokens actually go
After auditing my own cost logs across several agent projects, the bill breaks down in a way that surprises most builders:
- Re-sent context. LLM APIs are stateless. Every step of an agent loop re-sends the entire conversation. By step 30, you have paid for steps 1 through 29 thirty times.
- Reasoning tokens. The invisible thinking that reasoning models do before answering is billed like output. You never see it, but you pay for it.
- Tool output bloat. One web scrape can dump 15,000 tokens into context. If the loop runs 20 more steps, that scrape gets re-billed 20 times.
- Retries. Malformed JSON, timeouts, hallucinated tool arguments — every failed call still costs money.
- Orchestration overhead. Planner, worker, critic: in multi-agent setups, each agent re-reads the thread from its own perspective.
In my logs, input tokens routinely account for more than 80% of spend. The model's clever output is the cheap part. The re-reading is the expensive part.
A month of invoices, dissected
Here is real math from two agents I ran last quarter, using a mid-tier frontier model at roughly $3 per million input tokens.
Agent 1: the inbox watcher
A triage agent that checked a shared inbox every five minutes. That is 288 runs a day, each sending about 4,000 tokens of system prompt and mailbox state. Around 1.15 million input tokens daily just to be told, most of the time, that there was nothing new.
At full price: roughly $3.50 a day, about $105 a month, for an agent that did real work maybe 5% of the time. With prompt caching — where repeated context reads cost a fraction of the list price — the same agent dropped to around $20 a month. Same code, same behavior. The difference was purely architectural.
Agent 2: the nightly researcher
A deep-research agent that ran once a night: 40 tool calls, growing context, a long final report. Each run consumed around 1.2 million input tokens plus a chunk of output. Call it $4 to $6 per run, $130 to $180 a month for one agent doing one useful thing per day.
Neither agent was wasteful by hobbyist standards. Both were badly inefficient by any engineering standard. That gap is the whole story of 2026.
Idle is not free
Running 24/7 does not mean the agent works 24/7. It means you pay for it to be available 24/7. Cron-based heartbeats, health checks, and polling loops all spend tokens to conclude, again, that nothing changed. The fix is boring and effective: trigger agents from events — a new email, a webhook, a changed file — instead of waking them on a schedule to ask whether anything happened.
The architecture I expect to win: small model routing, big model fallback
The single most important shift I see coming is not a smarter frontier model. It is a routing layer sitting in front of your agents.
The pattern is simple. A cheap classifier — or even a rules engine — looks at each step and asks: does this need a frontier model? Formatting a date, extracting a field, classifying an email, summarizing a page: these are small-model jobs, and small models cost roughly $0.15 to $0.60 per million tokens. Planning a multi-step task, judging ambiguity, handling an unusual edge case: escalate to the big model.
Run the math and the blended cost falls by 5 to 10 times, because in a typical agent pipeline the majority of steps are mechanical. My own research agent, rebuilt this way, now sends most extraction and summarization steps to a small model and only calls the frontier model for planning and final synthesis. The output quality did not drop in any way I could measure. The bill did.
Routing works best alongside three quieter techniques:
- Prompt caching. Keep system prompts stable so cache hits compound. Moving a single line above the cache boundary can quietly double your costs.
- Batch endpoints. Non-urgent jobs — nightly reports, bulk enrichment — get discounted pricing in exchange for slower turnaround.
- Context trimming. Summarize tool outputs before they enter the conversation. Never let a raw web page ride along for 20 more steps.
A cost checklist you can apply this week
- Tag every API call with the agent name and task type. If you cannot attribute cost, you cannot reduce it.
- Set hard token budgets per run and per day. When an agent hits the ceiling, it should stop, not quietly eat your budget.
- Replace cron heartbeats with event triggers wherever possible.
- Route mechanically: small model first, escalate on low confidence or failure.
- Summarize and truncate tool outputs at the boundary.
- Review the bill weekly and set an anomaly alert. In my experience, a sudden spend spike is almost never demand — it is a retry loop with a bug.
The bill is the product
The teams I see winning with agents in 2026 are not the ones with the biggest models or the longest prompts. They are the ones who treat tokens like a cloud bill: measured per service, routed to the cheapest capable model, audited on a schedule. Subscriptions made us lazy about cost because cost was invisible. Metering removes the invisibility, and routing removes the pain. Build for both from day one, and the hidden token bill stays exactly where it belongs — a line item in your spreadsheet, not a surprise in your inbox.