Fundamentals
Tokens, words, and AI input size
Use the right measure for your model input, your writing limit, and your output review.
Match the unit to the question
A reader estimates a document in pages or words. A model receives tokens, whose counts depend on the model and input format. An exact word count supports a writing constraint, while token counting can help plan API input size. Provider documentation explains what token-counting interfaces accept and how context windows apply. If the job contains several files or tool definitions, the visible prose may be only part of the model’s input. 1 2
Separate capacity from efficiency
A long source packet can fit and still make a workflow harder to interpret. Include the information needed for the next decision and keep references that may be needed later accessible. Prompt caching is another concept. OpenAI’s documentation describes how repeated prompt material can affect processing, which is different from changing the context a request needs to fit. 3
Make the test match your purpose
For a 150-word public summary, count the final text the way the publication does. For a tool-building test, estimate the whole intended request, including the model-visible instructions and source materials. Try a representative worst case. If it is too large, trim duplicate text or retrieve smaller passages, then verify the task still has enough evidence for its key conclusion.
Measure a representative attachment after you apply any compression or preprocessing that the real application performs, since that step determines what the request contains.