TokenPAPATokenPAPA
User GuideAPI ReferenceAI ApplicationsBlogPricingSign up

How Much Does a 500K-Token Context Actually Cost in 2026?

A 500K-token corpus costs $54 to $48,382 per 1,000 documents across 23 models, an 896x spread. Per-query math, cache discounts, and the chunking trap.

How Much Does a 500K-Token Context Actually Cost in 2026?

Long-context work breaks the mental model most teams built on chatbot traffic. In a chat request, a 400-token answer can be a fifth of the bill, so the output multiplier dominates the decision. In a long-context request, that same answer sits next to 500,000 tokens of input, and the multiplication of output price barely moves the total.

This guide prices one concrete workload — a 500,000-token corpus, ten questions per corpus, 800-token answers with citations — across 23 models in the TokenPAPA catalogue, using live rates read from the pricing API on 2026-12-01. The point is not to crown a winner. It is to show how far apart the bills land, which lever actually reduces them, and which popular optimisation does nothing at all.

Short answer: a single 500K-token question costs $0.0054 on claude-haiku-5-5 and $4.84 on claude-fable-5-1 — the same input, the same output, an 896× spread. Over 1,000 documents at ten questions each, that is $54 versus $48,382 a month. Retrieval of 20K tokens instead of stuffing 500K cuts the bill about 20×; chunking the full document into five requests cuts it by nothing.


How was this workload priced?

Every model is charged on the same request shape, so the comparison is apples to apples. The unit is a document: one 500,000-token corpus and ten questions asked against it.

ComponentValueNotes
Input per question500,000 tokenscodebase snapshot, contract bundle, or PDF corpus
Output per question800 tokensanswer plus citations
Questions per document10a review pass, not a single lookup
Output share of tokens0.16%800 of 500,800
Cache hit share (warm column)90%9 of 10 questions reuse the same prefix
Price source—tokenpapa.ai/api/pricing, read 2026-12-01

Cost per question is therefore 0.5 × input price + 0.0008 × output price, with prices in dollars per 1M tokens. Cost per 1,000 documents is that figure multiplied by 10,000.

Two columns appear in every table below. Cold assumes nothing is cached — a one-shot analysis, a fresh corpus per query. Warm applies each model's cache-read price to 90% of the input, which is what actually happens when you ask ten questions about the same document.


What does one 500K-token query cost on 23 models?

Cheapest to most expensive, ranked by the cold cost of 1,000 documents. All 23 models are callable through one OpenAI-compatible key.

ModelInput $/1MOutput $/1MOutput multCached $/1M$/query (cold)$/1k docs (cold)$/1k docs (warm)
claude-haiku-5-5$0.0100$0.500050.00×$0.0100$0.0054$54.00$54.00
doubao-seed-2-0-lite-260428$0.0938$0.56256.00×$0.0170$0.0473$473$162
glm-5.3-flash$0.1200$0.42003.50×$0.0400$0.0603$603$279
qwen3.8-flash$0.1200$0.50004.17×$0.0150$0.0604$604$179
mimo-v2.6-flash$0.1560$0.31252.00×$0.0030$0.0783$783$163
minimax-m3.1-flash$0.1600$0.63003.94×$0.0160$0.0806$805$222
qwen3.7-plus$0.2000$0.83004.15×$0.0400$0.1007$1,007$359
deepseek-v4-flash$0.3000$1.20004.00×$0.0100$0.1510$1,510$335
gemini-3-flash-preview$0.4000$2.42006.05×$0.0400$0.2019$2,019$561
qwen3.7-max$0.6200$1.66002.68×$0.2500$0.3113$3,113$1,615
gemini-3.8-flash$0.6200$3.10005.00×$0.0620$0.3125$3,125$865
gpt-5.6-luna$0.9300$7.44008.00×$0.0930$0.4710$4,710$1,320
hy4$1.0000$2.80002.80×$0.0500$0.5022$5,022$1,175
gemini-3.5-flash$1.2115$1.21151.00×$0.1212$0.6067$6,067$1,651
deepseek-v4-pro$1.4000$4.00002.86×$0.0500$0.7032$7,032$1,564
gemini-4-argon$1.6400$8.20005.00×$0.0820$0.8266$8,266$1,956
claude-sonnet-5-5$1.8600$9.30005.00×$0.1000$0.9374$9,374$2,246
gpt-6.1-sol$1.8600$9.30005.00×$0.1000$0.9374$9,374$2,246
kimi-k3.1-pro$2.1000$10.60005.05×$0.2100$1.0585$10,585$2,930
claude-opus-5-5$3.7200$18.60005.00×$0.2000$1.8749$18,749$4,493
gpt-5.6-sol$4.6400$37.12008.00×$0.4600$2.3497$23,497$6,568
gpt-6-astra$9.3000$46.50005.00×$0.9300$4.6872$46,872$12,974
claude-fable-5-1$9.6000$47.80004.98×$0.2400$4.8382$48,382$10,474

Three things stand out. First, the input price alone predicts the ranking: the cold column is almost a straight function of input $/1M, which is exactly what a 500K-token request should look like. Second, claude-haiku-5-5 wins by a factor of nearly nine over the next model, and its 50× output multiplier never gets a chance to matter. Third, gpt-6-astra and claude-fable-5-1 finish within 3% of each other despite different headline prices, because 500K input tokens dominate both.

Key insight: at 500K input tokens, the only number that predicts your bill is the input price per 1M tokens. Output multipliers between 1× and 8× move the total by less than 1.3% — except on the model whose input is so cheap that its output becomes the majority of the cost.


Why do output multipliers stop mattering at 500K tokens?

Because an 800-token answer is 0.16% of the request. On most models output lands between 0.16% and 1.26% of the total bill, so an 8× output multiplier is worth about one percentage point of cost. In chatbot traffic the same multiplier routinely decides 40% to 60% of the invoice.

ModelOutput as % of one query's billInput $/1MOutput mult
gemini-3.5-flash0.16%$1.21151.00×
mimo-v2.6-flash0.32%$0.15602.00×
deepseek-v4-flash0.64%$0.30004.00×
claude-sonnet-5-50.79%$1.86005.00×
gpt-6-astra0.79%$9.30005.00×
gpt-5.6-sol1.26%$4.64008.00×
claude-haiku-5-57.41%$0.010050.00×

The exception is instructive. claude-haiku-5-5 carries the highest output multiplier in the catalogue at 50×, and because its input price is $0.01 per 1M tokens, the 800-token answer becomes 7.41% of the bill — ten times the share any other model pays. It is still the cheapest option by a wide margin, which is the real lesson: a scary multiplier on a cheap input is cheaper than a gentle multiplier on an expensive one.

Teams that tuned their model choice on chat traffic routinely get this backwards in long-context work. A model they rejected for a 6× output multiplier may be the right choice once input dominates, and a model they chose for a 1× multiplier may be a poor fit.


Does chunking a document into five requests save money?

No — if the goal is to read the whole document, the input token count is unchanged, and you add overhead plus lose prompt caching. Splitting 500,000 tokens into five requests of 100,000 still sends 500,000 tokens per question; the only addition is the repeated instruction block.

StrategyInput tokens per questionCache reuseRelative cost
Stuff 500K in one request500,360yes, 90% across 10 questions1.00×
Map over 5 chunks of 100K501,800no, every prefix differs1.003× cold, 4.5× vs warm
Retrieve 20K, then ask20,360yes~0.05×

The chunked version sends 0.288% more tokens, so on a cold corpus the two strategies are economically identical. The damage appears in the warm case: when you ask ten questions about the same document, stuffing keeps a single stable prefix that the cache can serve at 1.9% to 10% of the input price on most models. A map pass over five chunks produces five different prefixes, so nothing is ever reused, and you pay full input price on all 500,000 tokens every time. That is the difference between $335 and $1,510 per 1,000 documents on deepseek-v4-flash.

Chunking still wins for a different reason: reliability. If a model's context limit is below 500K, or if quality degrades in the middle of a very long prompt, you have no choice. Just budget for the cache loss rather than expecting a saving.

Key takeaway: chunking is a correctness decision, not a cost decision. It costs the same or slightly more, and it forfeits the cache discount that makes repeated questions about one document cheap.


How much does prompt caching save on a long context?

With a 90% cache hit rate, savings run from 53.7% on glm-5.3-flash to 79.2% on mimo-v2.6-flash — and 0% on claude-haiku-5-5, which has no cache discount at all. Cache read prices range from $0.0030 to $0.9300 per 1M tokens.

ModelInput $/1MCached $/1MCache discount$/1k docs cold$/1k docs warmSaved
claude-haiku-5-5$0.0100$0.01000.0%$54.00$54.000%
glm-5.3-flash$0.1200$0.040066.7%$603$27953.7%
mimo-v2.6-flash$0.1560$0.003098.1%$783$16379.2%
doubao-seed-2-0-lite-260428$0.0938$0.017081.9%$473$16265.7%
deepseek-v4-flash$0.3000$0.010096.7%$1,510$33577.8%
qwen3.7-max$0.6200$0.250059.7%$3,113$1,61548.1%
claude-sonnet-5-5$1.8600$0.100094.6%$9,374$2,24676.0%
gpt-5.6-sol$4.6400$0.460090.1%$23,497$6,56872.0%
claude-fable-5-1$9.6000$0.240097.5%$48,382$10,47478.4%

The discount percentage is a trap. claude-fable-5-1 has a 97.5% cache discount and still costs $10,474 per 1,000 warm documents — 64× more than claude-haiku-5-5 costs with no discount at all. What matters is the absolute cached price, not the percentage off. A 98% discount on an expensive input is still an expensive input.

Caching does narrow the field: the spread between cheapest and most expensive falls from 896× cold to 240× warm. That is real money, but it does not change who wins.

Key insight: caching compresses the gap between models, it does not invert the ranking. If a model is six times too expensive cold, a 90% cache hit rate makes it roughly 1.4 times too expensive — still too expensive.


What is the cheapest way to process 300 long documents a month?

At 300 documents (3,000 questions, 1.5 billion input tokens), the monthly bill runs from $16 on claude-haiku-5-5 to $14,515 on claude-fable-5-1. Blended routing — 70% of queries on a cheap model, 25% on a mid-tier model, 5% on a frontier model — lands at $1,021 against $2,246 for an all-claude-sonnet-5-5 baseline, a 54.6% cut while a third of the traffic still hits premium models.

Model$/month (300 docs, warm)
claude-haiku-5-5$16
doubao-seed-2-0-lite-260428$49
deepseek-v4-flash$100
gemini-3.8-flash$260
claude-sonnet-5-5$674
gpt-5.6-sol$1,970

Four levers, in order of impact:

  1. Retrieve instead of stuffing. Dropping from 500K to 20K input tokens is a ~20× cut on every model tested, and it is the only lever that changes the token count rather than the price per token.
  2. Cache the stable prefix. Worth 48% to 79% on models that discount cache reads, and worth planning around: put the long document first and the question last, so the prefix stays identical across turns.
  3. Route by task. Long-context review passes rarely need a frontier model; escalation should be triggered by output validation failing, not by default.
  4. Cap the output. max_tokens set to 800 instead of a default of 4,096 saves more on models with 8× multipliers than it does on gemini-3.5-flash.

Key insight: the biggest long-context bill reduction is not a cheaper model, it is not sending the whole corpus. Retrieval at 20K tokens costs about a twentieth of stuffing 500K on the same model, and the saving survives every change of vendor.


Does a longer context mean worse answers?

Often yes, and the effect is well documented rather than anecdotal. The widely cited 2023 study Lost in the Middle (Liu et al.) found that models retrieve information most reliably at the beginning and end of a long context and degrade for material buried in the middle. Later long-context models narrowed that gap, but none of the published results guarantee that a 500K-token prompt is read as carefully as a 20K one.

That has a cost consequence most teams miss: a model that looks cheap per token can be expensive per correct answer if it misses content and forces a retry. The right comparison is not dollars per 1M tokens but dollars per accepted output.

Before committing to a long-context architecture, run a small eval on your own corpus: 100 to 200 questions with known answers, positioned deliberately in the first, middle, and last tenth of the document. Score each candidate model on accuracy, then divide its per-document cost by its accuracy. A model that is 20% cheaper but 10 points less accurate is the more expensive choice.


How do I switch models without rewriting code?

TokenPAPA exposes an OpenAI-compatible endpoint at https://tokenpapa.ai/v1, so the only changes are the base URL, the key, and the model string. All 23 models above are reachable with the same key, which is what makes per-task routing practical instead of a rewrite.

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-tokenpapa-key",
    base_url="https://tokenpapa.ai/v1",
)

def review(corpus: str, question: str, model: str = "deepseek-v4-flash") -> str:
    resp = client.chat.completions.create(
        model=model,
        messages=[
            {"role": "system", "content": "Answer only from the document. Cite section numbers."},
            {"role": "user", "content": corpus + "\n\n" + question},
        ],
        max_tokens=800,
        temperature=0.2,
    )
    return resp.choices[0].message.content

Swapping deepseek-v4-flash for claude-sonnet-5-5 or gpt-6.1-sol is a one-word change, so you can A/B a cheap model against a frontier model on the same 50 documents and compare cost per accepted answer directly.

Note the ordering in the message array: the document comes first and the question last, which keeps the cacheable prefix stable when you ask multiple questions about the same corpus.


FAQ

How much does a 500K-token context cost per query?

It ranges from $0.0054 on claude-haiku-5-5 to $4.84 on claude-fable-5-1 for a 500,000-token input and an 800-token answer — an 896× spread on identical work. The middle of the catalogue sits near $0.31, where qwen3.7-max and gemini-3.8-flash land.

Why does the output multiplier stop mattering in long-context work?

Because an 800-token answer is 0.16% of a 500,800-token request. Output is 0.16% to 1.26% of the bill on most models. The exception is claude-haiku-5-5, where a 50× multiplier makes output 7.41% of the bill — still the cheapest model overall, because its input price is $0.01 per 1M tokens.

Does splitting a document into chunks save money?

Not for a full map pass. Five requests of 100,000 tokens send the same 500,000 tokens per question, plus about 0.288% overhead for repeated instructions, and they forfeit prompt caching because every chunk prefix differs. Chunking only saves money when retrieval selects a small subset — 20K tokens is roughly 20× cheaper than stuffing 500K.

How much does prompt caching save on a long context?

At a 90% cache hit rate, savings run from 53.7% on glm-5.3-flash to 79.2% on mimo-v2.6-flash, and 0% on claude-haiku-5-5, which has no cache discount. Caching shrinks the spread between models from 896× to 240× but does not reorder the top of the list.

Is a long context cheaper than RAG?

Per request, no: stuffing a 500K corpus costs about 20× what retrieving 20K tokens costs on the same model. Long context wins on engineering time when you have a handful of documents and a few questions each; retrieval wins on cost as soon as you have a corpus large enough that most of it is irrelevant to any single question.


Get started

Every model in the tables above is callable through one OpenAI-compatible key, so you can price your own workload before you commit to an architecture:

Related reading: what one active user costs per month, the 2026 LLM API pricing cheat sheet, and which model to use for RAG.


Prices read from tokenpapa.ai/api/pricing on 2026-12-01 and are per 1M tokens. Rates change; verify on the pricing page before committing to a budget. Cost model assumes a 90% cache hit rate on 9 of 10 questions about the same document.

How is this guide?

Last updated on

How Much Does a 500K-Token Context Actually Cost in 2026? | TokenPAPA