Tokens & Pricing

Context window

The maximum number of tokens a model can consider at once — input plus output combined. It's the model's working memory for a single call. Go over it and the request fails or silently drops the oldest content.

Example

A model with a 200,000-token context window can hold roughly 150,000 words in mind at once — a small book. A long agent run that keeps appending to the conversation can fill that window and start paying to re-send the same history on every step.