AI CompendiumA public chart of the language
Home / Tokens & Context / Input Tokens
Tokens & Context

Input Tokens

also called Prompt tokens

What you send. Cheaper, but repeated on every request.

Definition

The tokens in the request — system prompt, history, retrieved documents, user message. Billed at the input rate, typically several times cheaper than output.

In a chat app, input tokens grow with every turn because the whole history is resent. This is why long conversations get expensive, and why prefix caching exists.

Input tokens are where the cheap wins live, because they are repeated on every request in a conversation. A system prompt that is resent on turn twenty has been paid for twenty times — which is exactly the arithmetic that makes caching and prompt discipline worth the effort.

How people use it
Watching costs climb over a long support thread.
"Ninety percent of this bill is input. We are resending the whole transcript every message."
Worked example

The instruction preamble paid for a thousand times

A chat product resends a 4,000-token instruction block on every turn.

Confirm it sits at a stable prefix, then let caching handle it. The quality does not change at all; the input line on the invoice does. This is the least invasive optimisation available to most applications.

Sources
  • docsPrompt caching ↗OpenAI API docs · 2026

    Caching reuses the model’s key-value state for a matching prompt prefix. Explains why reordering your system prompt throws away the cache.

  • docsPricing ↗OpenAI API docs · 2026

    The current per-token and per-service prices. The right kind of source for token economics — and the reason no cost figure should be hard-coded without an access date.

Related terms