Context compression reduces input tokens by dropping whole turns from a request that is over the token limit, directly cutting input cost and latency. On a key it is off by default; turn it on under Request changes. Because compression can affect answer quality, validate it with evaluators rather than assuming it is free.

Why it matters

Long context is often mostly redundant. Compressing it cuts input cost and latency at the same time, unlike many optimizations that trade one for the other.

In Infere

On a key, Context compression drops whole turns from a request that is over the token limit; it is off by default, under Request changes. Because compression can affect answer quality, validate it with evaluators rather than assuming it is free.

Example

Summarize a long chat history into a compact running summary before sending it, cutting input tokens while keeping the important facts.

← Back to the full glossary

Put the platform behind the terms

Route, evaluate, and monitor every AI request from one OpenAI-compatible platform.

Start Free → Explore the Features