3 September 202610 min readDocument processing

Clearing a 40,000-invoice AP backlog with local models: a worked example

TL;DR

  • Extraction is the small part: 64,000 backlog pages is about 53 GPU-hours on one A100-class card, roughly €96 of on-demand rental. Triage, rules, exceptions and the ERP load are the four weeks.
  • Dedupe twice (file hash, then vendor + invoice number + gross), parse e-invoices instead of extracting them, and run the largest format families first.
  • Validation rules catch what the model misses: VAT arithmetic, the IBAN mod-97 checksum against the vendor master, PO match, duplicates and date order — each returning a reason code.
  • With a 10% human-touch assumption, the backlog puts 4,000 invoices in the exception queue — about 200 hours, or two people for two and a half weeks. That cost exists on every route.
  • In the scenario, month one costs about €773 on GPT-4.1 with retries (inference only), €4,999 on Ækora’s Scale plan (pipeline included) or €600 on a reserved EU GPU (pipeline not included); steady state is €101, €999 and €600.

Questions people ask

How long does it take to clear a 40,000-invoice backlog with AI?
In the illustrative scenario, about four weeks: one week of triage, schema and a labeled sample; one week for a 200-invoice pilot and validation rules; one week of bulk extraction with a staffed exception queue; one week to finish, switch new invoices to the daily flow and hand over. The compute itself is about 53 GPU-hours on a single A100-class card.
What does it cost to clear an invoice backlog with AI?
Using list prices and the scenario’s 73,600 pages in month one: about €773 on GPT-4.1 with a 1.5× retry multiplier (inference only), €4,999 on Ækora’s Scale plan (schema, validation, exceptions and delivery included), or €600 for a reserved EU GPU without the pipeline. Exception labor — about 200 hours at a 10% human-touch rate — is the same on every route.
Which validation rules should an AP extraction pipeline have?
VAT arithmetic (net × rate = VAT, net + VAT = gross, line items sum to net), the IBAN mod-97 checksum plus a match against the vendor master, PO existence and amount tolerance, a duplicate check on vendor + invoice number + gross, and date sanity. Each rule returns pass or a reason code that routes the invoice to the right person.
Do e-invoices need AI extraction?
No. Structured e-invoices — XRechnung, ZUGFeRD, Factur-X, Peppol BIS — carry every field in XML, so they should be parsed and sent straight to validation. Extraction with a document model is for PDFs, scans and photos. Splitting the two during triage removes work and avoids scoring e-invoices as if they were scans.
Can supplier invoices be sent to OpenAI under GDPR?
Supplier invoices contain personal data — sole traders’ names, contact persons, bank details — so sending them to a US API is a transfer under GDPR Chapter V that needs a legal basis and a processor agreement. Local models running in the EU or on your own hardware avoid the transfer; a hybrid design can still route a small share of hard pages to a frontier API under a documented basis.
How do you keep an invoice backlog from coming back?
Switch new invoices to a daily pipeline before the backlog is finished, monitor volume, straight-through rate per family and exception age, give the queue an owner and a two-business-day clock, review reason codes monthly and turn them into rules, and re-score a fresh 100-invoice labeled sample each quarter to catch accuracy drift.

Want this worked out on your documents?

We will price a real sample against OpenAI or Anthropic and tell you whether Bulk document processing or a local model on your hardware is the cheaper first step.