GPT-3.5-class inference cost $20 per million tokens in late 2022. Today the same capability costs around $0.07. That is a 280x collapse in under two years, and every AI demo you've seen recently leans on that number to justify the idea that intelligent automation is now practically free. The hype is not wrong, exactly - but it cuts out exactly where it matters: when you move from a chatbot to an agent.
The price of a token fell. The number of tokens per task exploded.
Why agentic AI inference costs so much more than a chat turn
A chatbot handles one request with one model call. An agentic workflow - where a model reasons iteratively, calls external tools, verifies outputs, and self-corrects - can trigger 10 to 20 model calls for a single user-initiated task. That is not a quirk of bad architecture; it is the nature of the work.
The deeper problem is that models are stateless. An agent resends its earlier context with each new call. Every tool result gets appended, then the whole accumulated conversation ships with the next request. Those extra tokens are billed as input on the next turn. A five-step agent with 500-token tool outputs adds 2,500 input tokens to the conversation before the final answer is even generated.
Gartner's March 2026 analysis found that agentic models require between 5 and 30 times more tokens per task than a standard chatbot. You can derive an intuitive number from a concrete example. A simple fraud-detection flow - look up transaction history, check account risk score, compare similar cases, generate a response - ran around 13,500 tokens across five steps. A single chat turn runs closer to 800. Anthropic's own usage data from its multi-agent research system showed agents using about four times more tokens than chat; multi-agent setups used about fifteen times more.
Enterprise AI inference now represents 85% of total AI budgets, and agentic workflows consume 5 to 30 times more tokens per task than a standard chatbot query. The per-token cost of intelligence has dropped 98% since early 2024, yet enterprise AI bills are still rising. The math is counterintuitive until you model it task by task rather than token by token.
How open-weight models actually change the equation
Frontier models currently list at roughly $2 to $10 per million input tokens and $10 to $50 per million output tokens, while capable small and open-weight models run from $0.03 to $1.50 on input. That spread is real and large.
DeepSeek R1, for instance, costs $0.55 per million input tokens - 4.5x cheaper than GPT-4o at $2.50 per million. On output, R1 at $2.19 per million is 4.6x cheaper than GPT-4o at $10.00. Benchmark-wise, R1 outperforms GPT-4o on MMLU (90.8% vs 85.7%), MMLU Pro (84% vs 74.68%), and GPQA (71.5% vs 46%).
That looks like an obvious swap. It mostly is - for text-heavy reasoning tasks. The gap narrows in a few specific spots.
| Factor | Open-weight (via inference provider) | Closed frontier API |
|---|---|---|
| Input cost | $0.03-$1.50/M tokens | $2-$10/M tokens |
| Reliability / uptime SLA | Varies by provider | Vendor-committed |
| Tool use / function calling | Improving fast; some gaps remain | Mature, well-documented |
| Multimodal (images, audio) | Limited in most open models | Strong (GPT-4o, Gemini) |
| Fine-tuning | Full weight access | Prompt engineering only |
| Self-host break-even | ~10-30M tokens/day | No fixed cost; spikes with volume |
| Time to production | Days (inference API) or weeks (self-host) | Minutes (API key) |
On average, open-weight models cost only 15.66% of the price of closed models, making closed models approximately 6x more expensive. And yet even after controlling for price and benchmark performance, open models receive 63% to 88% less usage than comparable closed models. The authors identified numerous cases where closed models are both more expensive and lower-performing than available open alternatives, yet users continue to choose them.
Part of that is inertia, part is the genuine cost of switching. The GPUs, the inference engineers, the observability stack, and the on-call rotation are not free. A self-hosted model running at 15% GPU utilization can easily cost more per token than a frontier API.
The crossover where self-hosting beats closed API cost lands somewhere between 10M and 30M tokens/day, depending on model size, utilization, and your input/output ratio.
For most teams using agents in Slack or similar tools, the right open-weight move is the managed inference provider route - Together AI, Groq, Fireworks - not standing up your own cluster. Third-party inference providers offer open-weight model access via API at prices typically 3-10x lower than comparable closed models. You get the cost benefit without the platform debt.
Prompt caching is the lever most teams haven't pulled
This is where the non-obvious saving actually lives. Prompt caching delivers substantial and consistent cost savings across all providers. Cost savings range from 41% to 80% across providers.
The mechanic: when your system prompt, tool definitions, and conversation history stay identical across calls, the provider can skip recomputing the attention for that prefix and bill it at a fraction of the normal input rate. On Anthropic's platform, cached input tokens are billed at 10% of the standard input token price - a 90% reduction. On OpenAI, automatic prefix caching bills cached tokens at 50%. Cache reads on Claude Fable 5.1 are billed at $0.25 per million tokens against a $10 base - a 97.5% reduction.
On real agent trajectories using mid-tier models from Anthropic, OpenAI, and Google, prompt caching cut token cost by 49-80%.
The trap is easy to fall into. Injecting something like "Today is March 6, 2026" into a system prompt invalidates the cache every day.
One team enabled prompt caching on a RAG endpoint with 60,000 tokens of system prompt and reference docs - and processing 50,000 documents per month cost $8,000 with caching versus $45,000 without, saving 82%.
For agentic workloads where the same system prompt, tool definitions, and conversation history accumulate across dozens of API calls, naively ignoring caching mechanics leaves 40-90% of input token costs on the table.
What the cost curve actually means for teams building AI features
The 10x-per-year drop in inference pricing is not a gift that arrives automatically. It is a gift you have to claim by picking the right model for the job, turning on caching, and metering your loops.
The number that matters is cost per task completed, not the pricing rate per million tokens. A model that is 5x more expensive per token but completes a task in one pass rather than three is cheaper on the actual work. A model that is 5x cheaper but loops three times is not.
The teams paying the least per unit of real work right now have three things in common: they routed different task types to different model tiers (a heavy reasoner for hard tasks, a cheap model for lookups), they turned on prompt caching for any agent with a stable system prompt, and they picked a model based on task-level cost - not headline price per million tokens.
A teammate like Beagle is designed exactly around this: short, targeted tool calls with stable context rather than open-ended reasoning loops, which keeps the per-task token footprint predictable and small.
AI inference cost for agents: common questions
How much does running an AI agent actually cost?
A simple chatbot conversation (1 model call, ~1,500 input tokens, ~500 output tokens) costs around $0.003. An agent workflow (6 model calls, ~48,000 total input tokens, ~6,000 total output tokens) costs around $0.063
- roughly 20x more. At scale, those differences determine whether a feature is profitable.
Why are agentic AI inference costs rising even as token prices fall?
A simple chatbot query triggers one inference call, but an agentic workflow can trigger 10 to 20 model calls for a single user-initiated task. Falling per-token prices reduce each call's cost, but more calls and larger context windows push total task cost back up. The per-token price dropped faster than the per-task token volume grew.
Is DeepSeek R1 worth using instead of GPT-4o to cut inference costs?
DeepSeek R1 costs $0.55 per million input tokens against GPT-4o's $2.50 - 4.5x cheaper on input - and $2.19 versus $10.00 on output. On reasoning-heavy tasks like math and coding, R1 matches or beats GPT-4o on benchmarks. It lacks multimodal support and reliable function calling in some providers. For text-based agent tasks at volume, it is a credible swap.
What is prompt caching and how much does it save?
Prompt caching reuses previously computed attention states for repeated context prefixes, billing those tokens at a fraction of the standard rate. Savings range from 41% to 80% across providers. The catch: any change to the cached portion - including a date stamp or dynamic variable injected into the system prompt - invalidates the cache and resets savings to zero.
At what scale does self-hosting an open-weight model beat the closed API price?
The crossover where self-hosting beats closed API cost lands somewhere between 10M and 30M tokens/day, depending on model size, utilization, and your input/output ratio. Below that threshold, a managed inference provider like Together AI or Groq usually delivers open-weight pricing without the GPU operations overhead.