Token
A small piece of text, often part of a word, that an AI model reads or writes. Providers bill per token, so tokens drive the running cost of every AI step.
What Is a Token
A language model does not read whole words. It splits text into tokens: short pieces that may be a whole word, part of a word, a number or a punctuation mark. A common rule of thumb is that 100 words of English prose come to roughly 130 tokens. The real count depends on the model and the text. Numbers, tables and codes usually take more tokens than plain sentences.
Why it matters to you
Tokens are how AI is billed. Hosted models charge a price per million tokens, with one price for what you send in (input) and a higher one for what the model writes back (output). Every document you process, every instruction and every example you include is paid for on every call.
Tokens also set limits. Each model has a context window, the maximum number of tokens it can take in one request.
A worked cost example (estimate)
This is an illustration with assumed numbers, not a quote. Assume a hosted model priced at $3 per million input tokens and $15 per million output tokens. Check your provider’s current price list, because prices change often.
Reading one two-page supplier invoice into structured data:
- Instructions and two short examples: about 1,500 tokens
- The invoice text: about 1,500 tokens
- The data the model returns: about 400 tokens
Input is 3,000 tokens at $3 per million, or $0.009. Output is 400 tokens at $15 per million, or $0.006. That is about $0.015 per invoice, so roughly $15 for 1,000 invoices a month. Pages sent as images, retries and a second checking call can double or triple that. It is still small next to the staff time each invoice takes by hand.
The same arithmetic shows where cost goes wrong. A 40-page contract is roughly 25,000 tokens. Send the whole contract with each of 20 questions and you pay for about 500,000 input tokens. Retrieve only the relevant pages with RAG and the same 20 questions use a small fraction of that.
Common misconceptions
Token cost is rarely the expensive part of an AI project. Building the workflow, the checks and the review screen is. But a design that resends large documents at every step can turn cents into real money at volume, so ask for a per-document cost estimate before anything is built.
For keeping the bill predictable, see LLM API cost control. Monthly running costs for a full pipeline are on the AI document processing page.