TokenAtlas
AI Economics

Token pricing & AI economics, explained.

Plain-English guides on tokens, inference, embeddings, RAG, and AI unit economics — for the people actually shipping the things. Vendor comparisons live on /compare; live calculators live on /calculators.

Token pricing, in one paragraph

Every modern LLM is billed per token. A token is roughly four characters or three-quarters of a word in English. Providers publish two prices per model — input ($/1M tokens) and output ($/1M tokens) — and the output price is typically 3–5× higher because generation is sequential and GPU-bound. The cost of a single request is (input_tokens × input_price + output_tokens × output_price) / 1,000,000. Sounds simple; in production it isn't.

Why AI bills surprise teams

Three reasons keep recurring. First, output tokens dominate the bill once you ship features that reason or write, but most engineers estimate from prompt size. Second, retrieval-augmented generation silently injects thousands of tokens of context on every call. Third, agentic workflows multiply tokens by the number of tool-calling rounds — a five-step agent costs roughly five times a single chat turn at the same model. Forecast in expected tokens per session, not requests per second.

The real economics of inference

Frontier models (GPT-class, Claude Sonnet/Opus, Gemini Pro) price for reasoning quality. Mid-tier models (GPT-mini, Claude Haiku, Gemini Flash) price for throughput. Open-weights hosted endpoints (Llama, DeepSeek, Mistral) price for floor cost. The right architectural move is rarely 'pick the cheapest model' — it's routing: cheap models for the 80% of low-complexity calls, frontier models for the 20% that need them. A well-routed product typically lands 40–70% below a single-model baseline.

RAG, embeddings, and the cost of memory

Embeddings are cheap to compute and cheap to store, but every retrieval call costs LLM input tokens. A 10K-document corpus with 2K-token chunks and top-5 retrieval injects roughly 10K input tokens per query — often more than the user's prompt. Vector databases add a small per-query fee on top. The lever is chunk size and retrieval depth, not the embedding model.

Unit economics for AI products

A defensible AI product needs gross margin north of 60% at steady-state usage. Calculate it as (price − COGS) / price, where COGS = average tokens per user-month × blended model price + vector storage + observability. If you're below 40%, the fix is almost always model routing, prompt compression, or response caching — not negotiating with the provider.

Guides & resources

Frequently asked questions

What is a token in AI pricing?

A token is the unit LLM providers bill on — roughly 4 characters or 0.75 words of English text. Both the prompt you send (input tokens) and the model's reply (output tokens) count, and output tokens are usually 3–5× more expensive than input tokens.

Why do output tokens cost more than input tokens?

Generation is sequential and GPU-bound: each output token requires a forward pass through the model. Input tokens are processed in parallel during the prefill phase, which is far cheaper per token than autoregressive decoding.

What is AI FinOps?

AI FinOps is the discipline of managing, forecasting, and optimizing the cost of AI infrastructure — primarily LLM inference, embeddings, vector storage, and fine-tuning. It applies cloud-FinOps principles (visibility, allocation, optimization) to token-based economics.

How do I estimate the cost of a RAG application?

Add four line items: (1) embedding cost per document chunk indexed, (2) vector-store storage and query cost, (3) LLM input tokens = prompt + retrieved chunks, (4) LLM output tokens. Output tokens almost always dominate the bill in production.

How accurate are AI pricing calculators?

Calculator accuracy depends on whether the model catalog is current, whether cached input tokens are priced separately, and whether reasoning tokens (o-series, Claude extended thinking) are accounted for. TokenAtlas keeps its model catalog synced and exposes every assumption.

Related