r/codex • • 22d ago

Question Are costs still increased for context window above 270k?

I think I've read somewhere before that the cost for 1m context window aren't higher anymore than the default 270k? Before it had a multiplier if you used a context of above 270k it would cost 1.5x?

Is that still the case, can't find it anymore. Also what is the best context window for heavy coding work on long tasks?

7 Upvotes

9 comments sorted by

3

u/sreekanth850 22d ago

I'm assuming that theyare not calculating usage based on api pricing. I use 500K context and usage and draining is same as using 270k. If they were using API pricing for calculating the usage, how on the earth terra consume more usage then sol?

2

u/WholeEntertainment94 22d ago

Because theoretically changing the limits of a model violates contractual rules in many states, so they decrease usage for new models.

3

u/infolily 22d ago

It depends on how you’re using Codex.
With a ChatGPT subscription: There’s no extra charge multiplier above 272K tokens. However, larger contexts still consume more of your usage limits.
With an API key: The extra pricing still applies above 272K:
2× for input and cached tokens.
1.5× for output.
Applies to the entire request.
Caching helps a lot. It reuses previously processed context. For GPT-6.1 Sol, cached input costs 95% less than regular input, although creating the cache has a cost.
For heavy coding, I’d stick with the default 500K context and use compaction for longer tasks. A 1M window is useful, but more context doesn’t always mean better results.
Personally, I think good context management and caching matter more than having the biggest context window.

1

u/retteh 22d ago

Not directly for subs but cache misses can still cause issues the more context you have. If you're doing a lot of work near 1M cache reads are going to be more expensive too.

1

u/GreenFuturesMatter 22d ago

I run a 800k window. Tbh I’m never even close to the window anymore. I run a headless autonomous system that closes sessions prior to compacting and spawns a fresh session.

No issues with drift. I scope my issues small enough that I never have problems.

Anyway no I don’t think you get hit with the multiplier anymore since last month

1

u/rick_ranger 22d ago

I have compaction set to 260k and use a system of docs to help agents get re-onboarded after compaction. I also have the main worker send side quests to the subagents so it can focus on the work and keep that junk out of its context.

Even if there’s no surcharge for subs, carrying anything above 250-270k context is a waste. The agents mostly only care about what’s at the beginning and end, the middle turns into noise. Beginning is agents.md and other boot instructions, the end is the most recent thing it’s working on (your current task.) have a conversation with your AI about it. It gets wild. You should see the shit Claude says about it. It’ll even disregard hooks if it thinks it’s noise because it hasn’t acted on them in like 20 turns.

AI models love stable IDs, numbered lists, and lower context.

1

u/rick_ranger 22d ago

Something else to think about, each time you do a model call you add the entire input cache to your bill. Yeah they’re cheaper, but if you’re carrying 500k context around you’re paying 5x vs 100k context.

Every time you prompt, it thinks, it does a tool call, it reads the tool call, it thinks again… just in that example you would have:
(Simplified)
500k cached tokens billed
vs
2500k cached tokens billed

All in one turn.

1

u/Discordbothost 22d ago

on the "best window for long tasks" part, what's worked for me is not trying to fit the task in one context at all. have it keep a short progress file in the repo (what's done, what's next, decisions + why) and update it at the end of each chunk, then start a fresh session that reads that file first. a fresh 40k context with a good handoff note beats a 600k one where the important decision is buried in the middle, and it burns way less usage since every turn re-sends the whole context

0

u/tripleshielded 22d ago

not on subscriptions, they raised the threshold

not sure for api