Skip to content

What Is Context Length / Context Window?

Context length (also context window) describes how much text a model can process in a single request, measured in tokens.

RangeExampleTypical Use Case
8K to 32K~6,000 to 24,000 wordsShort chat requests, classification
128K to 256K~96,000 to 192,000 wordsRAG with multiple documents, long code files
1M+~750,000+ wordsEntire code repositories, books

A larger context means more input tokens, and therefore higher cost and longer latency. Context length is not “more is always better”, it’s a deliberate cost/latency trade-off.

Clarify the actual requirement first. Most use cases don’t need a 1M token context. Prefer targeted RAG over blindly choosing the maximum context window.