Skip to content

Menu

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-2

1M context, 128K max output; $8 input / $40 output per MTok

Try it: llm-pricing-calculatorFrom the docs, not run by us
claude-opus-5-5

1M context, 128K max output; $4 / $20 per MTok; cache hits $0.20

Try it: llm-pricing-calculatorFrom the docs, not run by us
claude-sonnet-5-5

1M context, 128K max output; $2 / $10 per MTok; cache hits $0.10

Try it: llm-pricing-calculatorFrom the docs, not run by us
claude-haiku-5-5

1M context, 128K max output; $0.10 / $0.50 for prompts up to 100,000 tokens, $0.50 / $2.50 above

Try it: llm-pricing-calculatorFrom the docs, not run by us
claude-sonnet-5

Older current-generation model: 1M context, 128K output, $2 / $10

From the docs, not run by us
claude-haiku-4-5

200K context, 64K max output; $1 / $5 per MTok

From the docs, not run by us
Batch API

50% off both input and output tokens

From the docs, not run by us
5m cache write / 1h cache write

1.25x and 2x the base input price

From the docs, not run by us
Cache read

0.1x base input on most models; 0.05x on Opus 5.5 and Sonnet 5.5; 0.025x on Fable 5.2

From the docs, not run by us
inference_geo: "us"

US-only inference on Claude 4.6 and later costs 1.1x across all token categories

From the docs, not run by us
Fast mode (Opus 5.5)

$8 input / $40 output per MTok; not available with Batch

From the docs, not run by us

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-astra

1.05M context, 128K max output; $8 input / $0.40 cached / $40 output per MTok

Try it: llm-pricing-calculatorFrom the docs, not run by us
gpt-6.2-sol

1.05M context, 128K max output; $2 / $0.10 cached / $10 per MTok

Try it: llm-pricing-calculatorFrom the docs, not run by us
gpt-6.1-terra

1.05M context, 128K max output; $1 / $0.05 cached / $5 per MTok

Try it: llm-pricing-calculatorFrom the docs, not run by us
gpt-6-luna

1.05M context, 128K max output; $0.10 / $0.01 cached / $0.50 per MTok

Try it: llm-pricing-calculatorFrom the docs, not run by us
gpt-6.2-astra > 272K input

$16 input / $0.80 cached / $60 output per MTok

From the docs, not run by us
gpt-6.2-sol > 272K input

$4 / $0.20 cached / $15 per MTok

From the docs, not run by us
gpt-6.1-terra > 272K input

$2 / $0.10 cached / $7.50 per MTok

From the docs, not run by us
Batch (short context)

Listed batch rates are half the standard rates, for example gpt-6.2-sol at $1 / $5

From the docs, not run by us
Background requests

Listed at 30% below standard for the 2-hour window and 40% below for the 8-hour window on these four models

From the docs, not run by us

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-carbon

1,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

Try it: llm-pricing-calculatorFrom the docs, not run by us
gemini-4-neon

$3 input / $15 output per MTok; models page lists 1M context

From the docs, not run by us
gemini-4-hydrogen

$1.50 / $7.50 per MTok; a free tier is also listed

From the docs, not run by us
gemini-3.8-flash

1,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

Try it: llm-pricing-calculatorFrom the docs, not run by us
gemini-3.5-flash-lite

1,048,576 input, 65,536 output; $0.30 / $2.50 per MTok

From the docs, not run by us
gemini-3.1-pro-preview

$2 / $12 up to 200K prompt tokens, $4 / $18 above

From the docs, not run by us

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_tokens and max_tokens per model, so read limits at runtime where you can.