1.4602¢ for one tested request

Invoice OCR API

Read an invoice image as itemized JSON.

Send an invoice image or PDF as a base64 data URI. Sats4AI returns the text it read and structured quantities, prices, tax and total.

One clean, single-page sample. The invoice omits a merchant and issue date; both fields came back empty.

Works with

Invoice OCR API: what your agent gets.

Currently available through Sats4AI. Your AI picks the one that fits and checks the exact price before it pays.

  • Extract line items and reconcile invoice TF-025.

    Send an invoice image or PDF as a base64 data URI. Sats4AI returns the text it read and structured quantities, prices, tax and total.

    1.4602¢ per tested request

Invoice OCR API, tested.

One paid call from our own test run: what went in, what it cost and what came back.

TaskFuel test run ·

Charged $0.014602

Your agent asked

Extract line items and reconcile invoice TF-025.
Data from
Sats4AI

What came back

Source invoice
TF-025
Line items
2 notebooks at $6 and 1 pen at $3
Subtotal and tax
$15.00 plus $1.50
Invoice total
$16.50 USD

One clean, single-page sample. The invoice omits a merchant and issue date; both fields came back empty.

Try the API request Quote first, then run

1. Check the price

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code. This request checks the price without paying.

Replace REPLACE_WITH_BASE64_IMAGE_BYTES with the base64 contents of the sample PNG or your own invoice.

curl --fail-with-body https://app.taskfuel.ai/v1/call \
  -H "Authorization: Bearer $TASKFUEL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'TASKFUEL_REQUEST'
{
  "url": "https://sats4ai.com/api/l402/extract-receipt",
  "method": "POST",
  "body": {
    "document": "data:image/png;base64,REPLACE_WITH_BASE64_IMAGE_BYTES"
  },
  "dryRun": true
}
TASKFUEL_REQUEST

2. Run the request

Review amount_usd in the quote. To pay and run, change dryRun to false and add maxAmountUsd with that approved amount inside the same JSON object. Keep the inputs unchanged; this limit applies to one call.

3. Read the result

Read structured.items, structured.subtotal, structured.tax and structured.total. The sample totals reconcile to $16.50.

Setup and API reference · Job polling and timeout recovery

Try it in your next task.

Sign in to TaskFuel and copy the connection prompt into your agent. Approve the connection, then ask for the work you need.

01

Name the task

Tell your agent what the output needs to contain.

02

See the price

Your agent shows the provider and price before spending.

03

Review the response

Check the output against your task. The call reports its cost and remaining balance.

When to use it.

Bookkeeping

Recover quantities and unit prices.

The extractor read two notebooks at $6 each and one pen at $3. Each line included its own total.

Reconciliation

Compare the reported total with the line items.

The lines add to $15. With the $1.50 tax the sum matches the printed $16.50.

Good Questions.

Does receipt OCR return a value for every field?

The response includes rawText alongside structured fields. The sample had no merchant name or date. Both returned null, while invoiceNumber matched TF-025.

How much did this request cost?

The Sats4AI request cost $0.014602 on 25 November 2026. Your agent shows the price for your own request before it pays.

Your agent can do things it couldn’t this morning.

$1 in free credit, no card required.

Start for Free