Best LLM for Invoice Extraction 2026: Gemini vs Claude vs GPT vs AWS, by Invoice Type and Cost
Accuracy benchmarks barely separate the big three on short invoices. What separates the options is scan quality, invoice length and cost per 1,000 invoices, which runs from about $1 to $22 at list price.
For short, clean invoices, the best LLM for invoice data extraction in 2026 is the cheapest one that passes a test on your own documents, because published benchmarks put Gemini, Claude and GPT models within a few points of each other there. For scanned invoices, send the page image straight to the model; in the one dedicated invoice benchmark, Gemini led on scans. For long invoices with hundreds of line items, no single model call is reliable: the 2026 ExtractBench study found commercial vision models dropping most rows on documents over 50 pages. At standard list prices, model fees for 1,000 two-page invoices run from about $1 to $22, depending on the model and before batch discounts.
What the benchmarks can and can't tell you
Two public studies are worth using, and neither is a full answer. ExtractBench, posted to arXiv on July 31, 2026, tests current systems, among them Gemini 3.5 Flash, GPT-5.4 Nano, and Opus 4.8 and GPT-5.5 run as coding agents, on 370 enterprise documents. Its receipt and invoice slice is just 17 documents, and it was published by the company behind the commercial extraction product it ranks first overall. A 2025 arXiv paper by Berghaus and colleagues is dedicated to invoices, with 500 clean and 350 scanned invoices plus 1,000 receipts, but tests the previous generation, GPT-5 and Gemini 2.5. Neither reports latency, neither measured JSON validity rates at current versions, and no small model trained on invoice data has been scored on either. Those things have not been measured in public.
What both studies support is enough to sort the options by situation.
If your invoices are clean digital PDFs
This is the easy case, and the models tie. In the 2025 paper, gemini-2.5-pro scored 96.50 on clean invoices, gpt-5-mini 96.31 and gpt-5-chat 96.03, by exact field match. ExtractBench's invoice slice, a generation later, has Opus 4.8 via Claude Code at 99.2, GPT-5.5 via Codex at 98.2 and Gemini 3.5 Flash at 97.1.
With accuracy that close, price decides. The cheapest options at list price are Claude Haiku 5.5, which Anthropic lists at $0.10 per million input tokens and $0.50 output for prompts up to 100,000 tokens, Gemini 3.5 Flash-Lite at $0.30 and $2.50, and OpenAI's gpt-6-luna at $0.10 and $0.50. Turn on each provider's structured-output mode. Anthropic's docs say it yields "No JSON parsing errors"; OpenAI's say it constrains "completed, non-refusal model output" to your schema; Google's say the JSON is valid but to "always validate values in your application."
If your invoices are scans or phone photos
Here the way you feed the model matters more than which model you pick. The 2025 paper compared sending the page image with sending OCR-parsed text. On scanned invoices, gemini-2.5-pro scored 92.71 from the image and 63.94 from text; gpt-5-chat 88.01 against 64.03. On scanned receipts the model gap widened too: gemini-2.5-pro 87.46, gpt-5-chat 69.21.
So skip the OCR pre-step and send the PDF or image directly; Google, Anthropic and OpenAI all accept PDFs and process page images. On that evidence, start your test with a Gemini model, but include one Claude and one GPT model, because the newer evidence is mixed. ExtractBench scores scanned pages, though its 134-document scanned slice is regulatory forms rather than invoices: there, Gemini 3.5 Flash scored 71.1 and GPT-5.4 Nano 67.4, against 93.4 for GPT-5.5 run through Codex. Current-generation accuracy on scanned invoices specifically has not been published.
If your invoices are long, with many line items
This is where every single-call model in the published tests failed. ExtractBench scored Gemini 3.5 Flash at 87.9 on documents of ten pages or fewer, 69.8 on 11 to 50 pages and 27.9 over 50 pages; GPT-5.4 Nano went from 77.4 to 35.8. On tables over 1,000 rows every vision model scored below 10 percent. The paper says "entire records are dropped rather than misread": Gemini's long-document precision was 83.7 but recall 26.5. A truncated line-item list is still valid JSON, so schema checks will not catch it.
The systems that held up worked in several passes. Claude Code with Opus 4.8 scored 88.1 on long documents at 16.2 cents a page in ExtractBench's accounting; Codex with GPT-5.5 scored 78.9 at 27.8 cents. A cheaper approach is to split long invoices into sections, extract each with a standard model, and reject any result whose line items do not add up to the stated total. Set the output-token limit well above your longest invoice, since OpenAI's guide notes that output cut off at the limit may not match the schema.
If you want a fixed invoice product, not a prompt
Dedicated services trade flexibility for a fixed field set and a per-page price. AWS Textract's Analyze Expense charges $0.01 a page for the first million pages a month and $0.008 above that, with 100 free pages a month for new customers. Microsoft's Azure Document Intelligence prebuilt invoice model extracts header fields and line items from invoices, utility bills and purchase orders in 27 languages, from PDFs up to 2,000 pages; its pricing page lists 500 free pages a month. Neither appears in the two benchmarks above, so how they compare with current LLMs has not been measured in these studies.
If you process high volume and want your own model
The remaining option is a small model post-trained on your own invoice traffic. Parsec, a small language model lab, sells this as a managed service: it traces production requests, builds datasets and evaluations the customer approves, fine-tunes a compact model and serves it, routing low-confidence requests to a closed frontier model. Its inference page says customers can download the weights, and its comparison page says a first post-trained model arrives in about four weeks, without a stated baseline. Parsec publishes no price for the service and has published no invoice-extraction result, so this option's accuracy on invoices has not been measured.
The options side by side
| Option | Best fit | List price | Cost per 1,000 two-page invoices |
|---|---|---|---|
| Claude Haiku 5.5 | Clean PDFs, high volume | $0.10 in / $0.50 out per 1M tokens | about $1.10 plus image tokens |
| Gemini 3.5 Flash-Lite | Clean PDFs, high volume | $0.30 / $2.50 | about $2.45 |
| Gemini 3.8 Flash | Scans, mixed quality | $0.75 / $3.75 ($1.50 / $7.50 from Jan 1, 2027) | about $4.14 ($8.27 from Jan 1) |
| Claude Sonnet 5.5 | A second, larger model to test | $2 / $10 | about $22 plus image tokens |
| AWS Analyze Expense | Fixed fields, per-page billing | $0.01 per page | $20 |
Worked cost example
The table rests on one sample invoice, and the assumptions are what you should replace with your own. Each invoice is two pages. The instruction and JSON schema add 1,000 input tokens. The extracted JSON is 800 output tokens. Prices are standard list rates on November 17, 2026, with no batch discount.
For Gemini, Google's document guide says each PDF page counts as 258 tokens, so input is 2 × 258 + 1,000 = 1,516 tokens. On Gemini 3.8 Flash that is 1,516 × $0.75 per million = $0.0011, plus 800 × $3.75 per million = $0.0030, or $0.0041 per invoice and about $4.14 per 1,000. Gemini 3.5 Flash-Lite works out to $0.0005 plus $0.0020, about $2.45 per 1,000. Google bills thinking tokens as output, so any reasoning the model does adds to this.
For Claude, Anthropic's PDF guide says each page uses 1,500 to 3,000 text tokens, with image tokens on top. Taking the high end, input is 2 × 3,000 + 1,000 = 7,000 tokens. On Haiku 5.5 that is $0.0007 plus 800 × $0.50 per million = $0.0004, about $1.10 per 1,000 before image tokens. On Sonnet 5.5 it is $0.014 plus $0.008, about $22 per 1,000 before image tokens.
For OpenAI, the PDF guide says text and page images are both sent but gives no per-page token figure, so the cost per invoice has to be read off a test bill. AWS needs no token maths: two pages at $0.01 is $0.02 per invoice.
Two adjustments change these figures a lot. Google, Anthropic and OpenAI all list batch processing at half the standard rate, which suits invoices that can wait. And Google's page says Gemini 3.8 Flash doubles on January 1, 2027, while Gemini 4 Carbon and Argon double on December 1, 2026.
How to run your own test
Take 200 to 300 of your invoices, including the worst scans and the longest documents. Write one schema and score header fields and line items separately, plus a check that line items sum to the total. Record the billed cost and the time for each call. ExtractBench's code and data are released under Apache 2.0, with a six-document quick test that is a cheap way to check a scoring harness before you run your own set.
Bottom line
For clean digital invoices, choose on price: test Claude Haiku 5.5 and Gemini 3.5 Flash-Lite, and batch them if you can wait. For scans and photos, send images directly and test Gemini 3.8 Flash, which stays under $10 per 1,000 two-page invoices even after January's increase, against one Claude and one GPT model. For long invoices with many line items, split the document and reconcile totals, or pay for a multi-pass system, because single calls lost rows in every published test. If you want fixed fields and simple per-page billing, AWS Analyze Expense or Azure's invoice model is the straightforward buy.
Sources
- ExtractBench: A Benchmark for Schema-Guided Enterprise Document Extraction (arXiv 2607.29677): https://arxiv.org/abs/2607.29677
- ExtractBench full text: https://arxiv.org/html/2607.29677
- ExtractBench code: https://github.com/run-llama/ExtractBench
- ExtractBench dataset: https://huggingface.co/datasets/llamaindex/ExtractBench
- Multi-Modal Vision vs. Text-Based Parsing: Benchmarking LLM Strategies for Invoice Processing (arXiv 2509.04469): https://arxiv.org/abs/2509.04469
- Gemini API pricing: https://aistudio.google.com/docs/pricing
- Gemini API, Document processing: https://aistudio.google.com/docs/document-processing
- Gemini API, Structured output: https://aistudio.google.com/docs/structured-output
- Anthropic, Pricing: https://platform.claude.com/docs/en/about-claude/pricing
- Anthropic, PDF support: https://platform.claude.com/docs/en/build-with-claude/pdf-support
- Anthropic, Structured outputs: https://platform.claude.com/docs/en/build-with-claude/structured-outputs
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- OpenAI, PDF files: https://developers.openai.com/api/docs/guides/pdf-files
- OpenAI, Structured Outputs: https://developers.openai.com/api/docs/guides/structured-outputs
- AWS Textract pricing: https://aws.amazon.com/textract/pricing/
- Microsoft, Document Intelligence invoice model: https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/prebuilt/invoice
- Microsoft, Document Intelligence pricing: https://azure.microsoft.com/en-us/pricing/details/ai-document-intelligence/
- Parsec, Inference: https://parseclab.ai/inference/
- Parsec vs routers: https://parseclab.ai/compare/routers/