AI Tools

LLM Tokens Explained: Why Every AI Request Costs Money

What an LLM token is, how tokenizers split your text, why input and output tokens are priced differently, and how to measure and cut AI costs.

4 min read·Updated 2026-04-03

Every AI product you use bills you in tokens, even when the interface hides it behind a flat monthly fee. Tokens set your rate limits, decide whether a document fits in the context window, and quietly determine whether a workflow is cheap or ruinous at scale. This guide explains what a token actually is, how text gets split, why pricing works the way it does, and how to measure your prompts before they cost you.

What a token actually is

A token is the unit a language model reads and writes — neither a character nor a word, but a chunk of text the model's tokenizer was trained to split on. In plain English prose, one token runs close to 75 characters, or roughly four letters, so 750 words of ordinary writing lands near 1,000 tokens. The ratio drifts badly with content type: technical names, URLs, code, non-English scripts and emoji all fragment into far more tokens than the same number of letters in simple English.

How tokenizers split text

Tokenizers learn frequent word pieces from training data. Common short words survive whole; rare or unusual strings get cut into fragments. Look at how typical input breaks down:

Text sampleApproximate tokensWhy
The cat sat.4Common words stay intact
internationalization5 to 7Rare word splits into learned pieces
example.com/blog-post10+Punctuation and slashes fragment
Un seul mot en français8+Lower coverage means more splits
{"key": "value"}7Braces, quotes and colon each cost

This is why a prompt full of links and JSON can outweigh a paragraph of prose, and why trimming a verbose instruction often saves less than deleting one pasted URL.

Why tokens decide your bill

Providers price input and output tokens separately, and output usually costs two to five times more. You pay for everything the model reads — system instructions, conversation history, retrieved documents — plus everything it generates. Two consequences follow. First, a chat that has been running for an hour costs far more per message than a fresh session, because the whole history is resent every turn. Second, a model that rambles is not just wasting your time, it is charging you for every extra sentence.

Input tokens versus output tokens

Treat them as different budgets. Input tokens scale with how much context you provide; output tokens scale with how verbose the answer is. A typical customer support automation sending 2,000 tokens of context and receiving 400 back is dominated by input, so trimming the template matters most. A summarizer reading 500 and writing 1,500 is output-heavy, so constraining length matters most. Measure both sides before you optimize the wrong one.

  1. Count a fresh prompt alone to get your baseline input cost.
  2. Count the reply to see the output side.
  3. Repeat after five turns to see how history inflates the input.
  4. Multiply by your expected monthly calls to find the real number.

Measure before you ship

Word counts are a useful first estimate but a poor final one — the Word Counter tells you length, not tokenization. Paste the exact prompt into the LLM Token Counter to get the real figure, including any boilerplate you add automatically. Do this once for each template in your workflow; the surprises are usually in the system prompt nobody has read in a year.

Reusable structure also saves tokens. Generate your standard instruction set with the AI Prompt Generator and keep it tight, rather than each team member pasting their own variation of the same twelve sentences.

Practical ways to cut token spend

  • Start a new conversation when the topic changes; history is resent every turn.
  • Replace pasted boilerplate with a reference to a short template you control.
  • Strip URLs, base64 blobs and formatting artifacts before sending.
  • Ask for a maximum length in the prompt to cap output tokens directly.
  • Cache the static prefix of your system prompt where the provider supports it.
  • Use a smaller model for classification and routing, reserving big models for hard steps.

Frequently asked questions

How many tokens are in a page of text? A double-spaced page of roughly 500 words is about 650 to 750 tokens in English prose. Code, tables and non-English text can push that well past 1,000 for the same visual length.

Are longer prompts always more expensive? They cost more per call, but a prompt that prevents three retries is cheaper than a short one that fails twice. Optimize for total tokens per successful result, not tokens per attempt.

Does token count affect answer quality? Indirectly, yes. Prompts that crowd the context window push older information out, and models handle their attention differently when a request is cluttered with irrelevant text. Clean, counted prompts perform better as well as costing less.

Tools used in this guide

Related guides