Open navigation menu

The Real Cost of Generative AI in Production

Token prices are the most visible line in a generative AI budget and rarely the decisive one. Production cost is set by architecture, by the people around the model and, if you self-host, by utilization.

By INVISOMOctober 1, 202615 min read

Cheaper tokens, bigger bills

Two facts about generative AI costs look contradictory. The price of a given level of capability has collapsed: Epoch AI measured declines of between 9 and 900 times per year depending on the task. Yet McKinsey's 2026 State of AI survey found that about one in five organizations is limiting its use of AI because of operating costs, including token costs.

Both are true because enterprises do not buy a fixed level of capability, and they do not consume a fixed number of tokens. Each new generation of applications sends more context, runs more steps, calls more tools and wraps more human and automated checking around the model. Price per token falls; tokens per outcome rise; and the costs that are not tokens at all grow with every system put into production.

The thesis of this article: manage generative AI on fully loaded cost per completed outcome, and fix the architecture before negotiating the price. In a typical production system, design choices about context, caching, loops and routing move cost by multiples, while list-price differences between comparable models move it by percentages. And the largest line items are often people: the reviewers who check output and the engineers who keep the system running.

The FinOps Foundation's guidance for AI makes a similar point in its own terms: the basic equation of price times quantity still applies, but AI services are charged inconsistently and in many variants, so unit metrics are essential. This article extends those unit metrics to the business outcome.

What you are actually billed for

All prices in this article are standard list prices from the providers' official pages as of 1 October 2026, in US dollars per million tokens. Enterprise agreements may differ.

A model call is billed on several meters, not one:

  • Input tokens: instructions, retrieved documents, conversation history and tool definitions sent with every call.
  • Output tokens: typically priced at five to six times input. Claude Sonnet 5.5 lists $2 input and $10 output; OpenAI's GPT-6.1 Sol lists $2 and $10; Google's Gemini 3.5 Flash lists $1.50 and $9.00.
  • Cached input: a stable prompt prefix that the provider stores and re-reads at a steep discount.
  • Tool overheads: Anthropic documents that enabling tools adds a system prompt of a few hundred tokens per call on current models; its computer-use toolset adds about 4,500 input tokens and its browser toolset about 6,600, before any screenshots or page content. Server-side web search on the Claude API costs $10 per 1,000 searches on top of tokens.
  • Modifiers: discounts for asynchronous batch processing, and premiums for long context, faster output or guaranteed data location.

Figure 1

Discounts and premiums outweigh the gaps between vendors

Price modifiers on standard per-token list prices, US$ per million tokens

Discounts you have to design for

  • Batch processing

    Anthropic, OpenAI and Google: asynchronous jobs

    −50%
  • Cache read

    Claude Sonnet 5.5: $0.20 vs $2.00 input

    −90%
  • Cache read

    Claude Opus 5.5: $0.20 vs $4.00; GPT-6.1 Sol: $0.10 vs $2.00

    −95%
  • Cache read

    Gemini 3.5 Flash: $0.15 vs $1.50, plus $1 per million tokens per hour storage

    −90%

Premiums you can trigger by accident

  • Long context

    GPT-5.5 above 272K tokens: input $10 vs $5, output $45 vs $30

    2× / 1.5×
  • Long context

    Gemini 3.1 Pro Preview above 200K: input $4 vs $2, output $18 vs $12

    2× / 1.5×
  • Fast output

    Claude Opus 5.5 fast mode: $8 / $40 vs $4 / $20

    2×
  • Cache write

    Claude: 5-minute write 1.25× input; 1-hour write 2×

    1.25–2×
  • Data location

    Claude US-only inference 1.1×; regional endpoints on Bedrock and Google Cloud +10%

    +10%
List prices from Anthropic, OpenAI and Google API pricing pages, as of 1 October 2026. Enterprise agreements may differ. Claude 4.6 and later models carry no long-context premium up to 1M tokens.

Two lessons follow from that table. First, the discounts are larger than the differences between vendors. Batch processing halves the price at all three providers; a cache read costs 10% of the input price on most Claude models, 5% on Opus 5.5 and 5% on GPT-6.1 Sol. Second, the premiums are easy to trigger by accident. Sending more than 272,000 tokens of context to GPT-5.5 doubles its input price; regional endpoints for Claude on Amazon Bedrock and Google Cloud carry a 10% premium.

Token counts themselves are not stable. Anthropic notes that the tokenizer introduced with Claude Opus 4.7 produces roughly 30% more tokens for the same text. And a newer model may finish the same task in fewer steps: Anthropic reports that on its agentic coding tasks, Opus 5.5 matched Opus 5's quality in about half the turns and output tokens, cutting the cost of that workload by 40 to 50% even though list prices fell only 20%. That is vendor material, but the principle is general: compare models on cost per completed task on your own evaluation set, never on price per token.

The multipliers that matter more than list price

Five design choices determine how many tokens each outcome consumes.

Context size. Every call re-sends its instructions, retrieved passages and history. A retrieval step that returns twenty passages when five would do multiplies input cost on every request, indefinitely.

Loop depth. Agents call the model repeatedly, and each step typically re-sends the growing context. Anthropic reported that in its own systems agents used about four times the tokens of chat interactions, and multi-agent systems about fifteen times, and that multi-agent designs only make sense where the value of the task is high enough to pay for them.

Figure 2Illustrative

Each agent step re-sends everything before it

Input tokens per step for a ten-step agent: 8,000-token start, 2,000 tokens added per step

Step 1
8K
Step 2
10K
Step 3
12K
Step 4
14K
Step 5
16K
Step 6
18K
Step 7
20K
Step 8
22K
Step 9
24K
Step 10
26K
Re-sent context (cacheable) New tokens this step

Total input sent

170K

21× a single 8K call

Input cost, no caching

$0.34

170K tokens at $2.00

Input cost, cached prefix

$0.09

About 70% lower

INVISOM illustration. Costs at Claude Sonnet 5.5 list prices as of 1 October 2026: $2 input, $2.50 five-minute cache write, $0.20 cache read per million tokens. Output tokens excluded.

The arithmetic is unforgiving. In the illustration above, a ten-step agent that starts with 8,000 tokens of context and adds 2,000 per step sends 170,000 input tokens in total, more than twenty times a single call. Caching the stable prefix cuts the input cost of that run by about 70%, which is why caching is the first optimization to make in any agentic system.

Retries and failures. Failed tool calls, malformed outputs and timeouts are billed. A 10% retry rate is a 10% surcharge.

Verbosity and reasoning effort. Output tokens cost five to six times as much as input on the price lists above. Asking for structured, concise output, and setting reasoning effort to what the task needs, is a direct cost control.

Model choice per step. Not every step needs the most capable model. Classification, extraction and routing can often run on a small model at a fraction of the price, with the large model reserved for the hard cases.

The costs that are not tokens

A production system carries costs that never appear on a model provider's invoice:

  • Evaluation: running regression suites on every prompt or model change, and sampling production outputs for automated or human grading.
  • Human review: people checking uncertain or high-risk outputs before they reach a customer. Often the largest variable cost in the system.
  • Platform: vector stores, gateways, logging, observability, guardrails and the security controls required by your risk tier.
  • Engineering and operations: the team that maintains prompts, retrieval, integrations and evaluations, handles incidents and re-qualifies the system when models change.
  • Change: migrating to a new model when the old one is retired, which requires re-running evaluations and often re-tuning prompts.

None of these are optional in a governed enterprise system, and all of them should be in the unit-cost model from the first business case.

A worked example: cost per resolved conversation

Consider an illustrative customer-service assistant handling 200,000 conversations a month. Each conversation takes four model calls of about 12,000 input tokens and 600 output tokens. Half of each call's input is a stable 6,000-token prefix of instructions, policies and tool definitions. Prices are list prices as of 1 October 2026; all volumes, rates and salaries are assumptions chosen to show the mechanism.

Figure 3Illustrative

Tokens are under a fifth of the cost per conversation

Fully loaded cost per conversation handled, customer-service assistant, 200,000 conversations a month

  • Engineering and operations44%$0.150
  • Human review29%$0.100
  • Model tokens16%$0.055
  • Platform9%$0.030
  • Retries1%$0.005
  • Automated evaluation<1%$0.001

Per conversation handled

$0.34

Per conversation resolved (70%)

$0.49

INVISOM illustration. Token costs use Claude Haiku 4.5 and Sonnet 5.5 list prices as of 1 October 2026; volumes, review rates, salaries and platform costs are assumptions.
Cost lineAssumptionPer conversation
Model tokensCached prefix; 60% routed to Claude Haiku 4.5, 40% to Claude Sonnet 5.5; small routing call$0.055
Retries10% of token cost$0.005
Automated evaluation10% of conversations graded by Sonnet 5.5 through the Batch API$0.001
Human review5% of conversations reviewed, 4 minutes each at $30 per hour$0.100
Platform$6,000 per month for retrieval, gateway and observability$0.030
Engineering and operationsTwo engineers at $15,000 per month, fully loaded$0.150
Total per conversation handled$0.34
Total per resolved conversation70% of conversations resolved without a human$0.49

Tokens, including retries, are about 18% of the total. Human review and the engineering team are about 73%. Halving the review rate from 5% to 2.5%, by improving the evaluation set and the routing of uncertain cases, would save more than switching every call to a model at half the price.

Note the denominator. Per conversation handled, the system costs $0.34. Per conversation resolved, which is the outcome the business is paying for, it costs $0.49. The comparison that matters is that figure against the fully loaded cost of a resolution today, measured on the same definition. A business case that cannot show both numbers at production volume is, as argued in From AI Experimentation to Enterprise Value, not yet a business case.

Caching, batch and routing: what each actually saves

Applied in sequence to the token line of the same example:

Figure 4Illustrative

Caching and routing halve the token bill without a price negotiation

Model token cost per conversation in the worked example, US$

  1. All calls on Sonnet 5.5, no cachingBaseline
    $0.120
  2. Cache the 6,000-token stable prefix−36%
    $0.077
  3. Route 60% to Haiku 4.5, plus routing call−54% in total
    $0.055

Batch pricing (−50%) does not apply to live conversations, but should apply to every evaluation run and back-office job around them.

INVISOM illustration. Four calls per conversation, 12,000 input and 600 output tokens each. Claude Sonnet 5.5 ($2 / $10, cache read $0.20) and Haiku 4.5 ($1 / $5, cache read $0.10) list prices as of 1 October 2026. Cache writes excluded.
  • Baseline: every call on Claude Sonnet 5.5 with no caching costs $0.120 per conversation in tokens.
  • Prompt caching of the 6,000-token prefix brings it to $0.077, a 36% saving. A cache read costs $0.20 per million tokens against $2 for fresh input. The writes needed to populate the cache are ignored here because, at this volume, the shared prefix is re-used thousands of times per write.
  • Routing 60% of conversations to Claude Haiku 4.5, at half the price of Sonnet 5.5, plus a small classification call, brings it to $0.055, a total saving of 54%.
  • Batch processing does not apply to live conversations, but halves the cost of everything that can wait: evaluation runs, back-office summarization, document classification and nightly enrichment.

The order matters. Caching is nearly free to implement and has no quality risk. Routing requires an evaluation set to prove the small model is good enough for the cases sent to it; without one, it saves money by quietly degrading quality. Neither depends on negotiating a lower price.

Self-hosting is a utilization decision

Running open-weight models on your own GPUs swaps a variable cost for a fixed one. Whether that pays depends almost entirely on how many tokens you can push through the hardware, around the clock, at acceptable quality.

Figure 5Illustrative

Self-hosting competes with your cheapest adequate API, not the flagship

Monthly tokens an 8-GPU node must serve to match the API cost, at about $38,300 a month fixed cost

  • Mid-tier API at list price$4.00 per million (Sonnet 5.5, 3:1 blend)
    9.6 bn3,600 tok/s
  • Same API after caching and routing$1.07 per million (worked example)
    36 bn13,600 tok/s
  • Small API model at list price$0.20 per million (GPT-6 Luna, 3:1 blend)
    190 bn73,000 tok/s

Tokens per second are sustained, 24 hours a day. Only a load test on your model and prompt shapes shows whether a node can deliver them. Idle overnight capacity raises the real cost per token.

INVISOM illustration. Fixed cost: 8 × NVIDIA H100 at Lambda's $3.99 on-demand GPU-hour list price, 730 hours, plus one engineer at $15,000 a month. API prices from Anthropic and OpenAI pricing pages. All as of 1 October 2026. Assumes 100% utilization and equal quality; excludes storage, networking and redundancy.

As a reference point, Lambda lists on-demand NVIDIA H100 capacity at $3.99 per GPU-hour on its 8-GPU instances as of 1 October 2026. An eight-GPU node running all month costs about $23,300. Add one engineer to operate the serving stack, at the same $15,000 a month used above, and the fixed cost is about $38,300 a month before storage, networking, redundancy or evaluation.

The break-even question is how many tokens a month the node must serve to beat the API alternative. The answer depends on which alternative you compare against:

  • Against a mid-tier API model at list price, blended at three input tokens per output token ($4.00 per million for Sonnet 5.5), the node must serve about 9.6 billion tokens a month, a sustained 3,600 tokens per second, every second.
  • Against the effective price in the worked example after caching and routing, about $1.07 per million, the requirement rises to about 36 billion tokens a month, or 13,600 tokens per second.
  • Against a small API model such as OpenAI's GPT-6 Luna, at $0.20 per million blended, it rises to about 190 billion tokens a month, or 73,000 tokens per second.

Whether a given node can sustain those rates, for your model and prompt lengths, is something only a load test will tell you. But the structure of the decision is clear. Self-hosting competes with the cheapest API option that meets your quality bar, after your own optimizations, not with the flagship list price. Traffic that peaks in business hours and idles overnight raises the effective cost per token proportionally.

Fine-tuned and custom models change this arithmetic again, since they add training, re-qualification and often hosting costs of their own; the trade-offs are covered in RAG, Fine-Tuning, Continued Pretraining, or a Custom LLM?.

There are good reasons to self-host that are not about price: data that must stay in a specific jurisdiction, latency, offline operation, or control over model versions. In the Gulf, residency is often the deciding factor. In February 2026 AWS made Claude models available from its UAE and Bahrain Regions through global cross-Region inference, which it says does not store customer data in the destination Region but may process requests elsewhere. Where Saudi or UAE rules, or a regulator's guidance for a sector, require in-country processing, the choice may narrow to in-region endpoints or self-hosting, and the business case should say so plainly rather than present the decision as a cost optimization.

A cost-control checklist

ControlWhat good looks likeOwner
Unit metricFully loaded cost per completed outcome, reported monthlyProduct owner and finance
Budget guardrailsPer-application and per-agent token budgets with alerts and hard limitsPlatform team
Prompt cachingStable prefixes structured for caching; cache hit rate monitoredEngineering
RoutingSmall models for routine steps, proven on an evaluation setEngineering and risk
BatchAll non-interactive workloads on batch pricingEngineering
Context disciplineRetrieval depth and history length tuned and cappedEngineering
Review rateHuman review targeted by risk and confidence, not blanket samplingBusiness owner
Model re-qualificationStanding evaluation set; cost per task compared at each model releasePlatform team
Premium usageLong-context, fast-mode and residency premiums used deliberately and trackedPlatform team and finance

What to do in the next 90 days

  1. Build a unit-cost model for each production AI system, with every line in the worked example above, and agree the outcome definition with the business owner.
  2. Instrument cost per completed outcome and the human review rate, alongside token spend, on a monthly dashboard.
  3. Turn on prompt caching for every system with a stable prefix and monitor the hit rate.
  4. Move non-interactive workloads to batch processing, starting with evaluation and back-office jobs.
  5. Pilot routing on the highest-volume system, using an evaluation set to confirm the smaller model meets the quality bar for the cases routed to it.
  6. Set token budgets and alerts per application and per agent before scaling any agentic system.
  7. Re-run the self-hosting break-even with your own effective prices and a load test before any GPU commitment.

Frequently asked questions

What does it cost to run generative AI in production?

It depends far more on architecture and operations than on token price. In an illustrative customer-service example at list prices as of 1 October 2026, tokens were under a fifth of the fully loaded cost per conversation; human review and engineering were nearly three-quarters.

How much does prompt caching save?

On current price lists a cache read costs a small fraction of fresh input: 10% on most Claude models and 5% on Claude Opus 5.5 and OpenAI's GPT-6.1 Sol. In the worked example, caching a 6,000-token prefix cut token cost by 36%; in a ten-step agent loop, it cut input cost by about 70%.

Why do AI agents cost more than chatbots?

Each step re-sends a growing context, calls tools and may retry. Anthropic reported that agents in its systems used about four times the tokens of chat, and multi-agent systems about fifteen times. Budgets should be set per agent and per task.

When does self-hosting an LLM become cheaper than an API?

Only when sustained utilization is high enough to beat the cheapest API option that meets the quality bar, after caching and routing. For an eight-GPU node, that can mean thousands to tens of thousands of tokens per second around the clock. Residency or latency requirements are often better reasons to self-host than price.

Sources and further reading

Work with INVISOM

Build a unit-cost model for your AI workloads

Start a conversation

Related Insights

Continue the Topic

View all insights

Enterprise AIFramework

Measuring the Value of Enterprise AI

Most AI value claims are not wrong so much as unproven. The fix is to design the measurement before the build: a baseline, a credible comparison group and metrics finance has already agreed to accept.

Jul 7, 2026 · 13 min read

Knowledge IntelligenceComparison

The Enterprise LLM Landscape 2026

At the frontier, the best model changes with the month, the referee and the effort setting. Price and deployment route differ by orders of magnitude. Choose the route and build the evaluation capability; treat the model as a replaceable part.

Oct 1, 2026 · 18 min read

Intelligent AutomationTechnical Deep Dive

Agentic AI in the Enterprise

The hard part of enterprise agents is no longer building one. It is making many of them reliable, affordable and governable, on products that change faster than procurement cycles. That is a control-plane problem before it is a model problem.

Aug 31, 2026 · 12 min read