Cost = (input tokens ÷ 1M × input price) + (output tokens ÷ 1M × output price). Prices come from our daily-verified model data. Batch and cached-input discounts are not applied — they only ever make these numbers smaller.
“Needs chunking” means the model's context window can't hold this job in a single pass, so the real cost is higher than the figure shown and quality usually suffers.
Should you just pick the cheapest?
Extraction is graded pass/fail on every field, so a model that is right 95% of the time still hands you 50 bad records per thousand. Price the human review time alongside the token cost — it usually dwarfs it, and a better model is the cheaper way to reduce it.
Getting this done well, for less
Ask for a fixed schema
Request structured output — JSON with named fields such as supplier, invoice number, date, net, tax and total — rather than a prose answer. Every current frontier model supports structured outputs, and a fixed schema makes errors easy to detect automatically.
Validate the arithmetic in code
Models occasionally misread a digit or swap net and gross. Check that line items sum to the subtotal and that subtotal plus tax equals the total; route the invoices that fail to a person. That simple check catches most extraction errors at no extra token cost.
How much does it cost to extract data from invoices with AI?
$0.0002 on Mistral Small 3.1, the cheapest capable option, rising to $0.027 on GPT-6 Astra at the top end. DeepSeek V4-Flash is the value pick at $0.0003 per run. The job is priced at 1,200 input and 300 output tokens — see the working below.
How did you work out the token count for this task?
A single-page OCR'd invoice with line items ≈ 1,200 input tokens. A structured JSON record of the fields ≈ 300 output tokens.
What does this cost at 1,000 invoices a month?
$0.210 a month on Mistral Small 3.1, $0.252 on DeepSeek V4-Flash, and $27.00 on GPT-6 Astra. Batch APIs typically halve these figures for work that can wait, and prompt caching cuts the input side further when the same context is reused.
Is the cheapest model the right choice for this task?
Extraction is graded pass/fail on every field, so a model that is right 95% of the time still hands you 50 bad records per thousand. Price the human review time alongside the token cost — it usually dwarfs it, and a better model is the cheaper way to reduce it.
Are these prices current?
Yes. Every figure on this page is computed from our model pricing data, which is checked daily against each provider's official pricing page. When a provider changes a price, these numbers change with it.