Skip to main content

Long context cost calculator

Price one long prompt on GPT, Claude, Grok and other APIs, and see where published long-context tiers make the price jump.

Example value, not an average
Empty = none. Only for cases you paste in yourself; we never add a surcharge a vendor does not publish.
Models
ModelTier usedPer requestContext window
GPT-6.1 Sol
last checked 2026-11-25
≤ 272K input tokens: short-context rates$0.52Context window not published
Claude Sonnet 5.5
last checked 2026-11-18
Flat rate (no prompt-length tier in our data)
Full 1M-token context window at standard pricing (no long-context surcharge).
$0.521,000,000
Grok 4.7
last checked 2026-11-18
≥ 200k: whole request repriced at the long rate$1.02500,000

Cost per request by prompt size

Prompt tokensGPT-6.1 SolClaude Sonnet 5.5Grok 4.7
1,000$0.02$0.02$0.01
50,000$0.12$0.12$0.11
100,000$0.22$0.22$0.21
199,000$0.42$0.42$0.41
199,999$0.42$0.42$0.41
200,000$0.42$0.42$0.82 ↑ long tier
272,000$0.56$0.56$1.11 ↑ long tier
273,000$1.12 ↑ long tier$0.57$1.12 ↑ long tier
500,000$2.03 ↑ long tier$1.02$2.02 ↑ long tier
1,000,000$4.03 ↑ long tier$2.02beyond window

Not included: reasoning/thinking tokens, batch discounts, tool or search fees, cache storage, tax. USD, excl. tax. Tier picked by prompt size and applied to all tokens in the request.

How much does one long prompt cost, and when does the price jump? Pick models, set prompt and output size, and the calculator prices a single request (and an optional month of requests) using verified API rates. Some vendors charge more once a prompt crosses a published threshold: xAI Grok at 200k tokens (the whole request is repriced) and OpenAI GPT-6 above 272K input tokens. Anthropic states its 1M-token Sonnet, Opus and Fable models have no long-context surcharge. The chart shows the step where a tier changes.

Your assumptions

  • Prompt tokens, output tokens, cached share — your workload. Defaults are labelled examples, not averages.
  • Requests per day / days per month — optional, for a monthly figure.
  • Surcharge multiplier (optional) — Your assumption, only for cases you paste in yourself. Empty by default; we never add a surcharge a vendor does not publish.
  • “Context window not published” — shown when our data has no official window for a model. We still price the request, but can’t warn if it exceeds the model’s limit.

How the estimate works

  1. Your prompt size picks the price tier the vendor publishes (for example < 200k vs ≥ 200k on xAI; ≤ 272K vs > 272K on OpenAI).
  2. Cost per request = input tokens × input rate + output tokens × output rate, with cached input at the cached rate where published.
  3. The tier label shows which rate applied; on xAI, all tokens in a ≥ 200k request use the long rate.
  4. Monthly = cost per request × requests/day × days.
  5. A red warning appears if your prompt is larger than a published context window.

What is not included

Reasoning/thinking tokens (see the reasoning token cost calculator), batch discounts, tool or search fees, tax, and models without verified rates.

API cost calculator · Reasoning token cost calculator · Batch API savings calculator · Tokens explained · xAI API pricing

How we check prices

Rates come only from official vendor pricing pages in our dataset. Anthropic, OpenAI, Google, xAI and Perplexity API rates were rechecked on 2026-11-18 (Asia/Colombo); DeepSeek and v0 rates date from 2026-11-03. Anything we have not verified is labelled Your assumption or Price not verified, never estimated. Results are estimates in USD, excluding tax. Corrections: [email protected]. See /methodology/.

USD, excluding tax. Prices come from each vendor’s official pricing page; plans or figures we couldn’t verify are shown as not calculable, never estimated.

Last checked (Re-check due)

More cost calculators