Context window fit calculator
Check room for prompts, history, retrieved text, and reserved output.
Editable defaults are examples. Only explicitly named provider presets are source-checked. All prices are USD.
How this calculator works
Used = system + history + documents + new input + reserved output. Remaining = combined limit − used. Fit also requires reserved output ≤ maximum output limit.
Assumptions & limits
Defaults use GPT-4o mini limits. Do not enter a separate input-only limit as if it were a combined context window. Token estimates should come from the correct tokenizer or provider count endpoint. Model-specific hidden overhead, reasoning accounting, and API restrictions may reduce practical room.
Provider facts checked November 23, 2026. This page calculates from a saved snapshot and your inputs, not a live quote. Confirm current pricing and account eligibility before budgeting.
Source / technical reference ↗ · Site methodology & privacy