
Saman Herath
November 30, 2026

Some firms no longer ask which capture tool to buy. On our sales calls between 23 and 27 November 2026, several told us they already extract documents themselves with Claude or Gemini. One was weighing its own Claude build against buying a tool, and wanted to know which costs less.
Quick answer: Yes, you can build your own invoice and bank statement extraction with the Claude or Gemini API, and the model bill is small, often a few US cents per document. The hard part is everything around the model. You have to split files, balance statements and code to each client's chart of accounts. Then you post through Xero or QuickBooks, keep an audit trail and fix it all when models change. A DIY build makes sense for one-off clean-ups, small volumes or a firm with its own developer. For steady monthly volume across many clients, a dedicated capture tool usually costs less in staff time.
We make tofu, so weigh our view accordingly. We have tried to show the DIY route fairly, with prices from the vendors' own pages.
Three patterns came up again and again on our calls. One Malaysian firm runs its bank statements through Gemini at no cost. Another firm built its own extraction with Claude Code and told us it spends a few thousand ringgit a year running it. Other teams paste documents into ChatGPT or Claude one at a time, then worry about whether the numbers are right.
One firm asked us a sharp question. Which models does a tool run on, and does it stop working when a model provider goes down? Keep that question in mind. It applies to your own build too.
The big vendors are also moving into this space. Here is what changed recently, checked on vendor pages in November 2026.
| Vendor | What launched | What it does for firms |
|---|---|---|
| OpenAI | ChatGPT for accounting work help guide and Accounting plugin, live when checked in November 2026 | Drafts reconciliations, invoice and receipt entries and reports for review, with partner plugins including Xero and QuickBooks Online |
| Microsoft | Accounting skills in Copilot in Excel, offered through Microsoft's Frontier programme in November 2026 | Helps reconcile accounts and draft journal entries in Excel, and prepares reconciling items for you to review |
| Dext | AI Connector, launched October 2026 | Lets Claude, ChatGPT or Copilot read Dext practice data; it can't make changes in Dext |
If you want the bigger picture on chat assistants, we covered that in can Claude do your bookkeeping and can ChatGPT handle your bookkeeping. This guide is about the next step: writing code against a model API and running it as your own extraction system.
Less than most partners expect. Both vendors charge per token, and a PDF page turns into a known number of tokens.
| Item | Claude API | Gemini API |
|---|---|---|
| Example model and price per million tokens (input / output) | Sonnet 5.5: $2 / $10. Haiku 5.5: $0.10 / $0.50 for prompts up to 100,000 tokens | Gemini 3.5 Flash: $1.50 / $9.00. Gemini 2.5 Flash: $0.30 / $2.50 |
| Tokens per PDF page | 1,500 to 3,000 text tokens, plus up to 1,568 image tokens | 258 tokens per page |
| PDF limit per request | 600 pages (100 if the context window is under 1M tokens), 128 MB | 1,000 pages or 50 MB |
| Batch discount | 50% off with the Batch API | 50% off with the Batch API |
Prices are in US dollars, checked on the Claude pricing page, Claude PDF docs, Gemini pricing page and Gemini document docs in November 2026.
Here is our own rough sum, not a vendor figure. Take a 10-page bank statement with 60 transactions. On Gemini 3.5 Flash, the pages come to about 2,600 input tokens at 258 tokens a page. Say the answer and the model's thinking take 4,000 output tokens. That comes to roughly US$0.04. The same file on Claude Sonnet 5.5 lands at about US$0.10 to US$0.13, because each page carries 1,500 to 3,000 text tokens plus up to 1,568 image tokens.
So the token bill is rarely what decides this. Staff time is. The rest of this guide is about where that time goes.
Reading one clean invoice is the easy 20%. A firm's real inbox holds the other 80%.
Clients scan a month of bills into one PDF. Banks send one statement with three accounts in it. Your code has to find where each document starts, send each one on its own, and cope when a page break sits in the wrong place. Long files bring their own trouble: Anthropic notes that dense PDFs can fill the context window before they reach the page limit.
A model can drop a row or read a debit as a credit on page 14. You will not see it unless your code checks the maths. That means comparing the opening balance plus every transaction against the closing balance, and checking the running balance line by line to find where it broke.
Extraction is only half the job. Each line needs the right account, tax code and tracking category for that client. In Malaysia that includes SST lines, which have to land on the tax codes each client uses in Xero or Bukku. Your build needs to pull every client's chart of accounts and remember how your team coded each supplier last time.
LHDN's e-Invoice Guideline says a validated e-invoice gets an IRBM Unique Identifier Number, a validation date and time, and a validation link. Its PDF copy carries a QR code. A useful build captures that number with the rest of the data, so your team can trace a bill back to its validated record.
Your extracted data is no use until it reaches the ledger. Both ledgers now charge app developers by tier, checked on their developer pages in November 2026.
| Ledger | Free option | Paid tiers | Note for firms |
|---|---|---|---|
| Xero | Starter plan, no charge, up to 5 connections | From A$35 a month (Core, 50 connections) | Xero says bespoke integrations built for your own practice or a single client are exempt from the new pricing |
| QuickBooks Online | Builder tier, uncharged, with a monthly cap on CorePlus calls | Silver from US$300 a month | Calls above the Builder cap are blocked |
Sources: Xero partner plans, Xero pricing FAQ, Intuit App Partner Program FAQ and Intuit's developer blog. You also have to handle sign-in tokens that expire, duplicate bills and attaching the source file to each entry.
When a reviewer asks why a bill went to the wrong account, you need an answer. Log which model and prompt read each document, what it returned, who changed what, and when it posted. Without that log, a DIY build is hard to defend at year end.
API terms differ from consumer chat apps, and free tiers differ from paid ones. Anthropic's Commercial Terms say it "may not train models on Customer Content from Services." Google's Gemini API terms say paid services don't use your prompts to improve its products. For unpaid services, Google says it uses your content to improve its products and human reviewers may read it. It also tells users not to submit confidential or personal information there. Google applies its paid-service data terms to unpaid use in the UK, the EEA (which includes Ireland) and Switzerland, but not in Malaysia or Singapore. A firm running client bank statements through a free Gemini API key in Malaysia should read that page closely.
Models retire. Google's pricing page notes that Gemini 2.0 Flash is deprecated and was shut down on 1 June 2026. Each change means retesting your prompts on real client files. Someone has to own that work, and someone has to watch for the day the provider's API goes down.
Here is how the three routes compare for a firm doing monthly bookkeeping.
| Question | DIY with an AI API | Chat assistant (Claude, ChatGPT, Gemini) | Dedicated capture tool |
|---|---|---|---|
| Who builds it | Your developer | Nobody, you paste files in | The vendor |
| Running cost | Tokens plus developer time | Seat licences | Subscription |
| Splitting multi-document files | You code it | Manual, file by file | Built in |
| Balancing bank statements | You code the checks | You check by eye | Built in on most tools |
| Coding per client | You build and store the rules | You re-explain each time | Rules saved per client |
| Posting to Xero or QuickBooks | You build the integration | Some plugins draft entries for approval | Direct publishing on most tools |
| Audit trail | Whatever you log | Chat history | Built in |
| When a model changes | You retest | The vendor handles it | The vendor handles it |
A DIY build is a sound choice in three cases.
The build gets harder as clients, banks, languages and file shapes multiply. That is usually the point where a firm starts comparing its developer's time with a subscription.
tofu is a dedicated capture tool for accounting firms. It does the work around the model, so your team reviews instead of building.
tofu also works with Claude rather than against it. Our Claude connector lets Claude answer questions about your tofu data and run usage reports. It can help rewrite a knowledge card, mark clean bills Ready or Done, and export extractions in your ledger's format. It only sees what your own tofu login allows, and it works on every Claude plan, including Free.
What tofu doesn't do: it doesn't replace your reviewer, and it isn't a general assistant for analysis or client emails. Claude and ChatGPT stay better for those one-offs.
GBS Malaysia, part of Cheng & Co, had clients sending many suppliers' invoices in one PDF, and documents in Chinese. Its team now finishes a client's invoices in under an hour, down from four to five hours. Read the GBS Malaysia case study.
"With tofu, they can save more time and go back on time. No need to always spend overtime just to close the bookkeeping."
Michele Lim, GBS Assistant Director
Pricing counts entries, not clients, and users and entities are unlimited. Pro is $72 and Business is $179 on yearly packs. Start a free trial or see pricing.
Yes. You send the PDF to the Claude API, ask for structured fields back, then post them through the Xero API. You will need a Xero developer app and your own code for contacts, accounts, tax codes and attachments. Xero says integrations built for your own practice are exempt from its new developer pricing.
Google offers unpaid Gemini API quota, but its terms say unpaid content may be used to improve Google's products and read by human reviewers. Google tells users not to submit confidential or personal information to unpaid services. In the UK, the EEA and Switzerland the paid-service data terms also cover unpaid use; in Malaysia and Singapore they do not.
Model costs are usually cents. Our rough sum for a 10-page statement is about US$0.04 on Gemini 3.5 Flash and US$0.10 to US$0.13 on Claude Sonnet 5.5. The bigger costs are developer time, review time and upkeep when models change.
Claude accepts up to 600 pages per request, or 100 when the context window is under 1M tokens, and up to 128 MB. Gemini accepts PDFs up to 1,000 pages or 50 MB. Dense statements can hit context limits sooner, so long files often need splitting.
Anthropic's Commercial Terms say it may not train models on customer content from its services. Check which terms apply to your account, since consumer apps can differ from the API. Your firm still owns how it handles client data.
It can, if you code for them. Capture the IRBM Unique Identifier Number from validated e-invoices and map SST lines to each client's tax codes in Xero or Bukku. Test these cases on real files before relying on the build.
Yes. The tofu connector for Claude lets Claude read your tofu data, help fix knowledge cards, mark bills Ready or Done and export extractions in your ledger's format. Uploads through Claude use the same extraction quota as the tofu web app.
Checked against Anthropic, Google, Xero, Intuit, LHDN, OpenAI, Microsoft, Dext and tofu sources in November 2026.