Column

Cloudflare opens up models that read invoices and PDFs for you

Cloudflare has released two open models for document processing: from a four-page invoice they pull out the supplier, line items and totals in a single request. What this means for a small company’s bookkeeping.

In this article

🧾 Good news for anyone who has ever copied invoices from a PDF into a spreadsheet by hand.

A few days ago Cloudflare released two open models for document processing: Clairic, with 27 billion parameters, and its fast little sister Clairic-flash, with 9 billion. Both can pull data out of text, images and PDFs. Cloudflare shows an example: a four-page invoice, and in a single request the model picks out the supplier, the list of items, the prices and the total.

“Open” here means you can download the model’s “weights”, in other words the model itself, and run it on your own machine. That’s very handy for a lot of companies, especially larger ones. A model this size runs on your own reasonably powerful computer. Invoices, contracts and bank statements then don’t go anywhere: they’re processed inside the company. That also takes care of the eternal headache of GDPR, the EU’s data protection law. Your customers’ and employees’ personal data isn’t handed over to someone else’s service.

If you’d rather not host it yourself, you can use it through their cloud. Until 1 December a million input tokens costs 10 cents; after that, the price for the bigger model goes up to 24 cents. For a sense of scale: one invoice is a couple of thousand tokens at most. That’s pennies per document. Well, not even whole pennies 😄

I’ve been saying for a long time that the most profitable automation in a small company isn’t the one about “artificial intelligence”, it’s the one that takes away the boring stuff. Matching an invoice to the bank statement, copying over the amounts, figuring out which document the accountant is still missing. We hand this kind of work to an assistant ourselves: ours matches transactions to documents and reminds us what’s missing.

This used to take expensive document recognition software or a very patient human. Now it’s a model you can download for free.

Accountants, you can exhale now. Or hold your breath, depending on how you look at it 😅

Source: Cloudflare

Finished reading? Mark the step — your path progress will update.

How we can help

If your company faces a similar task, we can show you a first step and the boundaries of a possible solution.

Discuss your task