← All tools
EDTOOLKITS GUIDES

Token Cost: Count Repeated History as Well as the New Reply

By Team Edtoolkits · AI learning

Compare one-call pricing with a growing chat and keep generation time separate from total latency.

Use the guide alongside the working tool.

Open Tokens, Limits and Cost →

Explore the lesson

Watch a meter tick as tokens go in and come out.

Type a prompt, enter your own prices and slide the chat length.

Flip the memory card and answer the quick check.

A comparison to try

Set your own input and output rates, then compare one call with several chat turns while holding message sizes fixed. Inspect total input tokens, since earlier conversation is included again on later turns.

Read the result

Per-million pricing treats input and output separately. The chat calculation includes repeated history, so input cost can grow faster than the number of turns. Output time is output tokens divided by the chosen generation speed.

A mistake to avoid

Counts use a teaching tokenizer, not your provider's exact encoding. Prices are user inputs in any currency. Timing omits prompt processing and network delay; cache discounts, truncated history, tools and other billing rules require separate adjustments.

Teaching model and privacy

Token counts use a simple teaching tokeniser, so real counts will differ. There are no built-in prices: type your own in any currency. Time ignores prompt reading and network delay. Nothing leaves your browser.

Ready to apply this workflow?

Try Tokens, Limits and Cost →

Explore a related workflow

All practical guides →

Found unclear instructions or an unexpected result? Contact Team Edtoolkits.

YOUR BROWSER, YOUR CHOICE