Token-based pricing

Also known as: per-token pricing

On this page 7

Token-based pricing is a usage-based billing model in which a provider of large language models charges for each token processed, usually quoted as a price per million input tokens and a separate, higher price per million output tokens. In AI in business, it is the dominant way that foundation model providers sell API access, and it turns every prompt, retrieved document and generated answer into a measurable unit of cost.

Because a token is a fragment of text rather than a word or a request, the model makes spending proportional to text volume, not to the number of users or seats. This gives buyers fine-grained control and transparency, but it also makes budgets harder to forecast when prompts grow, agents loop or outputs become longer than expected.

How token-based pricing measures usage

Token-based pricing works by counting the tokens produced by the model’s tokenizer on both sides of every call. A tokenizer splits text into subword units; in English, one token corresponds on average to about four characters or three quarters of a word, while code, numbers and many non-Latin scripts usually need more tokens per word.

Each request is billed as the sum of input tokens (system prompt, conversation history, retrieved context, tool definitions and the user message) and output tokens (the generated response, including any hidden reasoning tokens on reasoning models). Providers typically price output three to five times higher than input, because generation runs token by token and occupies accelerator capacity for longer than reading the prompt.

The table below lists the billable token categories that appear on most provider invoices and what drives each of them.

Token categoryWhat it containsTypical price position
Input tokensPrompt, history, context, tool schemasBase rate
Output tokensGenerated text and structured outputSeveral times the input rate
Reasoning tokensInternal thinking on reasoning modelsBilled as output
Cached input tokensRepeated prompt prefixes read from cacheLarge discount on input rate
Cache write tokensPrefixes stored for later reuseSmall premium on some platforms
Batch tokensAsynchronous jobs with delayed resultsOften about half of the standard rate
Billable token categories

Price tiers and modifiers

Token prices are not a single number, because providers apply modifiers by model size, latency and context length. A frontier model can cost one to two orders of magnitude more per token than a small model from the same vendor, which is why model selection is usually the strongest cost lever available to a buyer.

The following table summarizes the common pricing modifiers and the trade-off each one represents.

ModifierHow it changes the priceTrade-off
Model tierLarger models cost more per tokenQuality versus cost
Long contextHigher rate above a context thresholdMore context versus higher spend
Prompt cachingDiscounted reads of repeated prefixesRequires stable prompt structure
Batch processingLower rate for non-urgent jobsResults arrive within hours
Priority or provisioned capacityPremium or reserved throughputCommitment versus guaranteed latency
Fine-tuned modelsTraining fee plus higher inference rateSpecialization versus flexibility
Common pricing modifiers

Enterprise contracts often add committed-use discounts, in which a customer prepays or commits to a spending level in exchange for lower effective rates. These agreements shift part of the forecasting risk from the provider to the buyer.

Comparison with other AI pricing models

Token-based pricing is one of several ways to charge for AI capability, and it sits closest to the infrastructure layer of the AI value chain. Applications built on top of models frequently repackage token costs into simpler units that business buyers find easier to approve.

The comparison below shows how token-based pricing differs from the main alternatives used for AI products.

Pricing modelUnit of chargeMain advantageMain drawback
Token-based pricingInput and output tokensPrecise link to computeVolatile monthly bills
Per-seat subscriptionNamed user per monthPredictable budgetHeavy users subsidized by light users
Per-request pricingAPI call or querySimple to explainIgnores request size
Outcome-based pricingResolved ticket or completed taskAligned with business valueHard to define and audit outcomes
Provisioned throughputReserved capacity per hourStable latency and costPaid even when idle
Compute-hour pricingGPU hours for self-hosted modelsFull control of the stackOperational burden on the buyer
AI pricing models compared

Many AI wrapper products absorb token costs and sell seats, which exposes them to margin compression when their customers become heavy users. This tension explains the growing interest in hybrid plans that combine a seat fee with usage caps or credit allowances.

Estimating and controlling token spend

Token spend is estimated by multiplying average tokens per task by the task volume and the applicable rates, then adding a margin for retries and growth. The formula is simple, but the inputs change quickly: a retrieval step that adds ten document chunks can multiply input tokens several times without any visible change for the user.

The decision table below lists practical levers that AI FinOps teams use to keep inference cost under control.

SituationRecommended leverReason
Long, repeated system promptsEnable prompt cachingCached reads cost a fraction of fresh input
Simple classification or routingRoute to a smaller modelSmall models handle easy tasks at low rates
Nightly document processingUse batch endpointsDelay is acceptable and discounts are large
Verbose answersLimit maximum output tokensOutput is the most expensive category
Large retrieved contextRerank and trim chunksFewer, better chunks cut input volume
Agent loopsSet step and budget limitsPrevents runaway multi-call workflows
Levers for reducing token cost

Effective cost control also depends on per-feature attribution: tagging requests by product, team or customer so that finance can see which use cases justify their spend. Without attribution, token bills tend to appear as one opaque line item that resists optimization.

Limitations and common misconceptions

Token-based pricing is transparent at the level of a single call but opaque at the level of a business process, and several misunderstandings recur in budgeting discussions.

  • Tokens are not words. The same text produces different token counts across tokenizers, so per-token prices from different vendors are not directly comparable.
  • A cheaper rate is not a cheaper task. A model with a lower price that needs more retries, longer prompts or more reasoning tokens can cost more per completed task.
  • Conversation history accumulates. In chat applications, every turn resends prior messages, so input cost grows with conversation length.
  • Prices change often. Providers revise rates frequently, usually downward for older models, so long-term business cases need periodic repricing.
  • Hidden reasoning is billed. Reasoning models may generate thousands of internal tokens that are charged as output but never shown to the user.

For these reasons, mature buyers evaluate models by cost per successful outcome rather than by list price per million tokens, and they track that metric alongside quality and latency.

Put simply

Token-based pricing works like a taxi meter for text. The AI company does not charge a flat monthly fee. It counts the small pieces of text that go in and come out. You pay for both.

Reading your question is cheap. Writing the answer costs more. Short questions and short answers keep the bill small. Long documents and long replies make it grow. The key point is that cost follows volume, so careful design of prompts saves real money.

In practice

A mid-sized insurance company builds a customer support assistant that answers about 40,000 questions per month. Each request includes a fixed system prompt of about 2,000 tokens, roughly 3,000 tokens of retrieved policy text and an answer of about 400 tokens. The first monthly invoice is far higher than the pilot suggested, because the pilot used short test questions and no retrieved context.

The engineering team enables prompt caching for the fixed system prompt, reduces retrieval from ten chunks to four after reranking, routes simple questions to a smaller model and caps answer length. Quality scores stay level in evaluation. The result is a substantially lower cost per resolved question, and the finance team now receives a monthly report that attributes token spend to each support channel.