Token accounting records input and output units using the actual model's tokenizer. A tokenizer maps text to the model's discrete units; character counts are not reliable substitutes. Include cached-token categories and retries when the runtime exposes them. An application's visible answer can be short while repeated prompts consume substantial input tokens.
A cost estimate multiplies usage by explicitly dated price assumptions. If hypothetical input costs two currency units per million tokens and output costs six, then one thousand input tokens and one hundred output tokens cost (1000×2 + 100×6)/1,000,000, or 0.0026 units. This is an arithmetic example, not a current provider quote. Requests, storage, network transfer, and minimum charges may add other terms.
Local execution has no per-token invoice by default, but it still consumes processor time, memory, energy, and operator effort. Record hardware, runtime, quantization, context length, and concurrency before comparing runs. Peak memory is the maximum observed usage during the measured interval; final resident memory is only a snapshot. A model fixture proves neither real token consumption nor actual model resource demand.