Automate Invoice Data Extraction with Zero Template Setup

Ask any question about any invoice and get a precise answer with the exact coordinates where it was found. Works on the first call, no setup required.

Start building

How it works

01

Upload the invoice

POST the PDF to our API. We accept any invoice format — scanned, digital, multi-page.

02

Ask your questions

Send natural language questions like "What is the total amount due?" or "List all line items with quantities and unit prices."

03

Get structured answers with coordinates

Receive a JSON response with the extracted values plus exact page coordinates showing where each answer was found.

API example

curl -X POST https://api.ninjadoc.ai/grounded-qa \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "pdf=@invoice.pdf" \
  -F "questions=What is the total amount due?" \
  -F "questions=What is the vendor name?" \
  -F "questions=What is the invoice date?"

# Response
{
  "job_id": "01JVABCXYZ",
  "page_count": 2,
  "questions": [
    {
      "index": 0,
      "question": "What is the total amount due?",
      "answer": "$4,250.00",
      "confidence": 0.99,
      "evidence": [
        {
          "page_index": 0,
          "evidence_texts": ["Total Amount Due: $4,250.00"],
          "located": [
            {
              "boxes": [
                {
                  "normalized": { "x1": 680, "y1": 820, "x2": 890, "y2": 850 },
                  "pixel":      { "x1": 420, "y1": 680, "x2": 540, "y2": 700 }
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "timing": { "total_ms": 1843 }
}

What you get

Works on any invoice layout — no template maintenance
Handles scanned PDFs, digital PDFs, and multi-page invoices
Bounding box coordinates included for every extracted value
Confidence scores let you flag low-certainty answers for review
Pay per page — no monthly minimums, credits never expire
Returns structured JSON ready to pipe into your ERP or database

Works with

Vendor invoicesPurchase ordersReceiptsUtility billsCredit memos

FAQ

Ready to automate your document workflow?

Pay per page. Credits never expire. No monthly fees.

Start building