Skip to content
Klay

Context windows, tokens and what things cost

After this lesson you can: Estimate the cost and the context limit of a call before you make it.

First: Tokens and tokenization

Watch

Notes

A context window is the maximum amount of text the model can consider in one call: your prompt, retrieved documents, chat history, tool results, and the model’s own response all share that same budget. Since you already know tokens are chunks of text, think of the context window as the size of the model’s working desk measured in tokens, not characters or words.

Unlock the full lesson notes, the exercises and the graded checkpoint - ₹5,000 once.