LLM Context Window and Pricing Cheat Sheet: Claude, GPT and Gemini Limits (November 2026)
Checked against LLM APIs Provider model and pricing pages as listed in November 2026 (read 28 Nov 2026) on 28 November 2026. Each section links to the official docs it was checked against.
This is a lookup table for developers sizing prompts and budgets across the Claude, OpenAI and Gemini APIs. Every number was read on the provider's own models or pricing page on 28 Nov 2026 and is written as listed in November 2026. Prices change often, so check the linked page before you commit to a budget.
When to use what
This sheet does not rank models. It tells you what fits and what it costs, and leaves quality to your own evals.
Start from the context window. All the current Claude models list 1M tokens. OpenAI's four flagship GPT models list 1.05M, and the Gemini models whose pages we read list 1,048,576. So for most apps the window is no longer the constraint; the bill is.
Then look at pricing units and thresholds, because that is where estimates go wrong. Every provider here prices per million tokens (MTok), but each has its own cliff. OpenAI charges more once input passes 272K tokens. Claude Haiku 5.5 switches to higher prices for prompts over 100,000 tokens. Gemini 3.1 Pro Preview has a 200K tier. Several Gemini prices are marked as introductory with a fixed end date. Anthropic says its other current models bill the full 1M window at standard rates.
Finally, factor in discounts you will actually use. Batch is half price on both Anthropic and OpenAI. Cache reads are a small fraction of input on all three, and on agent loops that resend the same prefix every turn, caching changes the total more than switching models does. Our prompt caching explainer covers how to design for it.
To turn the table into a monthly figure, plug your token counts into the LLM pricing calculator, measure real prompts with the token counter, and use the context window visualizer to see how much room your system prompt and history leave.
Prices in USD per MTok, input / output, from the models overview and pricing page. Max output is the synchronous Messages API limit.
claude-fable-5-21M context, 128K max output; $8 input / $40 output per MTok
claude-opus-5-51M context, 128K max output; $4 / $20 per MTok; cache hits $0.20
claude-sonnet-5-51M context, 128K max output; $2 / $10 per MTok; cache hits $0.10
claude-haiku-5-51M context, 128K max output; $0.10 / $0.50 for prompts up to 100,000 tokens, $0.50 / $2.50 above
claude-sonnet-5Older current-generation model: 1M context, 128K output, $2 / $10
claude-haiku-4-5200K context, 64K max output; $1 / $5 per MTok
Batch API50% off both input and output tokens
5m cache write / 1h cache write1.25x and 2x the base input price
Cache read0.1x base input on most models; 0.05x on Opus 5.5 and Sonnet 5.5; 0.025x on Fable 5.2
inference_geo: "us"US-only inference on Claude 4.6 and later costs 1.1x across all token categories
Fast mode (Opus 5.5)$8 input / $40 output per MTok; not available with Batch
Prices from the OpenAI pricing page, standard tier, short context (input up to 272K tokens). Above 272K, input and output prices rise; see the next section.
gpt-6.2-astra1.05M context, 128K max output; $8 input / $0.40 cached / $40 output per MTok
gpt-6.2-sol1.05M context, 128K max output; $2 / $0.10 cached / $10 per MTok
gpt-6.1-terra1.05M context, 128K max output; $1 / $0.05 cached / $5 per MTok
gpt-6-luna1.05M context, 128K max output; $0.10 / $0.01 cached / $0.50 per MTok
gpt-6.2-astra > 272K input$16 input / $0.80 cached / $60 output per MTok
gpt-6.2-sol > 272K input$4 / $0.20 cached / $15 per MTok
gpt-6.1-terra > 272K input$2 / $0.10 cached / $7.50 per MTok
Batch (short context)Listed batch rates are half the standard rates, for example gpt-6.2-sol at $1 / $5
Background requestsListed at 30% below standard for the 2-hour window and 40% below for the 8-hour window on these four models
Paid tier, standard, USD per 1M tokens; output includes thinking tokens. Limits from the models page and per-model pages. Prices marked introductory have a listed end date.
gemini-4-carbon1,048,576 unified context; output 65,536 by default, up to 1,048,576 with long decode; $2 / $10 until 30 Nov 2026, then $4 / $20
gemini-4-neon$3 input / $15 output per MTok; models page lists 1M context
gemini-4-hydrogen$1.50 / $7.50 per MTok; a free tier is also listed
gemini-3.8-flash1,048,576 input, 65,536 output; $0.75 / $3.75 until 31 Dec 2026, then $1.50 / $7.50
Limits: https://aistudio.google.com/docs/models/gemini-3.8-flash
gemini-3.5-flash-lite1,048,576 input, 65,536 output; $0.30 / $2.50 per MTok
gemini-3.1-pro-preview$2 / $12 up to 200K prompt tokens, $4 / $18 above
Worked example: Price one 150K-token request across providers
Say a code-review agent sends 150,000 input tokens (a large diff plus context) and gets 4,000 tokens back. I priced that with the per-MTok numbers above in a short Node script:
const inT = 150000, outT = 4000;
const m = [
["claude-opus-5-5", 4, 20], ["claude-sonnet-5-5", 2, 10],
["claude-haiku-5-5 (prompt >100k)", 0.5, 2.5],
["gpt-6.2-sol (<=272K)", 2, 10], ["gpt-6.1-terra (<=272K)", 1, 5],
["gemini-3.8-flash (to Dec 31)", 0.75, 3.75],
];
for (const [n, i, o] of m)
console.log(n.padEnd(34), "$" + (inT / 1e6 * i + outT / 1e6 * o).toFixed(4));
claude-opus-5-5 $0.6800
claude-sonnet-5-5 $0.3400
claude-haiku-5-5 (prompt >100k) $0.0850
gpt-6.2-sol (<=272K) $0.3400
gpt-6.1-terra (<=272K) $0.1700
gemini-3.8-flash (to Dec 31) $0.1275
Three things to read from this. Input dominates: 150K tokens in versus 4K out means the input price drives the total. Haiku 5.5 lands on its higher tier because the prompt is over 100,000 tokens; at 90K it would cost a fifth as much per token. The Gemini figure uses an introductory price that ends on 31 Dec 2026, after which the same call doubles.
This ignores caching. If 140K of those tokens are a stable prefix that hits the cache, the input cost on every provider drops sharply, so model it before you pick on price alone.
Common mistakes
Assuming a 1M context window means one price for every prompt length.
Check each provider's threshold: 272K input on OpenAI, 100,000 on Claude Haiku 5.5, 200K on Gemini 3.1 Pro Preview. Price both sides of the line.
Budgeting with an introductory Gemini price as if it were permanent.
Google's page lists end dates for several prices. Use the post-promotion figure for anything that runs past that date.
Comparing token prices between Claude 4.6 and Claude 4.7 or later as if a token were the same size.
Anthropic says the newer tokenizer produces about 30% more tokens for the same text. Count tokens with the target model before comparing.
Setting max output to the context window size.
Output has its own cap, for example 128K on current Claude and GPT models and 65,536 on Gemini 3.8 Flash. Requests above it are rejected or truncated.
Copying these numbers into code as constants.
Prices and limits change. Anthropic's Models API returns
max_input_tokensandmax_tokensper model, so read limits at runtime where you can.
Related cheat sheets
Sources
- https://platform.claude.com/docs/en/about-claude/models/overview
- https://platform.claude.com/docs/en/about-claude/pricing
- https://developers.openai.com/api/docs/models
- https://developers.openai.com/api/docs/pricing
- https://aistudio.google.com/docs/models
- https://aistudio.google.com/docs/pricing
- https://aistudio.google.com/docs/models/gemini-3.8-flash
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.