Back to the editorial

Explainer Artificial intelligence 21 September 2026 3 min read By GERDOVA

What a token costs: adding AI features to a product without losing control of the bill

Before adding a language-model feature, it helps to know what a token is and what multiplies it. Most of the bill is context sent again and again.

What a token is

Language models do not read words. They read tokens: pieces of text that are often a word, sometimes part of one, sometimes punctuation. OpenAI’s documentation gives the rule of thumb that a token is roughly four characters of English text, or about three quarters of a word, and notes that other languages tokenise differently [1]. Providers bill per token, usually at one price for the tokens sent in (the prompt and its context) and a higher price for the tokens the model produces.

Prices change often and differ by model and provider, so this note deliberately quotes none. The official pricing page of whichever provider is being considered, with the date it was read, is the only figure worth putting in a budget.

Fig. 1 · One conversation sent to a model again with every message, its context growing.

What multiplies the cost

The surprise in most first invoices is not the price per token. It is how many tokens were sent. Every request to a model is stateless: the model remembers nothing between calls, so the application sends the whole context each time. A feature that keeps a conversation going sends the conversation again with every message. A feature that answers questions about a document sends the document, or large parts of it, with every question. A long system prompt is paid for on every call. Ten users each asking ten questions about a fifty-page document is a very different number from the demo in which one person asked one.

Decisions that bound it

Limit the context: send the paragraphs that matter, retrieved by a search step, rather than the whole document. Reuse what was processed: cache summaries or embeddings so the same text is not paid for twice. Batch: where the task is not interactive, group requests. Cap per user and per period, with a visible limit, so one account cannot consume the month’s budget. And decide, feature by feature, when a plain rule or a lookup does the job better than a model. A model is a poor way to add two numbers and an expensive way to classify something a regular expression would catch.

Cost is also a security question

The OWASP Top 10 for LLM Applications 2025 lists unbounded consumption as LLM10: an application that allows unlimited requests or unlimited context exposes itself to denial of service and to what the project calls denial of wallet [2]. The same limits that keep the invoice predictable — per-user caps, context limits, request budgets — are the mitigation OWASP describes. Designing them in from the start is cheaper than adding them after the first abusive month.

Measure from day one

Record, for every call, how many tokens were sent and received and which feature and which user caused it. Then the unit cost is available: cost per conversation, per document question, per generated summary. The decision of whether a feature is worth having becomes a comparison between that number and what the feature is for, instead of a feeling about the invoice.

Whether a product should have an AI feature at all is a product question, not a technology one. Knowing what a token costs, and what multiplies it, makes it a question that can be answered.

Multiplier Why it grows Bounding decision
Context re-sent Every call is stateless Retrieve only relevant passages
Conversation history Whole thread sent per message Summarise and truncate
System prompt Paid on every call Keep it short; cache where supported
Users × requests No per-user limit Visible caps per user and period
Model for everything Rules replaced by calls Use a rule when a rule works
Figure · Multipliers and the decision that bounds each. Illustrative.

Sources

  1. [1] What are tokens and how to count them?. OpenAI Help Center, 2025. https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them Accessed on 2026-10-19
  2. [2] OWASP Top 10 for LLM Applications 2025. OWASP GenAI Security Project, 2025. https://genai.owasp.org/llm-top-10/ Accessed on 2026-10-19

This article is analysis with cited sources, not advice for a specific organization.

After reading «What a token costs: adding AI features to a product without losing control of the bill»

Planning an AI feature for your product? Let’s size it first.

In 30 minutes we map what each call would send, what multiplies it and which limits would bound the cost per interaction.

  • Context
  • Cache
  • Per-user caps
  • Cost per interaction

30 minutes
with the team

Monday to Friday, 8:00 to 20:00 · Central Mexico time

Related articles

  1. 19 October 2026 · 3 min read Structured systems or vibe-coded apps: where the risk actually sits An application generated in an afternoon and a system you can run for years look the same in a demo. The difference lives in the decisions nobody asked the model to make. Consulting perspective

  2. 28 September 2026 · 3 min read The cloud bill is a design decision: cost, usage and who is accountable A cloud invoice is not a bill to be paid. It is a set of design decisions that were never written down, arriving monthly. Consulting perspective