Glossary
Token (and context window)
A token is the unit of text a language model reads and writes, usually a word or part of a word, and the context window is the largest number of tokens the model can hold in one request, prompt and answer together.
Everything about a model is counted in tokens: the price a hosted API charges, the budget a gateway enforces, the throughput a GPU reaches, the energy a token costs. Input tokens, the prompt and the retrieved passages, and output tokens, the answer, are counted separately, and output tokens cost more to produce.
The context window sets how much an agent can hold at once: the instructions, the conversation so far, the documents retrieved and the tool results. A longer window costs more per call, which is why retrieval exists to bring in only what is relevant.
Why it matters when you run AI on infrastructure you own
On your own GPUs no vendor charges per token, so the cost of a token is GPU time and electricity. Tokens still have to be counted, because that is how capacity is shared between teams, how chargeback is worked out and how energy and carbon per token are reported.
Where Katonic does this
- The AI Gateway: metering per team
- Know what it costs: budgets, spend per request and the GPU-hours ledger
Related terms
- Chargeback (LLM budgets)
Chargeback is metering each department’s use of AI models through a gateway, setting a budget and a cap for each, and billing the cost back monthly.
- Energy per token
Energy per token is the electricity a GPU uses to generate one output token from a served model, usually reported per million output tokens.
- Retrieval-augmented generation (RAG)
Retrieval-augmented generation (RAG) retrieves the relevant passages from your own documents and gives them to the model, so its answer is grounded.