Primer 15 May 2026

Tokens A working primer — what a token is, how it's priced, and where the margin lives.

Date
15 May 2026
Type
Primer
Topic
Token Economics
Sources
21

A token is the sub-word unit a language model reads and writes; this primer covers how it's priced, what's commoditizing versus defensible, and where margin lives on the deflation curve.

0. Audience + anchor question

For a smart-finance reader orienting to AI inference token economics as pre-call material. The anchor question: what is a token, how is it priced, what's commoditizing vs. defensible, and where does margin live? After reading, you should be able to read a vendor pricing page, an inference earnings disclosure, or an agentic-workload cost analysis and place each number against the resource it stresses and the deflation curve it sits on.


1. What a token is

A token is a sub-word fragment of text — the actual unit that a language model reads in and writes out. Words, punctuation, and spaces are not the model's natural unit; tokens are. In English, one token averages about 0.75 words, or roughly 4 characters1. Short common words like "the" or "and" usually map to a single token. Longer or rarer words split into multiple pieces — the word "encoding" might be split into "encod" + "ing"2.

The splitter is called a tokenizer, and each model family ships its own. That matters: token counts are not directly comparable across providers. Anthropic explicitly flags that "Opus 4.7 uses a new tokenizer compared to previous models … this new tokenizer may use up to 35% more tokens for the same fixed text"1. So a per-million-token price quote means slightly different amounts of text from one model family to the next.

2. How tokens are counted

"Counting tokens" means: hand a string of text to the tokenizer, get back the list of pieces it produces, and count them. Anthropic, OpenAI, and Google all publish token-counting tools and API endpoints that do exactly this. For example, sending the message "Hello, Claude" with a one-line system prompt to Claude Opus 4.7 is billed as 14 input tokens3 — more than the two visible words, because the system prompt and chat-format scaffolding are tokenized too.

Two separate things get called "counting":

3. Input vs. output tokens

Every API call has two sides:

They are priced separately because they cost different amounts to produce on the underlying hardware. The input pass is called "prefill" and processes the whole prompt in parallel on the GPU — compute-bound. The output is "decode" and generates one token at a time, each step waiting on memory bandwidth to stream the model's weights — memory-bound and serial4. The practical consequence: output tokens are roughly 3–10× more expensive than input tokens at every major provider — visible in the rate cards below.

4. Are tokens "data" or "compute"?

Both. A token is a piece of data — a tiny string fragment — but every token, in or out, costs one forward pass through the model. Token throughput is the unit that links data flow to compute consumption: more tokens means more matrix-multiplies on a GPU, which means more electricity, more chip-hours, more revenue for the provider.

What "compute" actually is, for any individual LLM call, lives almost entirely inside the GPU — not the CPU. NVIDIA's own inference-engineering write-up puts it bluntly: during prefill the workload "effectively saturates GPU utilization," and during decode "the speed at which the data … is transferred to the GPU from memory dominates the latency, not how fast the computation actually happens"5. The CPU is a side player for inference (it runs the request scheduler, the tokenizer, and — in an agent loop — the bits between LLM calls). The inter-GPU network matters most for training, and for inference only when a model is too big to fit on a single GPU and has to be sharded across several. So when we talk about the price of a token, we are really talking about how it stresses one of four resources inside the GPU, anchored here on an H100 SXM:

Not every accelerator uses HBM. Cerebras's wafer-scale WSE-3 puts 44 GB of on-die SRAM — on-die static RAM, memory built into the same silicon as the compute units, much faster than HBM but much smaller — directly on the wafer10, delivering ~21 PB/s of on-die bandwidth (roughly 6,300× the H100's 3.35 TB/s HBM3) but only ~150 GB/s of off-wafer I/O11. The architecture trades model size and inter-chip bandwidth for raw streaming speed — a different point on the same throughput-vs-interactivity tradeoff covered in §5.

Same GPU, different bottleneck depending on which side of the request you're on. Prefill (input) is compute-bound — the math units do most of the work; the H100's 1,979 FP16 TFLOPS (sparse; dense ≈ 989) is the relevant ceiling. Decode (output) is memory-bandwidth-bound — for every output token, the entire model's weights have to be streamed from HBM through the math units, and the 3.35 TB/s bandwidth ceiling sets the speed. This is the underlying reason output tokens cost ~3–10× more than input tokens at the rate cards in §5 below: the decoder is the bottleneck.

Now agentic workloads. An agent step is a normal LLM call running on the same GPU — agents don't shift work off the GPU, they multiply both the volume of calls and the memory footprint per call. Two effects on per-token economics: (i) every additional turn in the conversation grows the KV-cache — the model's running scratchpad of "what I've already looked at" — which NVIDIA's inference guide notes grows "linearly with batch size and sequence length" and "can have a large memory footprint"5, so longer contexts and multi-step loops consume more of the GPU's 80 / 141 / 180 GB of HBM; (ii) an agent task is many sequential LLM calls, so total GPU-hours per task runs hundreds to thousands of times higher than a single chatbot reply (Stanford's measurement is in §8). At the cluster level the picture also shifts — Microsoft's Fairwater AI campus pairs the dense GPU building with a separate CPU-and-storage building including "millions of CPU cores for operational compute tasks"12 (independently corroborated by Glenn Lockwood13), and AMD/Intel/Meta IR disclosures all flag agentic-driven CPU pull-through for orchestration, retrieval, KV-cache management, and tool-execution. Per-token economics are GPU-led; per-cluster capex pulls CPU back in as a meaningful slice — covered in depth in the agentic AI primer §4.

The pricing model in §5 doesn't try to reflect any of this directly. Providers quote a flat $/MTok within a SKU; the only built-in asymmetry is the input/output split, which is what captures the prefill-vs-decode cost gap. The closest thing to "pricing the resource mix" is Google's long-context surcharge on Gemini 2.5 Pro: prompts above 200K tokens are billed at 2× on input and 1.5× on output (input $1.25→$2.50, output $10.00→$15.00)14. That surcharge is essentially a tax on KV-cache pressure — long contexts consume disproportionately more HBM per call, and the provider passes that back through the rate card.

5. How tokens are priced

Pricing is quoted in dollars per million tokens ($/MTok), separately for input and output. Below is a snapshot of frontier and commodity tiers from the three largest API providers, May 2026 (all figures verified on each vendor's pricing page on 2026-05-18):

ProviderModelInput ($/MTok)Output ($/MTok)Source
AnthropicClaude Opus 4.7 (frontier)$5.00$25.00Anthropic pricing1
AnthropicClaude Sonnet 4.6$3.00$15.00Anthropic pricing1
AnthropicClaude Haiku 4.5$1.00$5.00Anthropic pricing1
OpenAIGPT-5.5 (flagship)$5.00$30.00OpenAI pricing15
OpenAIGPT-5.4$2.50$15.00OpenAI pricing15
OpenAIGPT-5.4-nano$0.20$1.25OpenAI pricing15
GoogleGemini 2.5 Pro (≤200K ctx)$1.25$10.00Gemini pricing14
GoogleGemini 2.5 Flash$0.30$2.50Gemini pricing14

Two structural levers cut these rates substantially:

There's also a third pricing axis beyond input/output and frontier-vs-commodity: speed tier within a single model. Anthropic sells a Fast Mode on Opus 4.6 and 4.7 at $30 input / $150 output per MTok — 6× the standard $5/$25 rate1 — for roughly 2× the measured interactivity. SemiAnalysis, an AI-infrastructure research firm, disclosed that "80% of our AI spend (which peaked at $10M annualized) was on Opus 4.6 fast" in April 202611 — that's a single-firm data point, not a market-wide claim, but it shows real willingness to pay a steep premium for speed at a given intelligence level. Mechanically, faster service means the provider dedicates more GPU resources to fewer concurrent requests — less batching, more KV-cache headroom per user, lower decode-bandwidth contention — so the same $5/MTok Opus weights, served at higher tokens-per-second-per-user, costs 6× more. For workloads where latency matters (live chat, agentic loops), the effective $/MTok can sit well above the rate-card headline.

6. Why tokens are the unit at all

Tokens are the natural unit because they are what the model literally consumes and produces, and compute scales linearly per token — one forward pass per output token. Alternative units (characters, words, API calls) don't track cost cleanly: a 10-word answer and a 10-paragraph answer cost wildly different amounts; the token count tracks the difference exactly.

7. The deflation curve — bimodal

Token economics has two simultaneous price patterns that look contradictory but aren't:

SemiAnalysis goes further on the frontier side: in agentic workloads, sticker pricing understates a different dynamic — the realized blended rate on Opus 4.7 agentic tasks lands around $0.99/MTok (90%+ cache hits at $0.50/MTok, 300:1 input-to-output) while Anthropic's introduced premium SKUs (Opus Fast at 6×, Mythos at 5× regular Opus pricing) that buyers pay willingly because productivity gains exceed the cost — implying the market-clearing token price for frontier-quality work has moved up, not down. See the SemiAnalysis counter-thesis.

8. The agentic multiplier

"Agentic" AI systems — autonomous multi-step workflows where the model uses tools, browses, writes and runs code, and chains its own reasoning — consume orders of magnitude more tokens per task than a single chatbot reply. Each step in the agent's loop is itself an LLM call, and each step's output becomes the next step's input, so token counts compound. The Stanford Digital Economy Lab's May 2026 study of agentic coding workloads (Brynjolfsson, Pentland, Pei) found agentic tasks "consuming 1000x more tokens than code reasoning and code chat" — and input tokens dominate the spend, because the agent re-reads the full conversation history on every step19.

That per-task multiplier shows up in the aggregate. NVIDIA CEO Jensen Huang, at Morgan Stanley TMT (March 2026) and Milken (May 2026), framed the industry-level consequence: "computing scale, which is proportional to token usage, has grown 1,000-fold in just the past two years"20 (reporting on the Morgan Stanley fireside chat). (Morgan Stanley's own write-up of the same fireside chat21 frames the same dynamic with a different anchor — "Agentic AI can consume 1 million times more tokens than a standard generative prompt" — but does not carry the specific verbatim "1,000-fold in two years" wording; SE Daily remains the workable citation for that exact quote.)

The two trends in section 7 plus the multiplier here are why total token spending grows even when per-token prices fall: volume is growing faster than price is declining. That is the entire story of token economics in one sentence.

Footnotes

  1. Anthropic — Pricing · https://platform.claude.com/docs/en/about-claude/pricing
  2. OpenAI — tiktoken (BPE tokenizer reference) · https://github.com/openai/tiktoken
  3. Anthropic — Token counting documentation · https://platform.claude.com/docs/en/build-with-claude/token-counting
  4. Hugging Face engineering blog — Prefill and decode for concurrent requests · https://huggingface.co/blog/tngtech/llm-performance-prefill-decode-concurrent-requests
  5. NVIDIA Developer Blog — Mastering LLM Techniques: Inference Optimization · https://developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/
  6. NVIDIA H100 Tensor Core GPU — product page · https://www.nvidia.com/en-us/data-center/h100/
  7. NVIDIA H200 Tensor Core GPU — product page · https://www.nvidia.com/en-us/data-center/h200/
  8. NVIDIA DGX B200 — product page · https://www.nvidia.com/en-us/data-center/dgx-b200/
  9. NVIDIA NVLink and NVLink Switch — product page · https://www.nvidia.com/en-us/data-center/nvlink/
  10. Cerebras Systems — "Cerebras Announces Third Generation Wafer Scale Engine" (press release, March 2024) · https://www.cerebras.ai/press-release/cerebras-announces-third-generation-wafer-scale-engine
  11. SemiAnalysis — "Cerebras — Faster Tokens Please" · https://newsletter.semianalysis.com/p/cerebras-faster-tokens-please
  12. Microsoft Source — "From Wisconsin to Atlanta, Microsoft connects datacenters to build its first AI superfactory" (Nov 12, 2025) · https://news.microsoft.com/source/features/ai/from-wisconsin-to-atlanta-microsoft-connects-datacenters-to-build-its-first-ai-superfactory/
  13. Glenn Lockwood — "Microsoft Fairwater: A behind-the-curtain peek at the design of an AI datacenter" (hpc.social) · https://glennklockwood.com/garden/systems/fairwater
  14. Google — Gemini API pricing · https://ai.google.dev/gemini-api/docs/pricing
  15. OpenAI — API pricing · https://developers.openai.com/api/docs/pricing
  16. Andreessen Horowitz — Welcome to LLMflation · https://a16z.com/llmflation-llm-inference-cost/
  17. deeplearning.ai (The Batch) — Falling LLM Token Prices · https://www.deeplearning.ai/the-batch/falling-llm-token-prices-and-what-they-mean-for-ai-companies/
  18. NBER WP 34608 — Demirer, Fradkin, Tadelis, Peng, "The Emerging Market for Intelligence" (Dec 2025) · https://www.nber.org/papers/w34608
  19. Stanford Digital Economy Lab — "How are AI agents spending your tokens?" (Brynjolfsson, Pentland, Pei, May 2026) · https://digitaleconomy.stanford.edu/news/how-are-ai-agents-spending-your-tokens/
  20. Seoul Economic Daily — "US-China 'Token Factory' War Intensifies in AI Race" (May 2026, reporting on Huang at Morgan Stanley TMT and Milken) · https://en.sedaily.com/finance/2026/05/08/us-china-token-factory-war-intensifies-in-ai-race
  21. Morgan Stanley — "NVIDIA's Jensen Huang on Compute as a New Economic Engine" (TMT Conference write-up, Mar 17, 2026) · https://www.morganstanley.com/insights/articles/nvidia-jensen-huang-compute-new-economic-engine-tmt-2026