← All posts

Cheaper tokens, bigger bills

12 min read
aifinopscloud

Two numbers have been circulating together recently, and on the surface, they seem completely contradictory.

The first number shows how rapidly the cost of Artificial Intelligence (AI) model capability is falling. Research group Epoch AI found that the price for a fixed level of Large Language Model (LLM) performance plummets between 9× and 900× every year, depending on the benchmark. For instance, answering doctoral-level science questions at the level of OpenAI’s GPT-4 (Generative Pre-trained Transformer 4) has become roughly 40 times cheaper per year.

The second number comes from IT research firm Gartner (reported by VentureBeat in October 2026): the computing cost per autonomous agent workflow will surge more than fivefold through 2028—even as individual tokens become cheaper. Gartner calls this the “inference paradox” (where inference simply refers to running a trained model to generate an answer).

Both statements are entirely true. The fundamental reason is that the price of an individual token is not the price of completing an entire task, and autonomous agents completely transform how work gets done.

A chatbot answer of 2,000 tokens at 10 dollars per million costs 2 cents. An agent doing the same task with 30,000 tokens at 5 dollars per million costs 15 cents: token price halved, cost per task up 7.5 times. $0.02 $0.15 Chatbot answer 2,000 tokens × $10 / M Agent, same task 30,000 tokens × $5 / M token price × 0.5 tokens per task × 15 cost per task × 7.5
Illustrative calculation: Even when token prices drop by half, an agent that needs 15 times more tokens to complete a task increases overall task cost by 7.5 times.

The Simple Math Behind Your AI Bill

At its heart, any Artificial Intelligence billing invoice is determined by three variables multiplied together:

Total Bill = Price per Token × Tokens per Task × Number of Tasks

Of these three variables, only the first one is declining—and only under a specific condition that people often overlook.

Component Trend What Drives It Real-World Data
Price per token (at a fixed capability level) Dropping rapidly Better hardware, smaller distilled models, and fierce market competition Epoch AI: prices fall 9×–900× per year; 40× per year for GPT-4-level science answers
Price per token (for the model you actually deploy) Mostly flat Teams reinvest price savings into newer, more capable frontier models Gartner analysis (reported via VentureBeat)
Tokens required per task Rising sharply Autonomous agents reason, plan, query external tools, re-read long context, and retry failures Gartner: agents consume 5–30× more tokens than a standard chatbot for the same task. Routing to a reasoning model costs at least 5× more.
Total number of tasks automated Rising steadily As individual model calls become cheaper, companies automate many more workflows No reliable published figure yet; the trend is widely observed in practice but not yet measured

The massive price reductions you see in tech headlines apply primarily to yesterday’s capabilities. In practice, almost nobody builds today’s flagship AI agent on yesterday’s older model. Teams naturally upgrade to the latest frontier models. Consequently, the actual price per token you pay barely changes, while the number of tokens required to complete a multi-step task multiplies by tenfold or more.

How Organizations Are Managing AI Costs Today

The Stack Overflow 2026 Developer Survey asked developers how their organizations tackle rising AI token costs. The varied responses show that no single approach has emerged as a clear winner:

Bar chart of reported AI cost controls: limits on usage 38 percent, reviewed spending data 28 percent, different models per job 27 percent, limits on who uses AI 25 percent, and 21 percent say their organisation spends more instead. Limits on usage 38% Reviewed spending data 28% Different models per job 27% Limits on who uses AI 25% Spending more instead 21%
Percentage of respondents reporting each cost control at their organization, from the Stack Overflow 2026 Developer Survey. The survey does not publish the number of respondents for these items, so treat the shares as directional.

Industry research across recent months reveals a consistent pattern:

Industry Finding Percentage Research Source
Organizations managing AI spend within Financial Operations (FinOps) 31% (2024) → 63% (2025) → 98% (2026) FinOps Foundation: State of FinOps
Respondents not confident they can tie AI spend to business outcomes their Chief Financial Officer (CFO) accepts 39% State of Tokenomics (Release Candidate 1.0, 472 responses)
Organizations evaluating or actively using an AI model router 86% State of Tokenomics (Release Candidate 1.0)
Enterprises using an agent orchestration platform with no automatic stop on agent token spend 21% VentureBeat (VB) Pulse Survey, September (109 respondents)
Teams automatically routing high-volume, routine tasks to lower-cost models 31% VentureBeat (VB) Pulse Survey, September

Almost every enterprise now tracks AI expenditures under their Financial Operations (FinOps) umbrella. Yet, far fewer teams can demonstrate what that money actually achieved in business value. Perhaps most critically, one in five enterprises running agents on an orchestration platform has no automatic circuit-breaker to stop an infinite execution loop from racking up enormous costs.

Why Every Cost Control Only Fixes One Part of the Problem

When you evaluate cost controls alongside our core formula, the root challenge becomes clear: each control only restricts one specific variable while leaving the others unguarded. That is why relying on a single safeguard never works.

Cost Control Mechanism What It Constrains What It Leaves Exposed
Model Routing and Tiering Price per token Execution volume: a budget model looping 40 times still incurs significant costs
Per-Task Token or Step Ceilings Tokens per task Task volume: how many independent tasks are launched
User Quotas and Access Limits Total number of tasks Task efficiency: what an individual task is permitted to spend
Spending Reviews and Showback Reports Nothing directly Provides visibility, enabling teams to apply the other three controls
Cloud Provider Hard Budget Caps The entire overall bill Service availability: it halts spending by taking services offline

If you can only implement one control today, start with a per-task token or step budget. A step ceiling is to an autonomous agent loop what a timeout is to a network call. It provides the essential circuit-breaker that 21% of orchestration-platform users currently lack.

Hard Spending Limits: A Trade-Off Between Cost and Uptime

Cloud providers now offer hard spending limits designed to stop charges immediately rather than just sending an alert email. However, Amazon Web Services (AWS) and Google Cloud Platform (GCP) enforce these limits in fundamentally different ways:

Feature / Behavior Amazon Web Services (AWS) Project Spend Limit Google Cloud Platform (GCP) Spend-Cap Budget
Enforcement Scope A single project A single service within a project
Action When Triggered The project is paused and all resources are halted New billable usage for that specific service is paused
What Continues Running Nothing within the project (stored data is preserved) Active in-flight requests, plus compute instances and persistent storage
Recovery Process Manually increase the limit; some services require a manual restart Manually raise or remove the cap, or wait for the next billing cycle
Operational Risk / Gotcha If a project remains paused for 90 days, AWS permanently deletes it Triggers based on gross estimated cost, subject to reporting latency
Availability Status Limited release (requires an AWS Paid Plan account) Public Preview (available since July 2026)

Setting hard spending caps on non-production sandboxes is an easy decision. In March 2026, The Register reported on an independent developer who was hit with $82,314.44 in unauthorized Google Gemini Application Programming Interface (API) charges within 48 hours after a developer key was stolen—where typical monthly spend was roughly $180.

Production environments require a much more nuanced strategy. A hard cap that abruptly pauses a production service is essentially an outage you scheduled yourself. The best practice is to place strict hard caps on experimental sandboxes, while protecting production environments with real-time anomaly alerts paired with granular, per-endpoint kill switches.

Why Measuring “Cost Per Token” Misses the Point

A major hurdle in managing AI finances is that cost data is generated across three disparate levels, none of which reflect the metrics business leaders actually care about.

Provider bill, gateway log and invocation log each feed a join key, which produces cost per outcome such as per assist, per agent action or per case deflected. Provider bill daily $ by principal or tag Gateway log estimated $ by key, team, model Invocation log tokens per request Join key tag or key owner Cost per outcome assist · action · case what the CFO asked for
Connecting three distinct data streams: Cloud provider bills, API gateway logs, and application invocation logs must share a common metadata key to calculate the true cost per business outcome.

Consider where spending data lives:

  1. Cloud Provider Invoices provide daily dollar totals grouped broadly by account, principal, or billing tag.
  2. AI Gateway Logs (from tools like LiteLLM or Cloudflare AI Gateway) record estimated costs broken down by API key, team, and model name.
  3. Application Invocation Logs measure prompt and completion token counts per individual model request, leaving financial calculations to you.

Calculating the true cost per business outcome—such as cost per customer assist, cost per completed agent workflow, or cost per resolved support ticket—requires joining all three data streams using a shared identifier (a “join key”).

Currently, uniting these records is often a manual, fragmented process. It is no surprise that 39% of State of Tokenomics respondents are not confident they can tie their AI spend to an outcome their Chief Financial Officer (CFO) would accept.

Five Practical Rules to Keep AI Agent Costs Under Control

To build a reliable cost-governance strategy, follow these five core principles:

  1. Budget by the task, not just by the token. Give every autonomous agent workflow an explicit ceiling on total tokens or execution steps—the same way every robust network call has a strict timeout.

  2. Route model requests dynamically by default. Direct high-volume, routine subtasks to smaller, cost-effective models that comfortably pass your quality evaluations. Reserve high-cost frontier reasoning models exclusively for the complex steps that truly need them. This directly minimizes the price-per-token factor.

  3. Enforce hard caps on sandboxes, but use anomaly alerts in production. Place automated hard spending limits on developer sandboxes, test environments, and accounts holding API keys. For production systems, configure automated anomaly detection with designated on-call owners and dedicated kill switches.

  4. Standardize your metadata join keys before generating reports. Establish a single, documented tagging schema from the beginning. Ensure this metadata tag is consistently propagated across your API gateway, application logs, and cloud billing identifiers.

  5. Report cost per business outcome as soon as you define one. Tracking cost per token is sufficient during early experimentation. Beyond that stage, it masks the exact factor that causes bills to expand. Transition as quickly as possible to outcome-driven metrics your executive team understands.

The Counter-Productive Trap: When Overly Strict Limits Backfire

When faced with unexpected cost spikes, organizations often overreact by imposing draconian limits: drastically slashing quotas, restricting AI access to a handful of approved users, and placing hard barriers on every workflow.

Unfortunately, this heavy-handed approach frequently triggers the routed-around control. When engineers have urgent deadlines and cannot access approved corporate tools, they simply swipe personal credit cards, expense external API keys, and continue their work in the shadows. The spending does not disappear—it merely escapes corporate oversight and governance.

The true goal is finding balance: guardrails flexible enough that engineers happily stay on the supported path, yet robust enough that an unmonitored agent cannot run up a five-figure cloud bill over a weekend.

Token prices will continue to drop, and that is a tremendous advantage for software engineering. Just keep in mind: cheaper tokens do not automatically translate into smaller bills.

Sources and References