Skip to content

Context Length

The maximum number of tokens that a model can accept in one call. Together with the context window, it determines how much text fits.

Why It Matters

  • Long documents are truncated at the limit;
  • Cost and speed depend on length;
  • Exceeding the limit causes the model to lose the beginning.

Where It Is Set

In the API — as the max_tokens parameter or model limit. For local models, the limit can be reduced to save memory.

See Also

← All Terms