↓ Skip to main content

What Actually Drives the Cost of an AI Application

·1235 words·6 mins·Mathusuthan

One of the primary reasons many AI applications don’t survive in production : most teams price an AI feature on the back of an envelope: requests per month times average tokens times a blended model rate. But when the bill arrives, it can shock sometimes.

The usual suspect is traffic, or a frontier model rate card. Almost always, the real culprit is architecture. Per-token API prices have fallen steeply over the past two years, yet production cloud bills keep surprising teams because list price is only one term in a much larger equation. Different AI workloads work and cost differently.

The Six Key AI Archetypes
#

In Six Key AI Archetypes for AI Workloads, a nine-slide playbook by Eric Lam, enterprise AI systems are mapped along two axes—how much operational autonomy a workload has, and how many tokens it moves. It has six distinct archetypes, each paired with one primary architectural lever to reduce costs.

Classifying the archetypes by Autonomy vs Scale
#

Most back-of-the-envelope token estimates lump AI workloads into a single average call size. The deck separates them along two dimensions:

  • Operational autonomy (four tiers): from stateless single-pass APIs (Tier 1) and human-in-the-loop drafting or deep RAG (Tier 2 / 2+), up to stateful chat sessions and bounded tool-calling agents (Tier 3 / 3+), and finally continuous multi-agent swarms (Tier 4).
  • Token scale (five logarithmic bands): spanning lightweight 0.5k–1.5k-token triage calls (Band 1) up to swarms at 1.5M–10M+ tokens per developer per day (Band 5).

Select an archetype to see its profile.

Tier 4 Fully agentic swarms
Tier 3 Bounded agents, stateful sessions
Tier 2 Human in the loop, deep RAG
Tier 1 Single-pass, stateless API
Band 1 0.5k–1.5k
Band 2 2k–7k
Band 3 10k–40k+
Band 4 15k–150k+
Band 5 1.5M–10M+ per day

1. Classification, extraction and routing

Autonomy
Tier 1: single-pass API
Token scale
Band 1 (0.5k–1.5k tokens)
Typical input
500–1,500 tokens
Typical output
10–100 tokens (20:1 to 50:1 in to out)
Example uses
Omnichannel support, PII and compliance masking, catalog tagging
Architectural lever
Small model, strict JSON schema, batching
NovaMart build
Intake and Catalog Gate

2. Generative synthesis and drafting

Autonomy
Tier 2: human in the loop
Token scale
Band 2 (2k–7k tokens)
Typical input
1,500–4,000 tokens
Typical output
800–3,000+ tokens (1:1 to 1:2 in to out)
Example uses
Collateral drafting, transcript synthesis, regulatory reporting
Architectural lever
Section templates and length bounds
NovaMart build
Executive and Compliance Readout Studio

3. Multi-turn conversational assistants

Autonomy
Tier 3: stateful session
Token scale
Band 3 (10k–40k+ tokens per session)
Typical input
1k–25k+ tokens, growing each turn
Typical output
150–600 tokens per turn
Example uses
IT and HR service desk, consumer dialogue, field operations assistant
Architectural lever
Prefix context caching plus sliding-window summaries
NovaMart build
IT and HR Unified Service Desk

4. Multi-document RAG and deep ingestion

Autonomy
Tier 2+: human in the loop
Token scale
Band 4, left half (15k–100k+ tokens)
Typical input
15k–100k+ tokens
Typical output
400–1,500 tokens (20:1 to 100:1 in to out)
Example uses
Legal due diligence, grounding repositories, financial 10-K analysis
Architectural lever
Hybrid retrieval (reranking and chunk filtering) paired with context caching
NovaMart build
Supplier Deal-Room and Statutory Due Diligence

5. Autonomous process orchestration

Autonomy
Tier 3+: bounded agent
Token scale
Band 4, right half (25k–150k+ tokens)
Typical input
25k–150k+ tokens
Typical output
1,500–8,000 tokens, in iterative tool loops
Example uses
Invoice reconciliation, claims adjudication, supply chain dispatch
Architectural lever
Max-step budgets, deterministic guardrails, small-model routing
NovaMart build
3-Way Invoice Reconciliation Agent

6. Multi-agent swarms and auto engineering

Autonomy
Tier 4: agent swarm
Token scale
Band 5 (1.5M–10M+ tokens per developer per day)
Typical input
100k–1M+ tokens
Typical output
10k–50k+ tokens
Example uses
Autonomous feature development, security threat hunting, CI/CD failure triage
Architectural lever
Isolated agent contexts, cached repo prefix, cost per verified outcome
NovaMart build
Checkout and Pricing CI Self-Healing Swarm

Adapted from slide 2 of Eric Lam's deck; apart from the NovaMart builds, the profiles are the deck's own figures. Columns are bands, not a measured scale: Band 5 counts tokens per developer per day, the others tokens per call, session or task.

Crucially, context size is not autonomy. Reading 54,000 tokens of supplier contracts to answer a due-diligence question (Archetype 4) is high-context work, yet a human stays in the loop. Reconciling an invoice (Archetype 5) opens with under 9,000 tokens in the lab, yet in a free-choice loop the agent picks its own ERP queries, re-reads what it has fetched on every turn (42,000–77,000 prompt tokens per invoice), and commits the payment voucher itself.

The table lists the deck’s own figures, not lab measurements:

#ArchetypeAutonomy tierDeck’s token profileArchitectural lever
1Classification, extraction and routingTier 1: single-pass API500–1,500 in, 10–100 out (20:1 to 50:1)Small model, strict JSON schema, batching (claimed >80% cost cut)
2Generative synthesis and draftingTier 2: human in the loop1,500–4,000 in, 800–3,000+ out (1:1 to 1:2)Section templates and length bounds to tame 3–5x output pricing
3Multi-turn conversational assistantsTier 3: stateful session1k–25k+ in, 150–600 out/turn (10k–40k+ per session)Prefix context caching plus sliding-window summaries
4Multi-document RAG and deep ingestionTier 2+: human in the loop15k–100k+ in, 400–1,500 out (20:1 to 100:1)Hybrid search with reranking and chunk filtering, paired with context caching
5Autonomous process orchestrationTier 3+: bounded agent25k–150k+ in, 1,500–8,000 out (iterative loops)Max-step budgets, deterministic guardrails, small-model routing
6Multi-agent swarms and auto engineeringTier 4: agent swarm100k–1M+ in, 10k–50k+ out (1.5M–10M+ tok/day)Isolated agent contexts, cached repo prefix, cost per verified outcome

The three FinOps rules
#

  1. Right-size single-pass calls and output (Archetypes 1 & 2):
  • Use small schema-constrained models for stateless triage and bounded section templates for long-form drafting.
  • Claimed impact: 60–80% lower unit inference cost.
  1. Cache session and document context (Archetypes 3 & 4):
  • Combine prefix caching with sliding-window summaries in chat, and pair hybrid reranking with context caching in RAG.
  • Claimed impact: eliminates quadratic context bloat.
  1. Govern agent loops and track verified outcomes (Archetypes 5 & 6):
  • cap loop steps, isolate sub-agent contexts, and judge swarms by cost per outcome.
  • Claimed impact: predictable unit economics at scale.

Prototyping the six archetypes
#

Some of the levers are well known best practices and others not so much. And instead of just trusting what was in the slides, I decide to prototype all the six different archetypes using a fictional use case - NovaMart AI Workload Archetypes Lab: a full-stack FinOps testbed modelled on a large omnichannel marketplace (NovaMart Enterprise: 12M SKUs, 45,000 sellers, $2.4B GMV).

DECK CLAIMS TESTED
26 across 6 workloads
9 supported, 15 partly supported, 1 not supported, 1 not testable
LIVE LAB RUNS
420 recorded runs
144 triage, 48 drafting, 12 chat, 12 document Q&A, 144 invoice, 60 incident
MEASURED TOKEN SPAN
1.5k to 218k
Median tokens per unit, from one triaged item to one swarm incident
COST CUT WITH THE LEVER
47% to 87%
Same model, cold cache. Exception: Archetype 5 on Haiku cost 32% more. Some quality measures fell in Archetypes 2, 3 and 4

In the upcoming posts, we will look at each of the archetype, real-life costing example and accuracy with and without the levers and interactive widgets to price your own application.