What a 1M-Token Context Really Costs: AtmoRouter's Long-Context Math
AtmoRouter's new post puts long-context pricing in numbers: the same 400,000-token prompt ranges from under a cent to about $1.55 depending on model, caching only discounts the repeated prefix, and compaction can cut a 200-turn session by roughly 60%. Figures are illustrative, not a benchmark.
Why it matters
The article is AtmoRouter-authored and states its assumptions plainly: one 400,000-token document plus a 2,000-token answer, billed at catalogue from rates. The spread is the point. The cheapest 1M-context model in the list lands near $0.0003 for that request; the most expensive near $1.55.
For agents the arithmetic shifts. With a 380,000-token stable prefix and 5,000 new tokens per turn, caching only discounts the repeated part, so a twenty-turn session on the priciest model still costs about $5.20 against roughly $0.0045 on a cheap one. Rates keep changing, so check the model page before you budget.
Compaction gets its own section: summarising a 380,000-token prefix to 40,000 once costs about $1.61 on that model and saves roughly 62 percent over 200 turns, at the cost of detail. The post closes with the usage-block formula and a Python snippet for recomputing what a request actually cost, plus a reminder that streaming usage frames are not guaranteed.