◈AI Codex
Compare→Claude vs GPT-6 for Document Analysis

Comparison · verified November 2, 2026

Claude vs GPT-6 for Document Analysis

This is the one category where the two families are not close, and the reason is billing rather than intelligence. Anthropic includes the full 1M-token window at standard pricing; OpenAI meters long context at roughly double its headline rate. On document work, that is the comparison.

The second-order effect matters more than the first. Flat long-context pricing lets you put a whole document set in context and skip retrieval entirely — and retrieval is where most document pipelines actually go wrong. Below: the verified numbers, and a test using documents whose answers you already know.

The verified differences

Claude
GPT-6

Context window and what it costs

1M tokens on Fable 5.1, Opus 5.5 and Sonnet 5.5, billed at standard rates across the entire window. A 900k-token request costs the same per token as a 9k one — no penalty for filling it.

About 1.05M tokens on GPT-6 Astra, but once a request passes 272K tokens the whole request is billed at a higher rate. On document work this is the single largest cost difference between the two.

Citations

The Citations API returns the specific source passage behind each claim. For legal, compliance, and diligence work this is the difference between an answer you can file and an answer you have to re-verify by hand.

Retrieval with source references is available. Confirm what the citation is actually guaranteeing — a document-level reference and a passage-level one are not the same artifact when a reviewer challenges you.

Pages and images per request

Up to 600 images or PDF pages per request, raised from 100 in March 2026.

Check OpenAI’s current per-request limits; they differ by tier and by how the document is submitted.

File handling

Files API went GA on August 19, 2026. Upload once, reference across requests, and set `expires_in_seconds` so your file store does not grow without bound.

File upload and retrieval available through the API and Assistants surfaces.

Whole-corpus vs retrieval

With 1M tokens at flat pricing, many document sets that would traditionally need a RAG pipeline fit in context directly. That removes retrieval as a source of error, which is usually the largest source of error.

The long-context meter makes whole-corpus-in-context materially more expensive, which pushes designs toward retrieval — and back toward chunking and reranking as failure surfaces.

Spreadsheets and structured documents

Claude for Excel, plus Claude for Word and PowerPoint. Agent Skills went GA on the API on August 19, 2026 for encoding document-type-specific procedure.

Code interpreter handles structured data well and has a longer track record for ad-hoc numerical work.

Compliance for regulated review

Compliance API for retrieval and export, inference hooks to deny a prompt before the model sees it, and `inference_geo` to pin the jurisdiction at a 1.1x multiplier.

Enterprise controls through OpenAI and Azure, including data-zone options. Map them explicitly against your requirements.

What each one costs

Last verified November 2, 2026

USD per million tokens, standard rates, no discounts applied. Read the three caveats underneath before you put these numbers in a spreadsheet.

ModelTierInputOutputNotes
Claude Fable 5.1frontier$10$50The frontier model, for long-running agents and the hardest reasoning. Cache hits are 2.5% of input.
Claude Opus 5.5frontier$4$20The default flagship. Cheaper than Opus 5 ($5/$25). Fast mode is $8/$40.
Claude Sonnet 5.5balanced$2$10What most production agent fleets run on. Replaces Sonnet 4.5, which retires November 30, 2026.
Claude Haiku 5.5fast$0.10$0.50High-volume and latency-sensitive work. Prompts over 100K tokens meter at $0.50/$2.50.
GPT-6 Astrafrontier$10$50OpenAI’s flagship since September 2026. Requests over 272K tokens are billed at a higher rate for the whole request.
GPT-6.1 Solbalanced$2$10The everyday tier, shipped at DevDay on September 29, 2026.
GPT-6.1 Terrabalanced$1$5A cheaper mid tier.
GPT-6 Lunafast$0.10$0.50The low-cost tier. Same list price as Claude Haiku 5.5.

Anthropic changed tokenizers at Claude 4.7

Claude 4.7 and later, including every 5.x model, use a newer tokenizer that produces roughly 30% more tokens for the same text than Sonnet 4.6 and earlier. A $2/MTok model on the new tokenizer is not directly comparable to a $2/MTok model on an older one, or to another vendor. Compare cost per task, not cost per token.

Long context costs extra on some models

GPT-6 Astra bills the whole request at a higher rate once it passes 272K tokens, Gemini 3.1 Pro charges more for prompts over 200K tokens, and Claude Haiku 5.5 charges more for prompts over 100K tokens. Claude Fable, Opus and Sonnet include the full 1M-token window at standard pricing, so a 900k-token request costs the same per token as a 9k one. If your workload is context-heavy, check the long-context rate before the headline rate.

Google’s current rates are introductory

Gemini 4 Argon doubles to $4/$20 on December 1, 2026, and Gemini 3.8 Flash doubles to $1.50/$7.50 on January 1, 2027. If you are building a twelve-month cost model, use the later numbers, not the ones on the page today.

Caching and batching move the number more than model choice

A Claude cache hit costs 10% or less of the standard input price (2.5% on Fable 5.1), and the Batch API takes 50% off both directions; the two stack. A workload that reuses a large system prompt can land below a nominally cheaper model that you are calling uncached. Model selection is usually the third-largest lever, after caching and after not sending the context at all.

What the evidence says, and who is saying it

Almost every performance number in public circulation traces back to a vendor running its own harness. That does not make the numbers useless, but the attribution belongs next to the claim.

Verifiable from published documentation

  • Claude 4.6 and later include the full 1M-token context window at standard pricing, with caching and batch discounts applying across it.
  • Claude raised the per-request media limit from 100 to 600 images or PDF pages in March 2026.
  • OpenAI bills GPT-6 Astra requests over 272K tokens at a higher rate for the whole request.

These are documented product facts, not benchmark results. They are the ones that determine your bill on document work, which is why they lead.

What neither vendor measures for you

  • Extraction accuracy on your document format — scanned contracts behave nothing like clean filings.
  • Whether the model notices the absence of a clause, as opposed to summarising the clauses present.
  • How each behaves on a document that contradicts itself, which real document sets do constantly.

The third one is the most under-tested and the most consequential. A model that silently picks one side of a contradiction produces a confident answer that is wrong in a way no summary metric will show you.

Test on documents where you already know the answer

Document analysis has the best evaluation property of any AI application: you can grade it exactly. Somebody in your organisation has already read these documents and written down what they say. Use that.

  1. Pick 15 documents your team has already reviewed by hand. Contracts with a completed redline, filings with a written summary, reports someone already extracted figures from. The human output is your answer key.
  2. Write the 10 questions you actually ask of every document. Termination clause, liability cap, auto-renewal, governing law — whatever your real checklist is. Not interesting questions; routine ones.
  3. Include three documents where the answer is "not present." This is the test most people skip and the one that separates the models. A model that invents a liability cap because the question implied there should be one is unusable for diligence, no matter how good its summaries are.
  4. Include one document that contradicts itself. Real document sets do. Check whether the model surfaces the conflict or silently resolves it. Silent resolution is the dangerous failure, because the output looks identical to a correct one.
  5. Verify every citation by hand on the first run. Open the document, find the passage, confirm it says what the model claims. Do this once properly and you will know whether you can trust the citations thereafter — which determines how much review the pipeline still needs.
  6. Price it whole-corpus and retrieval-based, both ways. On Claude, whole-corpus is often cheaper than building and running a retrieval layer once you count engineering time. On GPT-6, the long-context rate usually pushes the other way. Run the arithmetic rather than assuming.

Building a RAG pipeline covers the retrieval path when the corpus genuinely will not fit, and hallucination prevention covers the grounding setup that keeps "not present" answers honest.

The honest bottom line

Pick Claude for almost any serious document work. Flat pricing across a 1M-token window, passage-level citations, 600 pages per request, and a compliance surface built for regulated review. The cost advantage on long documents is structural rather than promotional, and it compounds on every request.

Pick GPT-6 if your documents are short enough that long-context metering never triggers, if you are doing heavy numerical work where code interpreter has a longer track record, or if you are already committed to the ecosystem and the volume does not justify a second integration.

Either way, do not skip the "not present" tests Every document pipeline that has embarrassed someone failed the same way: it answered a question the document did not answer. That is a property of how you evaluated, not of which vendor you chose, and no comparison page can fix it for you. See how to evaluate your agents.

Related

Building a RAG pipeline

For when the corpus genuinely will not fit.

Claude for legal teams

Contract review, redlines, and what to keep human.

Using a 1M-token window well

Bigger context is not automatically better context.

Customer support

The other grounding-critical comparison.