Grok's 500K context window against the 1M-token models

grok-4.6 and grok-4.5 take 500,000 tokens; Claude Sonnet 5 and the Gemini Flash line take 1,000,000. When the extra half matters, what it costs, and why a bigger window is not a better answer.

Where 500,000 sits in the catalog

grok-4.6 and grok-4.5 both take 500,000 tokens of context and both emit up to 65,536 tokens. grok-composer-2.5-fast is smaller again at 200,000 in and 32,768 out. Those are the three Grok text ids, and 500,000 is the largest window the family offers here.

Several ids in the catalog take twice that. claude-sonnet-5, claude-opus-5 and claude-opus-4-8 all carry a 1,000,000-token window with a 128,000-token output ceiling. So does the whole Gemini line — gemini-3.8-flash, gemini-3.7-flash-high, gemini-3.6-flash-high, gemini-3-flash and gemini-3.1-pro-low each take 1,000,000 tokens, with a 65,536-token output ceiling (65,535 on the Pro id).

That makes the comparison concrete rather than abstract. Grok gives you half the input room of those ids, and on output it matches Gemini at 65,536 while the 1M Claude ids go to 128,000. If your prompts sit well under 500,000 tokens, none of this is a constraint you will ever hit.

What a large prompt actually costs on each

Window size is a limit; the bill comes from the per-token rate. Take a 150,000-token prompt, which fits everywhere mentioned here. On grok-4.6 input is billed at $0.40 per million after the 0.2x multiplier, so that prompt costs $0.06 — against $0.1575 on claude-sonnet-5 ($1.05 per million at 0.35x), $0.1875 on claude-opus-5 ($1.25 per million at 0.25x) and $0.0225 on gemini-3.8-flash ($0.15 per million at 0.2x).

Grok has a second tier, though, and it starts well before the window does. The listed Grok rates are the sub-200K prices: xAI doubles both input and output at or above 200,000 tokens in a single prompt. So the useful boundary on grok-4.6 and grok-4.5 is 200,000 tokens, not 500,000, and past it input is $0.80 per million and output $2.40.

Against these ids the step changes the margin, not the order. A 400,000-token prompt costs $0.32 on grok-4.6 at the upper tier, against $0.42 on claude-sonnet-5 and $0.06 on gemini-3.8-flash, neither of which has a step in its rate card. Below 200,000 tokens grok-4.6 input costs well under half of claude-sonnet-5's; above it, about three quarters. Against gemini-3.8-flash it goes from under three times as much to more than five. The line that moves the bill is 200,000 tokens, which is a sharper distinction than the window size ever makes.

The response usage block reports the tokens you were actually billed for.
curl https://token-share.app/v1/chat/completions \
  -H "Authorization: Bearer $TOKEN_SHARE_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "grok-4.6",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Summarise the attached module in five bullet points."}
    ]
  }' | jq '.usage'

Room is not recall

A 500,000-token window means a request of that size will be accepted. It does not mean the model weights every token equally, and it does not mean filling the window improves the answer. Padding a prompt is a straight cost increase with no guaranteed return — and on Grok it can be worse than linear, because crossing 200,000 tokens doubles the rate on the whole request.

The practical version of this: send what the task needs. If you are asking about three files, send three files. Pasting a whole repository to be safe multiplies the input line on every request in a loop, and an agent loop makes that a hundred requests, not one.

When a long prefix genuinely repeats across turns — a system prompt, a specification the conversation keeps returning to — cached reads on grok-4.6 are billed at $0.50 per million against the official rate, and at 0.2x that is $0.10 per million, a quarter of the $0.40 fresh-input rate. That is the lever for repeated context; a larger window is not.

Common questions

What happens if my prompt exceeds 500,000 tokens on Grok?
It is past the window the id accepts, so the request cannot be served as sent. Your options are to cut the prompt down, split the job into several requests, or move to an id with a 1,000,000-token window — claude-sonnet-5, claude-opus-5, claude-opus-4-8, or any of the Gemini ids.
Do all three Grok text models have a 500K window?
No. grok-4.6 and grok-4.5 do, at 500,000 tokens with a 65,536-token output ceiling. grok-composer-2.5-fast takes 200,000 tokens and emits up to 32,768 — less than half the window and half the output ceiling of the other two.
Is a 1M-token model worth switching to just for the window?
Only if your prompts actually exceed 500,000 tokens; below that the extra room does nothing. But check the 200,000-token mark too — that is where Grok input goes from $0.40 to $0.80 per million and output from $1.20 to $2.40, while the Claude and Gemini 1M ids hold one rate throughout. A prompt sitting between 200,000 and 500,000 tokens fits on Grok and is billed at the upper tier for doing so.