Token
Everyone says AI pricing is based on tokens. What is a token, and how does it relate to what I type?
Everyone says AI pricing is based on tokens. What is a token, and how does it relate to what I type?
usage = input + outputThis illustrates how chunks relate; it is not an exact Token result for any specific model.
Split the text: The model breaks a sentence into text, punctuation, or code pieces using its own tokenizer.
Read and write: It reads input pieces and produces output pieces one at a time.
Count both sides: Both what you send and what the model returns count toward usage.
Report input, output, and cached tokens for the current model, including system rules, history, files, and tool results in input. Do not convert directly from character count; explain context usage and the cost basis.