Skip to content
AgenticAIWiki
  1. Learn
  2. Part 1. Gen AI concepts
  3. Chapter 3

Context windows, tokens and cost

4 lessons · 16 min

Filling the context window

Full screen
Context window (one request)System prompt1,200 tokensModelreads all of it

Swipe to change step

Step 1 of 7. A model has no memory between calls. Everything it should know must be inside one request, and that request has a hard size limit: the context window, counted in tokens. System prompt (1,200 tokens), highlighted. Model (reads all of it).

In this chapter

  1. 3.1What counts against the context window4 min read
  2. 3.2Input vs output tokens and how pricing works4 min read
  3. 3.3Estimating tokens for text, code and images4 min read
  4. 3.4What happens when you hit the limit4 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…